Elxis CMS Forum
Support => General => Topic started by: elpvn on May 13, 2009, 22:03:31
-
Hi everyone,
When I build my site with Elxis 2009 with both language (include Vietnamese and English), I set Vietnamese as default language, but when loading my website, Elxis still auto switch to English language (maybe by computer my region setting related), so when type address mysite.com on the internet browser address bar then my site load follow URL: http://www.mysite.com/en/ (English) instead load follow http://www.mysite.com (Vietnamese) as I wonder.
Anyone can help?
Thanks
-
Redirect to user's browser language
This feature is available in Elxis 2009.0 DEV rev2288 or newer.
When a visitor first visits your front-page during a session Elxis will automatically detect his browser language and re-direct him to a version of the site in this language (if exists). Notice that this redirect only happens when you visit the front-page.
If you want to disable this feature open Elxis' index.php and comment this line:
$elxis_language->toBrowserLang();
http://wiki.elxis.org/wiki/2008.1_vs_2009.0_differences#Redirect_to_user.27s_browser_language
-
Great suggestion, all of related issues now solved.
Thank Kebic.