inherit
212704
0
Dec 24, 2022 0:53:59 GMT -8
petrxx2003
82
August 2014
petrxx2003
|
Post by petrxx2003 on Feb 22, 2015 3:51:05 GMT -8
Recently I'm translating my forum into Czech. I'm translating templates and I have most of the texts translated already but there are some parts I cannot find. Is it possible to translate texts in buttons and tabs? And how about the grey texts in text boxes? And - last but not least - texts in those javascript windows (Participated and so on). Where can I find it?
And one more question. Our forum is closed, we have restricted registration, so no guests can browse the forum. Nevertheless they are shown in Statistics. I know why and don't care. But for some members it's a bit annoying - as well as for me explaining it. I believe I can safely delete the Guest entries from Statistics.
|
|
#eb7100
1480
0
1
Nov 27, 2024 6:25:30 GMT -8
Craig
209,200
September 2001
cmdynasty
|
Post by Craig on Feb 22, 2015 9:14:08 GMT -8
Hi Unfortunately, not all will be able to be edited in the templates. For some buttons, however, you can translate, but will need the long form of the code. So, for example, the reply button in the thread template: <ul class="controls"><li>$[reply_button]</li></ul>
would become <ul class="controls"><li><a heaf="$[reply_button.href]" class="reply-button">Reply</a></li></ul>
Note the difference in the adding of the <a ... > tag, and the .href to the variable. That should work for all of the buttons. For some of the areas, you may need to use the switchit code: support.proboards.com/thread/432508/script-swap-find-replace-easilyIf you have anhy problems with the above, let us know
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 22, 2015 9:25:18 GMT -8
proboards.com/library/plugins/item/592This plugin can also be used to switch out text that can't be modified in the templates such as template variables that automatically output HTML. I don't believe there's a way to edit the text of dialogs such as the Participated dialog since that's loaded when you click on the button versus being loaded when you open the page. Any unregistered users will show as guests regardless of the restrictions you place on viewing your forum. Despite that, they will not be able to see your forum's content if you've put that restriction in place. You're free to remove their information from your layout templates if you so choose.
|
|
user_1004d
inherit
-6225258
0
Nov 27, 2024 19:57:23 GMT -8
user_1004d
0
January 1970
GUEST
|
Post by user_1004d on Feb 22, 2015 10:22:13 GMT -8
You might also be interested in this marvelous little plugin that can change the text of drop down menus such as the actions menu or the post options "cog" menu
|
|
inherit
212704
0
Dec 24, 2022 0:53:59 GMT -8
petrxx2003
82
August 2014
petrxx2003
|
Post by petrxx2003 on Feb 22, 2015 12:21:00 GMT -8
Thanks all of you, Craig, Brian, and user_1004d. I'm going to try everything. I of course prefer direct changes in the code rather than plugins but I understand it's not possible in some cases. I'm already using Easy Text Switcher but it doesn't change all the buttons I need, I'm waiting eagerly for new versions. I'm also using Switch-It which is helpful in some other cases. Anyway I'd like to localize everything that's possible. I believe most of our members understand English but once I have started translating the forum (both phpBB and SMF that are generally used on discussion forums I attend are fully localized) so I wouldn't like to end half-way. If there's anybody else from Czech Republic using ProBoards I can send him the templates as well as settings of the plugins when I finish it.
|
|
inherit
212704
0
Dec 24, 2022 0:53:59 GMT -8
petrxx2003
82
August 2014
petrxx2003
|
Post by petrxx2003 on Feb 23, 2015 10:11:57 GMT -8
For some buttons, however, you can translate, but will need the long form of the code. Thank you, it works well. But what to do with these arrays? {foreach $[legend]} <td>$[legend.icon] <span>$[legend.name]</span></td> {/foreach}
I would like to replace the texts in [legend.name] or to define new array instead, called for instance legend.textcz. But where to put it? I have made a quick hack using direct links to the icons so now it looks like this: <td><img alt="New Posts" src="http://storage.proboards.com/5680756/i/VDlOlz24Z_hgGLdifIzl.png" title="New Posts" /> <span>Nové p?ísp?vky</span></td> <td><img alt="No New Posts" src="http://storage.proboards.com/5680756/i/UXn2RSOKm5_A8HXZST2Z.png" title="No New Posts" /> <span>Žádné nové p?ísp?vky</span></td>
It is efficient but not very professional.
|
|
inherit
212704
0
Dec 24, 2022 0:53:59 GMT -8
petrxx2003
82
August 2014
petrxx2003
|
Post by petrxx2003 on Feb 28, 2015 17:20:13 GMT -8
Note the difference in the adding of the <a ... > tag, and the .href to the variable. That should work for all of the buttons. It doesn't work in User Profile, or I'm doing something wrong. Replacing $[send_message_button] by <a href="$[send_message_button.href]" class="send_message_button">Poslat zprávu</a> gives the link, but without the button.
|
|
#eb7100
1480
0
1
Nov 27, 2024 6:25:30 GMT -8
Craig
209,200
September 2001
cmdynasty
|
Post by Craig on Mar 1, 2015 0:11:35 GMT -8
Ah, yeah. Ok. So you want to try:
<a href="$[send_message_button.href]" class="button" role="button">Poslat zprávu</a>
|
|
inherit
212704
0
Dec 24, 2022 0:53:59 GMT -8
petrxx2003
82
August 2014
petrxx2003
|
Post by petrxx2003 on Mar 1, 2015 1:14:55 GMT -8
|
|
#eb7100
1480
0
1
Nov 27, 2024 6:25:30 GMT -8
Craig
209,200
September 2001
cmdynasty
|
Post by Craig on Mar 1, 2015 2:10:12 GMT -8
How you did it is the best way, unless you want to use the switchit script i linked to previously.
|
|
inherit
212704
0
Dec 24, 2022 0:53:59 GMT -8
petrxx2003
82
August 2014
petrxx2003
|
Post by petrxx2003 on Mar 1, 2015 2:57:03 GMT -8
How you did it is the best way, unless you want to use the switchit script i linked to previously. Thank you, Craig, I'm using Switch-It Plugin, I believe it's the same or similar. The problem is it changes the texts globally and sometimes it makes quite a mess. So in some cases I need to translate only one instance of such text. I have thougt I might define and use a new class but if it's impossible I'm going to do it as before. Thanks again for your help.
|
|
inherit
212704
0
Dec 24, 2022 0:53:59 GMT -8
petrxx2003
82
August 2014
petrxx2003
|
Post by petrxx2003 on Mar 1, 2015 13:18:11 GMT -8
Well, well, well. The more the better. I've been trying to translate the button "Save changes" in Posting Page. Neither of those two substitutions have worked, the second one resulted in translated button that didn't save anything and didn't let me leave the page. So I had to use the source code instead. I had to replace <div class="submit content-box pad-all-double"> <span class="float-right">$[form.post.button]</span> <span class="note small left-item" id="$[transcription.id]"></span> </div> by <div class="submit content-box pad-all-double"> <span class="float-right"><input id="form_4uPmP5DJ_post_button" name="post" tabindex="4" value="Ulož zm?ny" type="submit" /></span> <span class="note small left-item" id="magic-sentence"></span> </div> Is there a better way to do such things?
|
|
inherit
212704
0
Dec 24, 2022 0:53:59 GMT -8
petrxx2003
82
August 2014
petrxx2003
|
Post by petrxx2003 on Mar 11, 2015 3:20:55 GMT -8
Hi Unfortunately, not all will be able to be edited in the templates. For some buttons, however, you can translate, but will need the long form of the code. So, for example, the reply button in the thread template: <ul class="controls"><li>$[reply_button]</li></ul>
would become <ul class="controls"><li><a heaf="$[reply_button.href]" class="reply-button">Reply</a></li></ul>
Note the difference in the adding of the <a ... > tag, and the .href to the variable. That should work for all of the buttons. For some of the areas, you may need to use the switchit code: support.proboards.com/thread/432508/script-swap-find-replace-easilyIf you have anhy problems with the above, let us know Thank you, the switchit code is much better than the plugin. I can use it in various templates with different options while the switchit plugin works globally for the whole forum and translates even words in posts and in CODE, which is quite unuseable.
|
|