Latest topics
» [GAME] What are you thinking right now?
by Ange Tuteur Today at 15:10

» [GAME] Countdown from 200,000
by Ange Tuteur Today at 15:09

» [GAME] Post a random picture
by Ange Tuteur Today at 15:08

» [GAME] What are you doing right now?
by Ange Tuteur Today at 15:06

» [GAME] Count to 30 - Ange Edition
by Ange Tuteur Today at 15:05

» [GAME] Count to One Million!
by Ange Tuteur Today at 15:05

» Categories as tabs on Edge!
by Ange Tuteur Today at 15:03

» Colored Bar Navigation
by Ange Tuteur Yesterday at 20:03

» Classified Ads
by SLGray Yesterday at 17:11

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by Ch@lo Valdez Mon 22 May 2017, 13:45

» FM Chatbox
by Andrei34 Sun 21 May 2017, 12:35

» Starred Forums
by tillytiger99 Sun 21 May 2017, 04:35

» [GAME] Count to 999 using odd numbers Van-Helsing Edition
by Valoish Sat 20 May 2017, 10:24

» Copy Code
by Luffy Fri 19 May 2017, 14:56

» Think Tank Forum
by Luffy Fri 19 May 2017, 05:25

Recent Tutorials
Who is online?
In total there are 7 users online :: 0 Registered, 0 Hidden and 7 Guests :: 2 Bots

None

[ 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

avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 749
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

avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 749
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.
avatar
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2091
Points : 2697
Reputation : 78
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.
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 749
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.
avatar
smurfavr

Title :
Gender : Male
Posts : 66
Points : 749
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 Sat 04 Mar 2017, 07:47

Up

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