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

4 posters

Go down

Solved How to change these signs in another language.

Post by smurfavr Sun 13 Jul 2014 - 22:35

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 :
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by SLGray Mon 14 Jul 2014 - 2:50

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by smurfavr Mon 14 Jul 2014 - 3:08

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
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by SLGray Mon 14 Jul 2014 - 3:30

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by smurfavr Tue 15 Jul 2014 - 3:00

smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by SLGray Tue 15 Jul 2014 - 3:15

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by smurfavr Tue 15 Jul 2014 - 3:36

My forum is Phpbb2 Theme which is a code in it for Phpbb3
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by SLGray Tue 15 Jul 2014 - 3:38

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by smurfavr Tue 15 Jul 2014 - 3:45

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);
});
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by SLGray Tue 15 Jul 2014 - 3:48

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by smurfavr Tue 15 Jul 2014 - 16:31

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

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by smurfavr Fri 25 Jul 2014 - 12:57

Some will help me???
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by smurfavr Fri 15 Aug 2014 - 20:32

up
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by sivastar Fri 15 Aug 2014 - 22:32

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,"Потребители, които имат рожден ден днес:");
});
sivastar
sivastar
Forumember

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

http://www.eegarai.net

Back to top Go down

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

Post by smurfavr Fri 15 Aug 2014 - 22:49

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

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by smurfavr Sat 6 Sep 2014 - 14:08

Someone help me.
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by SLGray Sat 6 Sep 2014 - 20:07

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by smurfavr Sun 7 Sep 2014 - 2:30

I have other JavaScripts. If you want I can give you the codes to see what and help.
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by SLGray Sun 7 Sep 2014 - 6:39

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by smurfavr Sun 7 Sep 2014 - 21:29

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

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by smurfavr Tue 7 Oct 2014 - 15:28

up
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by smurfavr Tue 14 Oct 2014 - 17:18

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

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by smurfavr Sun 19 Oct 2014 - 1:31

Up
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by Ange Tuteur Sun 19 Oct 2014 - 7:58

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. ^^
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

Post by smurfavr Sun 19 Oct 2014 - 20:55

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);
});
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by Ange Tuteur Mon 20 Oct 2014 - 19:03

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

Post by smurfavr Tue 21 Oct 2014 - 10:22

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);
});
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by Ange Tuteur Tue 21 Oct 2014 - 16:48

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);
});
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

Post by smurfavr Tue 21 Oct 2014 - 18:22

Thank you Ange Tuteur . Now it works.
smurfavr
smurfavr
Active Poster

Male Posts : 1881
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

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

Post by SLGray Tue 21 Oct 2014 - 18:25

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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