How I could figured it?
mainmenu is for lithuanian
mainmenu_en is for English
designguru wrote:
Okay Guys, I figured it out and this is a fantastic soluton I'm sure lots of you implementing Joomfish will love!
I decided to write a simple php statement that will load certain module positions in the same space on a template, depending which language I want them to independantly handle.
Benefits of this approach:
Here's the code:
- you can create content in any language you want and hide the default message or auto-created joomfish version
- you have flexibility in what you want each language's menu-modules to display
- you can still include native language menu items in your alternate language menus - effectively using joomfish for parts of your site and not the whole site
Of course, you can use any module position - you aren't restricted to 'inside_r' and 'inside_rfr' - I arbitrarily chose 'emCode: Select all
<!-- BEGIN custom language switch by http://www.designguru.org to load language-specific modules --> <?php if ($mosConfig_lang== english ) {mosLoadModules ( 'inside_r', -2 );} ?> <?php if ($mosConfig_lang== french ) {mosLoadModules ( 'inside_rfr', -2 );} ?> <!-- END language switch -->
Cheers,
q./