The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to translate these signs in another language.

4 posters

Go down

How to translate these signs in another language. Empty How to translate these signs in another language.

Post by Genata_BG 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:
How to translate these signs in another language. Bandic10

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);
});
Genata_BG
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

How to translate these signs in another language. Empty Re: How to translate these signs in another language.

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

Up
Genata_BG
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

How to translate these signs in another language. Empty Re: How to translate these signs in another language.

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

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

Male Posts : 871
Reputation : 171
Language : Bulgarian, English
Location : Pleven, Bulgaria

http://www.lfsdrift.org

Back to top Go down

How to translate these signs in another language. Empty Re: How to translate these signs in another language.

Post by skouliki 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
skouliki
skouliki
Manager
Manager

Female Posts : 15397
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

How to translate these signs in another language. Empty Re: How to translate these signs in another language.

Post by Genata_BG 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:"
Genata_BG
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

How to translate these signs in another language. Empty Re: How to translate these signs in another language.

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

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


How to translate these signs in another language. Screen50
skouliki
skouliki
Manager
Manager

Female Posts : 15397
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

How to translate these signs in another language. Empty Re: How to translate these signs in another language.

Post by Genata_BG 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.
Genata_BG
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

How to translate these signs in another language. Empty Re: How to translate these signs in another language.

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

i dont know if that is editable
skouliki
skouliki
Manager
Manager

Female Posts : 15397
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

How to translate these signs in another language. Empty Re: How to translate these signs in another language.

Post by Ape 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.


How to translate these signs in another language. Left1212How to translate these signs in another language. Center11How to translate these signs in another language. Right112
How to translate these signs in another language. Ape_b110
How to translate these signs in another language. Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19450
Reputation : 2011
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

How to translate these signs in another language. Empty Re: How to translate these signs in another language.

Post by Genata_BG 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
Genata_BG
Genata_BG
New Member

Posts : 9
Reputation : 1
Language : Bulgarian

http://bgextradrift.bulgarianforum.net/

Back to top Go down

Back to top

- Similar topics

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