Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Where can you change languages?

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

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

Page: 1
Go to End
Author Topic: 2145 Views
  • raamklaza
    Avatar
    Community Member
    182 Posts

    Where can you change languages? Link to this post

    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?

  • Slieric
    Avatar
    Community Member
    1 Post

    Re: Where can you change languages? Link to this post

    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.

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: Where can you change languages? Link to this post

    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.

  • AndrewK
    Avatar
    Community Member
    7 Posts

    Re: Where can you change languages? Link to this post

    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.

  • Nuttydo
    Avatar
    Community Member
    16 Posts

    Re: Where can you change languages? Link to this post

    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?

    2145 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.