Recent Tutorials
Who is online?
In total there are 6 users online :: 1 Registered, 0 Hidden and 5 Guests :: 1 Bot

smurfavr

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

[IN PROGRESS] How to change the captions in another language?

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

smurfavr

Title :
Gender : Male
Posts : 61
Points : 572
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Tue 03 May 2016, 05:46

First topic message reminder :

How to change the captions in another language? @Ange Tuteur Can you help me.

Code:
he length of the title for this topic must be ranging between 5 and 255 characters

Code:
Uploaded file is not valid: invalid attachment name.
Uploaded file is not valid: invalid attachment name.
Uploaded file is not valid.
Could not upload file : exceeded total storage space. (Free space : xxxx)

Code:
Start watching forum
You are currently watching this forum
Stop watching forum
You are no longer watching this forum

smurfavr

Title :
Gender : Male
Posts : 61
Points : 572
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Tue 04 Oct 2016, 08:10

not work.
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 1927
Points : 2308
Reputation : 55
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Wed 12 Oct 2016, 14:24

@smurfavr, thanks to Ange, I figured out what was wrong with the script.

Use this:

Code:
$(function() {
  if ( !document.post && !document.post.subject ) return;
  document.post.subject.title = 'The length of the title for this topic must be ranging between 5 and 255 characters';
  if ( $('td[align="center"].row1 span.gen').html() ) {
    var x,
 
    statements = {
      'The length of the title for this topic must be ranging between 5 and 255 characters' : 'New Text',
      'Uploaded file is not valid: invalid attachment name.' : 'New Text',
      'Uploaded file is not valid: an error occured while uploading attachment.': 'New Text',
      'Uploaded file is not valid.' : 'New Text',
      'Could not upload file : exceeded total storage space. (Free space :' : 'New Text'
    },
 
    i;
 
    for ( i in statements ) {
      if ( i == $('td[align="center"].row1 span.gen').text() ) $('td[align="center"].row1 span.gen').text(statements[i])
      else if ( $('td[align="center"].row1 span.gen').text().indexOf(i) !== -1 ) {
        x = $('td[align="center"].row1 span.gen').text();
        $('td[align="center"].row1 span.gen').text( statements[i] + ' ' + x.replace(/[^0-9]/g, '') + ')');
      }
    }
  }
});

The rest should work itself out.
smurfavr

Title :
Gender : Male
Posts : 61
Points : 572
Reputation : 0
Language : Bulgarian
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://smurfa.bulgarianforum.net/

Postsmurfavr on Thu 13 Oct 2016, 02:47

not work.

Page 2 of 2 Previous  1, 2

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum