[SOLVED]Translating the board navigation too

Support for IntegraMOD 140

Moderator: Integra Moderator

[SOLVED]Translating the board navigation too

PostAuthor: febern » Thu Jul 27, 2006 4:00 am

Hello!

my site language is hungarian and english. I would like to do that if someone change the language board from english to hungarian, the board navigation sections will be hungarian as well. Because now it stayed the same (english) if someone change the hungarian language. Well, at the moment my board navigation is look like: "Downloads / LetÃÂÂ ¶ltÃÂÂ ©s" which looks really awful and crach the scheme.................so is it possible to do that if someone turn the hungarian language on the board, the navigation will be hungarian as well? So in other words: if someone choose english, he can see this in the navigation : Downloads. But if someone choose hungarian, he can see this in navigation: LetÃÂÂ ¶ltÃÂÂ ©s. AND NOT: Downloads/LetÃÂÂ ¶ltÃÂÂ ©s.

I hope it's clear..........
Last edited by febern on Mon Jul 31, 2006 10:36 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00

Re: Translating the board navigation too

PostAuthor: Whisky » Thu Jul 27, 2006 5:15 am

Hi,

I suppose that you are reffering to the Qbar board_navigation menu

If so, what you are asking for is quiet easy to do:

Gon in ACP => General Admin => Qbar
There choose your board_navigation bar

There you can see all your links, if you edit one link, the third option is:

Shortcut
The shortcut is what is displayed in the menu or the bar option. You can use text, or a key of the language array.
(check language/lang_your_language/lang_main.php)


Meaning that if you add a link for wich a key is not yet defined in the language array, you have to create this key by yourself in the file lang_main.php

Then you just put the name of the key you have created as a shortcut and your translation will be fine

Hope it helps

Regards,

Whisky
Last edited by Whisky on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
I am the Lizard King, I can do anything

Whisky
Sr Integra Member
Sr Integra Member
 
Posts: 256
Likes: 0 post
Liked in: 0 post
Joined: Thu May 18, 2006 2:28 am
Cash on hand: 0.00
Location: Brussels

Re: Translating the board navigation too

PostAuthor: febern » Thu Jul 27, 2006 11:09 am

Well, i just solved in another way, because your idea was too complicated for me for the first time <img> , but it works now............Thanx anyway
Last edited by febern on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00

Re: Translating the board navigation too

PostAuthor: Flex » Thu Jul 27, 2006 3:21 pm

"febern";p="12534" wrote:Well, i just solved in another way, because your idea was too complicated for me for the first time <img> , but it works now............Thanx anyway


I I don't need this but perhaps others do... How did you manage to solve your issue?
Last edited by Flex on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]My integramod site <img>[/url]

Flex
Sr Integra Member
Sr Integra Member
 
Posts: 221
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 4:09 pm
Cash on hand: 0.00

PostAuthor: Okki » Thu Jul 27, 2006 3:25 pm

you need to copy the all english language directories and translate the text of language key's in the files

then you have to add your language to the "auto language selector" in the ACP

then when people have there browser configured to prefer the Hungarian language the site will use the hungarian langauge files

when i gonna visit your site, and you have the files for nederlands installed, i can read your site automaticaly, as my browser favorite language is
1 Nederlands (NL)
2 English (EN)
3 Germand (DE)
4 French (FR)

so when i go to your site and you have hungarian and english installed, the language will be english

Only the text in posts i can not read <img>

when you have a zip file for me to download with the hungarian language files i can put them for download, and add them to my site, for demonstration




[size=99px]
[b]The best IntegraMOD support site] [url=http]http://www.IntergaMOD.nl[/url]
Last edited by Okki on Tue Aug 15, 2006 11:09 am, edited 1 time in total.
[hr][size=99px] [url=http]http][/size]
[color=red][size=99px][/size]
Please visit our advertisers.
User avatar
Okki
Dev Team
Dev Team
 
