How to translate these signs in another language.

Go down

How to translate these signs in another language.

Post by Genata_BG on February 18th 2017, 3:02 pm

How to translate these signs in another language. phpBB3

No users have a birthday today
Users with a birthday within the next 7 days:
Legend :
Statistics

Picture:


Code that i use, but it is for phpBB2.
Code:
$(function() {
  var last24 = 'Потребители за последните 24 часа:',
      nobday = 'Няма рожденици днес: ',
      bdaytoday = 'Потребители, които имат рожден ден днес : ',
      nobdaynext7 = 'Няма  рожденици през следващите 7 дни:',
      bdaynext7 = 'Рожденици през следващите 7 дни:',
      legend = 'Легенда:',
      inchat = 'В момента има $1 потребители в чата:',
  who = document.getElementById('whois_online');
  who.innerHTML = who.innerHTML.replace('Members connected during last 24 hours :',last24).replace('No users have a birthday today',nobday).replace('Users having a birthday today',bdaytoday).replace('Users with a birthday within the next 7 days: ',bdaynext7).replace('No users are having a birthday in the upcoming 7 days',nobdaynext7).replace('Legend&nbsp;:&nbsp;',legend).replace(/There are currently (<strong>\d+<\/strong>) user\(s\) on the ChatBox&nbsp;:&nbsp;/,inchat);
});
avatar
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

Re: How to translate these signs in another language.

Post by Genata_BG on February 22nd 2017, 5:13 am

Up
avatar
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

Re: How to translate these signs in another language.

Post by KpuCk0 on February 22nd 2017, 7:47 am

I'm pretty sure, that you can change "Statistics" and "Legend" from your index_body template.
avatar
KpuCk0
Forumember

Male Posts : 869
Reputation : 168
Language : Bulgarian, English
Location : Pleven, Bulgaria

http://www.lfsdrift.org

Back to top Go down

Re: How to translate these signs in another language.

Post by skouliki on February 22nd 2017, 8:27 am

search your index_body for something like this 

Code:
<div>{LEGEND}&nbsp;:&nbsp;{GROUP_LEGEND}</div>

then replace it with this 
Code:
  <div class="new-legend">YOUR TEXT: {GROUP_LEGEND}</div>


-----------------------------------------------

now search again for this 
Code:
<div class="main-head"><h2>Statistics</h2></div>

replace the word Statistics with the text you want
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 4124
Reputation : 675
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: How to translate these signs in another language.

Post by Genata_BG on February 25th 2017, 2:58 pm

Ok.It works ,but how to translate "No users have a birthday today"
"Users with a birthday within the next 7 days:"
avatar
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

Re: How to translate these signs in another language.

Post by skouliki on February 25th 2017, 4:07 pm

Admin panel..Users & Groups...Users options...Birthdays...


avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 4124
Reputation : 675
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: How to translate these signs in another language.

Post by Genata_BG on February 26th 2017, 1:44 pm

OK. I know that i changed to 3 ,but i want to translate "No users have a birthday today"
"Users with a birthday within the next 7 days:" in my language not to stay in English.
avatar
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

Re: How to translate these signs in another language.

Post by skouliki on February 26th 2017, 2:31 pm

i dont know if that is editable
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 4124
Reputation : 675
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Re: How to translate these signs in another language.

Post by APE on February 26th 2017, 5:42 pm

You can not change that text in templates you will have to do it by some sort of java code but you need to know the direct link first and i really don't know what one it is as im not that good with codes for this.



avatar
APE
Administrator
Administrator

Male Posts : 12473
Reputation : 1305
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Re: How to translate these signs in another language.

Post by Genata_BG on February 26th 2017, 7:41 pm

One friend use this but it's for phpbb2 and my forum is phpbb3
Code:
$(function() {
  var last24 = 'Потребители за последните 24 часа:',
      nobday = 'Няма рожденици днес: ',
      bdaytoday = 'Потребители, които имат рожден ден днес : ',
      nobdaynext7 = 'Няма  рожденици през следващите 7 дни:',
      bdaynext7 = 'Рожденици през следващите 7 дни:',
      legend = 'Легенда:',
      inchat = 'В момента има $1 потребители в чата:',
  who = document.getElementById('whois_online');
  who.innerHTML = who.innerHTML.replace('Members connected during last 24 hours :',last24).replace('No users have a birthday today',nobday).replace('Users having a birthday today',bdaytoday).replace('Users with a birthday within the next 7 days: ',bdaynext7).replace('No users are having a birthday in the upcoming 7 days',nobdaynext7).replace('Legend&nbsp;:&nbsp;',legend).replace(/There are currently (<strong>\d+<\/strong>) user\(s\) on the ChatBox&nbsp;:&nbsp;/,inchat);
});
Can you convert it or make it for phpbb3
avatar
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

Back to top


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