Page 1 of 1
[SOLVED] CMSms MLE integrating language switch into horizontal menue
Posted: Mon Mar 31, 2008 11:52 am
by kerbenok
Hi,
how can I integrate the switching of language inside a menue, eg. the horizontal menue. Due to design reasons I would like to skip the flags.
Would be great if someboda can give me a tip.
Best
Kerbenok
Re: CMSms MLE integrating language switch into horizontal menue
Posted: Mon Mar 31, 2008 12:29 pm
by alby
kerbenok wrote:
how can I integrate the switching of language inside a menue, eg. the horizontal menue. Due to design reasons I would like to skip the flags.
You can use Textual switching of language (add text param in config_lang.php)
Alby
Re: CMSms MLE integrating language switch into horizontal menue
Posted: Mon Mar 31, 2008 3:50 pm
by kerbenok
Hi Alby,
thanks for your fast feedback. In the config File the textural language is defined. How do I have to proceed further. I still have to tell the Navigation to use it, right?
Code: Select all
define('DEFAULT_LANG', 'de_DE');
$force_mle_default = false;
$hls = array(
'en_US' => array(
'block'=>'en',
'flag'=>'<img src="images/lang/en_US.png" style="border:0" alt="English" />',
'text'=>'English',
'parent'=>'en',
),
'de_DE' => array(
'block'=>'de',
'flag'=>'<img src="images/lang/de_DE.png" style="border:0" alt="Deutsch" />',
'text'=>'Deutsch',
),
I'm a beginner in this topic. Hope you can give me another hint.
Best
);
?>
Re: CMSms MLE integrating language switch into horizontal menue
Posted: Mon Mar 31, 2008 4:46 pm
by alby
kerbenok wrote:
thanks for your fast feedback. In the config File the textural language is defined. How do I have to proceed further. I still have to tell the Navigation to use it, right?
{lang text=true} display text switch (for other params view help in Extensions > Plugins > function.lang)
you must add in template (page or menu but out of loop)
Alby
Re: CMSms MLE integrating language switch into horizontal menue
Posted: Tue Apr 01, 2008 9:53 am
by kerbenok
Hi Alby,
thanks for your support. It works.
Best Kerbenok