The Joomla! Forum ™






Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Main Menu Translation
PostPosted: Fri Sep 26, 2008 12:00 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Sat Sep 02, 2006 6:11 pm
Posts: 85
Location: Schwerin, Germany
Hi everyone,

the Multi-Language support in Joomla 1.5 is really great.
However, I am wondering how I could translate the main menu, without using an extension like JoomFish.

Is there a way of including the menu items to the en-GB.mod_mainmenu.ini language file?

Thanks for your replies.

Alex


Top
 Profile  
 
PostPosted: Fri Sep 26, 2008 12:30 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 293
Location: Latvia
Maybe I have not got correct, but You can translate sample_data.sql where records for all menu items are located. So I do not se reason of including them anywhere else.

_________________
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team  - http://www.joomlalv.org


Top
 Profile  
 
PostPosted: Fri Sep 26, 2008 1:26 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Sat Sep 02, 2006 6:11 pm
Posts: 85
Location: Schwerin, Germany
Hi Lemmings,

what I'm trying to do is, that a user logs in to the site, and the menu items appear in the laguage specified in his profile.
When writing a component, I can call the translations for text by calling the JText::_ method.
Code:
JText::_('TEXT');


Somehow I can't see a way to do that with menu items.
Is there a Joomla-Way of translating menu-items, like there is to translate text in components?

Best wishes,
Alex


Top
 Profile  
 
PostPosted: Fri Sep 26, 2008 2:00 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Tue Oct 11, 2005 5:43 pm
Posts: 293
Location: Latvia
Sorry, I can not help You in this case, I never had a need for that.

I believe this hack You propose will break up translation packages, ok it is possible to define some very common menu item names, but what if You have one not defined?

_________________
Member of the Latvian Joomla Translation Team
Latvian project in JoomlaCode- http://joomlacode.org/gf/project/joomla_latvian/
Latvian Joomla! team  - http://www.joomlalv.org


Top
 Profile  
 
PostPosted: Fri Sep 26, 2008 2:13 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16631
Location: **Translation Matters**
Menu items titles are not language strings. They are database entries. The JText code is not applicable in this case.
Only Joomfish can do that by saving a said-language menu item title separately in the db.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Fri Sep 26, 2008 2:20 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Thu Sep 15, 2005 4:44 am
Posts: 293
Location: Hungary
M17n is a simplier solution than Joom!Fish.

_________________
Jozsef Tamas Herczeg // Board Member of Joomla! User Association Hungary
Member of the Hungarian Joomla Translation Team :: Follow me on Twitter: @jtherczeg and @juah
:: "Do not give fish to the hungry man teach him how to fish instead" ::


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 164 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group