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.

General Questions /

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

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

Question about multi-language in 2.3.2


Go to End


2386 Views

Avatar
Foulensois

Community Member, 13 Posts

7 May 2009 at 9:39am

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