18591 Posts in 4875 Topics by 2285 members
General Questions
SilverStripe Forums » General Questions » SS 2.3.3 Translatable & browser language settings
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 990 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.
| 990 Views | ||
|
Page:
1
|
Go to Top |



