21281 Posts in 5729 Topics by 2600 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1150 Views |
-
SS 2.3.3 Translatable & browser language settings

17 September 2009 at 9:03pm
Hello
I'm upgrading ss cmsed site to multi language version. How can I read browser language settings to set up site serving language?
-
Re: SS 2.3.3 Translatable & browser language settings

23 September 2009 at 1:14am
Impossible? Nobody knows?
-
Re: SS 2.3.3 Translatable & browser language settings

23 September 2009 at 2:52am
You'll need to write a small bit of code to read the User Agent and switch the language.
1. Figure out the language, likely with $_SERVER["HTTP_ACCEPT_LANGUAGE"]
2. Switch it automatically, likely in your init() of Page_Controller. You can find the code to switch on the wiki:http://doc.silverstripe.com/doku.php?id=recipes:pretty_i18n_urls
http://doc.silverstripe.com/doku.php?id=recipes:multilingual_content
-
Re: SS 2.3.3 Translatable & browser language settings

3 October 2009 at 6:05pm
Hello
A lot of people have the same problem.
Just Like BUGS!I think that better,
From a beginning, Admin get possible to manage language.
| 1150 Views | ||
|
Page:
1
|
Go to Top |



