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.
The forum of the forums
4 posters

    How to translate these signs in another language.

    Genata_BG
    Genata_BG
    New Member


    Posts : 9
    Reputation : 1
    Language : Bulgarian

    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

    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
    KpuCk0
    KpuCk0
    Forumember


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

    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.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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

    Genata_BG
    Genata_BG
    New Member


    Posts : 9
    Reputation : 1
    Language : Bulgarian

    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:"
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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

    Genata_BG
    Genata_BG
    New Member


    Posts : 9
    Reputation : 1
    Language : Bulgarian

    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.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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


    Posts : 9
    Reputation : 1
    Language : Bulgarian

    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

      Current date/time is September 23rd 2024, 12:31 am