Posts: 576
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 26, 2006 2:05 pm
Cash on hand: 0.00

Re: Translating the board navigation too

PostAuthor: febern » Fri Jul 28, 2006 12:44 am

I did the following:

i went to my language/lang_hungarian

i opened with my editor lang_extend_qbar file. And there i just renamed the english menu names to hungarian. That's all............but i have a little problem, i found every menu section name there except downloads :(
Last edited by febern on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00

Re: Translating the board navigation too

PostAuthor: Okki » Fri Jul 28, 2006 3:11 am

Ok, perfect.

Now for the missing key:

open lang_extend_qbar.php
find
Code: Select all
?>

add before
Code: Select all
$lang['Downloads']                   = 'Downloads';$lang['Downloads_explain']                   = 'Go to the Download section';


and translate it in your language.


open includes/def_qbar.php
find:
Code: Select all
                        'Download' => array(                                 'shortcut'       => 'Downloads',  

add after:
Code: Select all
                                'explain'       => 'Downloads_explain',  
Don't translate this!


Do you also have the english files on your site?
And did you add Hungarian to "Auto Language Select" in ACP?

Last question, do you have an url for us to have a look, you could sent it in a PM if you like?




[size=99px]
[b]The best IntegraMOD support site] [url=http]http://www.IntergaMOD.nl[/url]
Last edited by Okki on Tue Aug 15, 2006 11:09 am, edited 1 time in total.
[hr][size=99px] [url=http]http][/size]
[color=red][size=99px][/size]
Please visit our advertisers.
User avatar
Okki
Dev Team
Dev Team
 
Posts: 576
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 26, 2006 2:05 pm
Cash on hand: 0.00

Re: Translating the board navigation too

PostAuthor: febern » Fri Jul 28, 2006 9:51 am

Thx for your help! I will do that as soon as possible! Yeah i did auto language detection! My site still under construction, so i will link in this forum if i finished and send someone my hungarian translation!
Last edited by febern on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00

PostAuthor: Okki » Fri Jul 28, 2006 1:41 pm

Ok




[size=99px]
[b]The best IntegraMOD support site] [url=http]http://www.IntergaMOD.nl[/url]
Last edited by Okki on Tue Aug 15, 2006 11:10 am, edited 1 time in total.
[hr][size=99px] [url=http]http][/size]
[color=red][size=99px][/size]
Please visit our advertisers.
User avatar
Okki
Dev Team
Dev Team
 
Posts: 576
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 26, 2006 2:05 pm
Cash on hand: 0.00

PostAuthor: febern » Mon Jul 31, 2006 7:12 am

"Okki";p="12618" wrote:Ok


Would you be so kind as to write down this same with gallery, please? :D Thank you
Last edited by febern on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00

Re: Translating the board navigation too

PostAuthor: Okki » Mon Jul 31, 2006 5:12 pm

you mean album?

for album the key's are in the lang_extend_qbar.php

Code: Select all
$lang['Album']                       = 'Album';$lang['Album_explain']               = 'View uploaded images';  $lang['Personal_album']       = 'My Album';$lang['Personal_album_explain']               = 'Your own personal album';$lang['Personal_albums']         = 'Personal Albums';$lang['Personal_albums_explain']                 = 'All personal albums';  




[size=99px]
[b]The best IntegraMOD support site] [url=http]http://www.IntergaMOD.nl[/url]
Last edited by Okki on Tue Aug 15, 2006 11:08 am, edited 1 time in total.
[hr][size=99px] [url=http]http][/size]
[color=red][size=99px][/size]
Please visit our advertisers.
User avatar
Okki
Dev Team
Dev Team
 
Posts: 576
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 26, 2006 2:05 pm
Cash on hand: 0.00

Re: Translating the board navigation too

PostAuthor: febern » Mon Jul 31, 2006 10:36 pm

Thank you very much! <img>
Last edited by febern on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 11:08 pm
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Helter