I found the lang directory but where can you set the language for the frontend or the backend?
Is there a way for flexible language settings, so that the user can set it in the admin and frontend themselfs?
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.
I found the lang directory but where can you set the language for the frontend or the backend?
Is there a way for flexible language settings, so that the user can set it in the admin and frontend themselfs?
Hoi,
You can change the backend language in _config.php which is a file in the sapphire directory.
There's a commented line for i18n settings. Uncomment it and change it to:
i18n::set_locale('nl_NL');
Reload the backoffice in your browser en klaar is Kees.
Cheers.
Is it also possible for the visitors to change the front-end language?
That i add a field in the cms with language english, german and dutch. And then on the front-end they choose.
If the page isn't available in their language you can set a default language which takes over.
I was wondering the same thing, and it looks like there is a ready-made solution: http://silverstripe.com/Language-Chooser-Widget-2/
More about the various options can be found here http://doc.silverstripe.com/doku.php?id=multilingualcontent recommend you give it a read first.
I am trying to implement a form for newsletter signup and want to change the word submit (what the site visitor sees, not logged in users) on the submit button into German. Where do I do this?