The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to change the captions in another language.

View previous topic View next topic Go down

Solved How to change the captions in another language.

Post by smurfavr on October 18th 2015, 5:40 pm

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

The report has been sent. Thank you.

You are not allowed to use this part of the Report Post Hack!


Last edited by smurfavr on November 1st 2015, 12:06 pm; edited 1 time in total

smurfavr
Active Poster

Male Posts : 1384
Reputation : 9
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by SLGray on October 18th 2015, 5:51 pm

Second Reminder:
Please don't use bold or color and keep to the default text. This is reserved for the staff for moderation.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by smurfavr on October 18th 2015, 5:55 pm

I use a different color for words that need to be changed. How will you know what I want to change if you do not mention in any way?

smurfavr
Active Poster

Male Posts : 1384
Reputation : 9
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by SLGray on October 18th 2015, 6:03 pm

You can do this:
Code:
Text to be changed.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by smurfavr on October 21st 2015, 5:01 am

Up

smurfavr
Active Poster

Male Posts : 1384
Reputation : 9
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by smurfavr on October 25th 2015, 6:30 am

Up

smurfavr
Active Poster

Male Posts : 1384
Reputation : 9
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by smurfavr on October 27th 2015, 9:38 am

Up

smurfavr
Active Poster

Male Posts : 1384
Reputation : 9
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by smurfavr on October 29th 2015, 11:14 am

Up

smurfavr
Active Poster

Male Posts : 1384
Reputation : 9
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by smurfavr on October 31st 2015, 11:57 am

@Ange Tuteur Will you help me?

smurfavr
Active Poster

Male Posts : 1384
Reputation : 9
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by Ange Tuteur on October 31st 2015, 4:06 pm

Hi @smurfavr,

Try the following :

Go to Modules > JavaScript codes management and create a new script with the following settings.

Placement : In all the pages
Code:
$(function() {
  var lang = {
    'The report has been sent. Thank you.' : 'TRANSLATION',
    'You are not allowed to use this part of the Report Post Hack!' : 'TRANSLATION'
  }, i, reg;

  $('.gen').each(function() {
    for (i in lang) {
      reg = new RegExp(i);
      if (reg.test(this.innerHTML)) {
        this.innerHTML = this.innerHTML.replace(reg, lang[i]);
        break;
      }
    }
  });
});

Replace TRANSLATION by the translated text you want affiliated with the English text. Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to change the captions in another language.

Post by smurfavr on October 31st 2015, 6:06 pm

Can you add these things in the code?

Report has been updated successfully.
You can't report your own posts.
The post won't accept new reports.
The post has been successfully unlocked for new reports.

smurfavr
Active Poster

Male Posts : 1384
Reputation : 9
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by SLGray on October 31st 2015, 7:57 pm

Are these not translated when you change the forum's language?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by Ange Tuteur on October 31st 2015, 8:11 pm

@smurfavr wrote:Can you add these things in the code?

Report has been updated successfully.
You can't report your own posts.
The post won't accept new reports.
The post has been successfully unlocked for new reports.
Replace the script with this :
Code:
$(function() {
  var lang = {
    'The report has been sent. Thank you.' : 'TRANSLATION',
    'You are not allowed to use this part of the Report Post Hack!' : 'TRANSLATION',
    'Report has been updated successfully.' : 'TRANSLATION',
    'You can\'t report your own posts.' : 'TRANSLATION',
    'The post won\'t accept new reports.' : 'TRANSLATION',
    'The post has been successfully unlocked for new reports.' : 'TRANSLATION'
  }, i, reg;

  $('.gen').each(function() {
    for (i in lang) {
      reg = new RegExp(i);
      if (reg.test(this.innerHTML)) {
        this.innerHTML = this.innerHTML.replace(reg, lang[i]);
        break;
      }
    }
  });
});

@SLGray wrote:Are these not translated when you change the forum's language?
Unfortunately a majority of the languages offered are partially translated. Most major languages are covered though, French, English, Spanish, Italian, etc.. It depends if one of their pro-admins know the language, or a volunteer has enough time to dedicate towards the translations.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to change the captions in another language.

Post by smurfavr on November 1st 2015, 10:28 am

@SLGray wrote:Are these not translated when you change the forum's language?
No.

@Ange Tuteur wrote:
Unfortunately a majority of the languages offered are partially translated. Most major languages are covered though, French, English, Spanish, Italian, etc.. It depends if one of their pro-admins know the language, or a volunteer has enough time to dedicate towards the translations.

@KpuCk0 Can help with translation.
http://help.forumotion.com/t143431-the-menu-in-the-admin-panel-to-be-entirely-my-spoken-language#977866

psp
Now everything works. Thank you Ange Tuteur.

smurfavr
Active Poster

Male Posts : 1384
Reputation : 9
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Solved Re: How to change the captions in another language.

Post by brandon_g on November 2nd 2015, 12:37 pm

Topic solved and archived ~ brandon_g


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5140
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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