Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Question about multi-language in 2.3.2

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1283 Views
  • Foulensois
    Avatar
    Community Member
    13 Posts

    Question about multi-language in 2.3.2 Link to this post

    Hello,

    I tested the new release and I've got some questions.

    In mysite/_config.php, I add these lines

    Object::add_extension('SiteTree', 'Translatable');
    Translatable::set_default_locale('fr_FR');

    I've got the content language in french, it's OK.

    But when I try to make this, the language is always english :

    - Login to the admin zone : mysilverstripe.com/Security/login

    How can I do ?

    I must have these lines too ?

    In 2.2.4, I had :

    i18n::enable();
    i18n::set_default_lang('fr');
    i18n::set_locale('fr_FR');

    Sorry but I don't understand the new release and the documentation

    1283 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.