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.

General Questions

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

Question about multi-language in 2.3.2


Reply

1358 Views

Avatar
Foulensois

7 May 2009 at 9:39am Community Member, 13 Posts

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 :(