Setting the Language of Navigation Links

e107 CMS » Forums » Miscellaneous » Translations << Previous thread | Next thread >>
Jeeva
Apr 22 2006, 07:43AM
Registered Member #6725
Joined: May 11 2004, 12:18AM
Posts: 27
Hi

I'm currently using 2 Languages on my site, Croatian & English. I added croatian through the Multi-Language Tab under the Language options in version 0.7.2 and I am using the "TREE" menu.

I would like to know, how do I make my English Menu Navigation Links change to Croatian once a user change sets his site language.

Thanks
Go to top
Anti
Apr 22 2006, 10:58AM
Registered Member #23994
Joined: Jan 21 2006, 02:20AM
Posts: 1880

Admin => language => Croatian => edit
Tick the 'links' checkbox (about half way down the list of database tables).

-> Doing this will copy the existing default-language 'Sitelinks' menu over to a Croatian version of the Sitelinks table in the database. Everytime Croatian is selected, users will see this Croatian version of the Sitelinks database table, rather than the English version.

-> To edit the Croation menu (or any of the other database tables you copied), simply select that language. Any content that was copied over to Croatian, will be edited indepedently of the English version.
If you choose Croatian language, but then edit content which *hasn't* had it's database tables copied (ie. there is only one version of that database table), then you'll edit the English version, even though language selected is Croatian.

-> It is not a good idea to copy *all* tables across to another language; that effectively means you'll have two seperate websites. For example, there should usually only be one instance of the forum, calendar, polls, downloads, comments, etc. I suggest copying only the 'links' and 'page' (custom pages) tables to begin with, until you become comfortable with how language works and what the difficulties are.
[ Edited Apr 22 2006, 11:01AM ]
Go to top
Jeeva
Apr 23 2006, 11:00AM
Registered Member #6725
Joined: May 11 2004, 12:18AM
Posts: 27
Thanks alot !!
Go to top
CaMer0n
Apr 24 2006, 10:48PM
CaMer0n
  • e107 Main site administrator
  • e107 Core developer
  • e107 Design Team
Registered Member #1013
Joined: Feb 27 2003, 06:41AM
Location: Las Vegas, NV, USA
Posts: 765
Yes, you can do it that way OR if your links are identical for both languages.. you can use LAN_ values as your link names, and then create a Croatian_custom.php and English_custom.php file, with the defined LAN_WHATEVER link names in them.
Go to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System