Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Where can you change languages?


Go to End


5 Posts   2962 Views

Avatar
raamklaza

Community Member, 182 Posts

9 November 2008 at 6:12am

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?

Avatar
Slieric

Community Member, 1 Post

11 November 2008 at 12:43pm

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.

Avatar
raamklaza

Community Member, 182 Posts

11 November 2008 at 12:58pm

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.

Avatar
AndrewK

Community Member, 7 Posts

19 November 2008 at 5:50am

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.

Avatar
Nuttydo

Community Member, 16 Posts

19 November 2008 at 6:14am

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?