17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 3455 Views |
-
Set start Language

2 July 2008 at 9:02pm
Hello,
how can i set a new standard Language for user in a multilanguage environment?
via ?lang=de and ?lang=en works, but on first visit its english not german?
i18n::set_default_lang('de'); // for German not work
Kind Regards
-
Re: Set start Language

3 July 2008 at 1:45am
Hi vispi,
try this in the mysite/_config.php
i18n::set_locale('de_DE');
setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');but...
...does anybody knows how to change the meta tag content language
<meta http-equiv="Content-Language" content="en">I couldn't find any settings how to switch the content language.
-
Re: Set start Language

3 July 2008 at 5:10am Last edited: 3 July 2008 5:10am
Hi.
vispi, try putting this in your "_config.php" file:
i18n::enable();
i18n::set_default_lang('de_DE');tiga, I think that if you use this code in your native language, your problem will be solved.
Best Regards
-
Re: Set start Language

3 July 2008 at 6:53pm
hi,
_config.php includes now
i18n::enable();
i18n::set_default_lang('de_DE'); // for German
i18n::set_locale('de_DE');
setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
HTTP::set_cache_age(0);But Visit Start-Languageare english and CMS Languages now German (Germany) = English Version and German = German Version.
<meta http-equiv="Content-Language" content="de"> not work.
Best Regards
-
Re: Set start Language

3 July 2008 at 9:12pm
vispi, try removing this code in your "_config.php" file:
setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
HTTP::set_cache_age(0);Best Regards
-
Re: Set start Language

4 July 2008 at 1:54am
sorry, but it's not work.
_config.php:
i18n::enable();
i18n::set_default_lang('de_DE');
i18n::set_locale('de_DE');Content was english but Security/login = German?
Strange.
-
Re: Set start Language

4 July 2008 at 3:41am
vispi, I forgot to tell you to remove this line:
i18n::set_locale('de_DE');
Best Regards
| 3455 Views | ||
| Go to Top | Next > |



)