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 change these signs in another language.

    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved How to change these signs in another language.

    Post by smurfavr July 13th 2014, 10:35 pm

    How to change these signs in another language. phpBB2

    Members connected during last 24 hours :
    No users have a birthday today
    Users with a birthday within the next 7 days:
    Legend :
    There are currently 0 user(s) on the ChatBox :
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to change these signs in another language.

    Post by SLGray July 14th 2014, 2:50 am

    Are they not changing to the language the forum is set to and the language set in your profile?



    How to change these signs in another language. Slgray10

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


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr July 14th 2014, 3:08 am

    Some things are out of my language in my profile.I want to be on my tongue.

    Green is my language. Red in English

    How to change these signs in another language. 7468048F
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to change these signs in another language.

    Post by SLGray July 14th 2014, 3:30 am

    Well, some translations are not completely translated.  It will have to be done on the database which we do not have access.



    How to change these signs in another language. Slgray10

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


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr July 15th 2014, 3:00 am

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to change these signs in another language.

    Post by SLGray July 15th 2014, 3:15 am

    Well use the code with what yo want to change:
    Code:
     Â   $(function() {
     Â       var text = {
     Â          onLast : 'Members who visited today',
     Â          onNow : 'Users online right now '
     Â       };
     Â       
     Â       var newTxt = $('#i_whosonline + p').html().replace(/Members connected during last 24 hours/,text["onLast"]).replace(/Registered Users/,text["onNow"]);
     Â       $('#i_whosonline + p').html(newTxt);
     Â   });



    How to change these signs in another language. Slgray10

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


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr July 15th 2014, 3:36 am

    My forum is Phpbb2 Theme which is a code in it for Phpbb3
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to change these signs in another language.

    Post by SLGray July 15th 2014, 3:38 am

    Are you adding that as a JavaScript?



    How to change these signs in another language. Slgray10

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


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr July 15th 2014, 3:45 am

    Does not work.

    In all the pages
    Code:
    $(function() {
        var text = {
          onLast : 'Members who visited today',
          onNow : 'Users online right now '
        };
       
        var newTxt = $('#i_whosonline + p').html().replace(/Потребители  през последните 24 часа/,text["onLast"]).replace(/Registered Users/,text["onNow"]);
        $('#i_whosonline + p').html(newTxt);
    });
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to change these signs in another language.

    Post by SLGray July 15th 2014, 3:48 am

    Did you translate the whole code into Bulgarian?



    How to change these signs in another language. Slgray10

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


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr July 15th 2014, 4:31 pm

    This
    Code:
    $(function() {
     Â   var text = {
     Â     onLast : 'Members who visited today',
     Â     onNow : 'Users online right now '
     Â   };
     Â   
     Â   var newTxt = $('#i_whosonline + p').html().replace(/Потребители  през последните 24 часа/,text["onLast"]).replace(/Регистрирани потребители/,text["onNow"]);
     Â   $('#i_Кои е онлайн + p').html(newTxt);
    });

    I want this to change.
    Members connected during last 24 hours :
    No users have a birthday today
    Users with a birthday within the next 7 days:
    Legend :
    There are currently 0 user(s) on the ChatBox :
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr July 25th 2014, 12:57 pm

    Some will help me???
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr August 15th 2014, 8:32 pm

    up
    sivastar
    sivastar
    Forumember


    Male Posts : 152
    Reputation : 16
    Language : Tamil
    Location : Malaysia

    Solved Re: How to change these signs in another language.

    Post by sivastar August 15th 2014, 10:32 pm

    Code:
    jQuery(function() {
    var x=document.getElementById('i_whosonline').nextSibling;
    x.innerHTML = x.innerHTML.replace(/Members connected during last 24 hours :/g,"Членове, свързани през последните 24 часа:");
    });

    Code:
    jQuery(function() {
    var x=document.getElementById('i_whosonline').nextSibling;
    x.innerHTML = x.innerHTML.replace(/Users having a birthday today :/g,"Потребители, които имат рожден ден днес:");
    });
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr August 15th 2014, 10:49 pm

    I put the code, but does not work.


    How to change these signs in another language. 7541293a
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr September 6th 2014, 2:08 pm

    Someone help me.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to change these signs in another language.

    Post by SLGray September 6th 2014, 8:07 pm

    Do you have other JavaScripts?  If yes, it could be that some are interfering with each other.



    How to change these signs in another language. Slgray10

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


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr September 7th 2014, 2:30 am

    I have other JavaScripts. If you want I can give you the codes to see what and help.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to change these signs in another language.

    Post by SLGray September 7th 2014, 6:39 am

    Remove all JavaScripts and add this one.  If it works, then add the others back one by one.



    How to change these signs in another language. Slgray10

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


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr September 7th 2014, 9:29 pm

    I need a code to change these inscriptions.

    No users have a birthday today
    Users with a birthday within the next 7 days:
    Legend :  [ Администратор ] [ Модератор ] [ VIP ] [ Сървър Админ ] [ HL-Фен ] [ Нов ]
    There are currently 0 user(s) on the ChatBox :


    I only have these codes.

    Code:
    $(document).ready(function() {
     Â   // Index
     Â   document.getElementById('i_icon_mini_index').nextSibling.nodeValue='Форум';
     Â   // Portal
     Â   document.getElementById('i_icon_mini_portal').nextSibling.nodeValue='Сайт';
    });

    Code:
    $(function() {
     Â replaceText('.postbody div', /\[You must be.*?to see this [A-Z]+.\]/ig, 'Трябва да си регистриран за да виждаш линковете..');
     Â replaceText('.attachbox', /You don't have permission to download attachments./ig, 'Вие нямате права за сваляне !');
     Â replaceText('.attachbox', /(\(\d+ [A-Z]+\)) Downloaded (\d+) times/ig, '$1 Свален $2 пъти.');
     Â replaceText('.attachbox', /Attachments/g, 'Прикачени файлове.');
     Â   
     Â function replaceText(element, reg, rep){var el=$('.post '+element);for(i=0;i<el.length;i++)if(reg.test(el[i].innerHTML))el[i].innerHTML=el[i].innerHTML.replace(reg,rep)}
    });

    Code:
    $(function() {
     Â   $.getScript("http://perso.numericable.fr/antonywar/HA/chauve1.js");
    });

    $(function() {
     Â   $.getScript("http://sd-1.archive-host.com/membres/up/37821634957680146/toile_r.js");
    });
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr October 7th 2014, 3:28 pm

    up
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr October 14th 2014, 5:18 pm

    This change in index_body This order {U_VIEWONLINE}.
    Somebody help me what to change exactly?

    Some of the team can you tell if it is possible this change.
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr October 19th 2014, 1:31 am

    Up
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How to change these signs in another language.

    Post by Ange Tuteur October 19th 2014, 7:58 am

    Hello smurfavr,

    Go to Administration Panel > Display > Templates > General > index_body

    Find :
    Code:
    <!-- BEGIN disable_viewonline -->
    <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
     <tr>
     <td class="catHead" colspan="2" height="28">
     <!-- BEGIN switch_viewonline_link -->
     <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
     <!-- END switch_viewonline_link -->

     <!-- BEGIN switch_viewonline_nolink -->
     <span class="cattitle">{L_WHO_IS_ONLINE}</span>
     <!-- END switch_viewonline_nolink -->
     </td>
     </tr>
     <tr>
     <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
     <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
     {TOTAL_USERS}<br />
     {NEWEST_USER}</span></td>
     </tr>
     <tr>
     <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
     {RECORD_USERS}<br />
     <br />
     {LOGGED_IN_USER_LIST}</span></td>
     </tr>
     {L_CONNECTED_MEMBERS}
     {L_WHOSBIRTHDAY_TODAY}
     {L_WHOSBIRTHDAY_WEEK}
     <tr>
     <td class="row1"><span class="gensmall">{LEGEND}&nbsp;:&nbsp;{GROUP_LEGEND}</span></td>
     </tr>
     <!-- BEGIN switch_chatbox_activate -->
     <tr>
     <td class="row1">
     <span class="gensmall">{TOTAL_CHATTERS_ONLINE}&nbsp;:&nbsp; {CHATTERS_LIST}<br />
     <!-- BEGIN switch_chatbox_popup -->
     <div id="chatbox_popup"></div>
     <script type="text/javascript">
     //<![CDATA[
     insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
     //]]>
     </script>
     <!-- END switch_chatbox_popup -->
     </span>
     </td>
     </tr>
     <!-- END switch_chatbox_activate -->
    </table>
    <!-- END disable_viewonline -->

    Replace by :
    Code:
    <!-- BEGIN disable_viewonline -->
    <table id="whois_online" class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
     <tr>
     <td class="catHead" colspan="2" height="28">
     <!-- BEGIN switch_viewonline_link -->
     <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
     <!-- END switch_viewonline_link -->

     <!-- BEGIN switch_viewonline_nolink -->
     <span class="cattitle">{L_WHO_IS_ONLINE}</span>
     <!-- END switch_viewonline_nolink -->
     </td>
     </tr>
     <tr>
     <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
     <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
     {TOTAL_USERS}<br />
     {NEWEST_USER}</span></td>
     </tr>
     <tr>
     <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
     {RECORD_USERS}<br />
     <br />
     {LOGGED_IN_USER_LIST}</span></td>
     </tr>
     {L_CONNECTED_MEMBERS}
     {L_WHOSBIRTHDAY_TODAY}
     {L_WHOSBIRTHDAY_WEEK}
     <tr>
     <td class="row1"><span class="gensmall">{LEGEND}&nbsp;:&nbsp;{GROUP_LEGEND}</span></td>
     </tr>
     <!-- BEGIN switch_chatbox_activate -->
     <tr>
     <td class="row1">
     <span class="gensmall">{TOTAL_CHATTERS_ONLINE}&nbsp;:&nbsp; {CHATTERS_LIST}<br />
     <!-- BEGIN switch_chatbox_popup -->
     <div id="chatbox_popup"></div>
     <script type="text/javascript">
     //<![CDATA[
     insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
     //]]>
     </script>
     <!-- END switch_chatbox_popup -->
     </span>
     </td>
     </tr>
     <!-- END switch_chatbox_activate -->
    </table>
    <!-- END disable_viewonline -->

    Save and publish. Add


    Then go to Modules > JavaScript codes management > Create a new script

    Title : Your choice
    Placement : In the homepage
    Paste the code below :
    Code:
    $(function() {
     Â var last24 = 'Members connected during last 24 hours : ',
     Â     nobday = 'No users have a birthday today',
     Â     bdaynext7 = 'Users with a birthday within the next 7 days:',
     Â     legend = 'Legend :',
     Â     inchat = 'There are currently 0 user(s) on the ChatBox :',
     Â 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 with a birthday within the next 7 days: ',bdaynext7).replace('Legend&nbsp;:&nbsp;',legend).replace('There are currently <strong>0</strong> user(s) on the ChatBox&nbsp;:&nbsp;',inchat);
    });

    At the top there are variables to change the texts. You can edit them. ^^
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr October 19th 2014, 8:55 pm

    I come to chat and this inscription was changed to English. There are currently 1 user(s) on the ChatBox
    As a sign out of chat is as I want.  
    This label also changes to some English if today's birthday. Users having a birthday today
    If no one has a birthday within the next 7 days this inscription also changed. Users with a birthday within the next 7 days

    How to change these signs in another language. 7673109r

    How to change these signs in another language. 7673110W

    Code:

    $(function() {
     Â var last24 = 'Потребители за последните 24 часа : ',
     Â     nobday = 'Няма потребители, които имат рожден ден днес',
     Â     bdaynext7 = 'Потребители с рожден ден през следващите 7 дни:',
     Â     legend = 'Легенда :',
     Â     inchat = 'В момента има 0 потребители в чата :',
     Â 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 with a birthday within the next 7 days: ',bdaynext7).replace('Legend&nbsp;:&nbsp;',legend).replace('There are currently <strong>0</strong> user(s) on the ChatBox&nbsp;:&nbsp;',inchat);
    });
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How to change these signs in another language.

    Post by Ange Tuteur October 20th 2014, 7:03 pm

    Replace your script by :
    Code:
    $(function() {
      var last24 = 'Потребители за последните 24 часа : ',
          nobday = 'Няма потребители, които имат рожден ден днес',
          bdaytoday = 'Users having a birthday today',
          nobdaynext7 = 'No users are having a birthday in the upcoming 7 days',
          bdaynext7 = 'Потребители с рожден ден през следващите 7 дни:',
          legend = 'Легенда :',
          inchat = 'В момента има 0 потребители в чата :',
      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);
    });

    I added these two :
    Code:
          bdaytoday = 'Users having a birthday today',
          nobdaynext7 = 'No users are having a birthday in the upcoming 7 days',

    and made some changes to the chatbox one.
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr October 21st 2014, 10:22 am

    Now only this inscription does not work. There are currently 0 user(s) on the ChatBox :
    Displayed in English only.

    Code:

    $(function() {
      var last24 = 'Потребители за последните 24 часа : ',
          nobday = 'Няма рожденици днес: ',
          bdaytoday = 'Потребители, които имат рожден ден днес : ',
          nobdaynext7 = 'Няма  рожденици през следващите 7 дни : ',
          bdaynext7 = 'Рожденици през следващите 7 дни: ',
          legend = 'Легенда :',
          inchat = 'В момента има 0 потребители в чата :',
      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);
    });
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How to change these signs in another language.

    Post by Ange Tuteur October 21st 2014, 4:48 pm

    Okay, try now :
    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);
    });
    smurfavr
    smurfavr
    Active Poster


    Male Posts : 1881
    Reputation : 22
    Language : Bulgarian

    Solved Re: How to change these signs in another language.

    Post by smurfavr October 21st 2014, 6:22 pm

    Thank you Ange Tuteur . Now it works.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to change these signs in another language.

    Post by SLGray October 21st 2014, 6:25 pm

    Topic solved and archived




    How to change these signs in another language. Slgray10

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

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