Hello
I'm upgrading ss cmsed site to multi language version. How can I read browser language settings to set up site serving language?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hello
I'm upgrading ss cmsed site to multi language version. How can I read browser language settings to set up site serving language?
Impossible? Nobody knows?
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
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.