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.

Customising the CMS /

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

translation


Go to End


3 Posts   1638 Views

Avatar
rotor

Community Member, 3 Posts

11 July 2009 at 2:06am

Edited: 11/07/2009 2:07am

can anyone tell me what i have to do to have a german only site? i have this in my _config.php:

Object::add_extension('SiteTree', 'Translatable');
Translatable::enable();
Translatable::set_default_locale('de_DE');
Translatable::set_default_lang('de');

or if there's no german only, how i can configure to get the german homepage by default?
thanks..

Avatar
bummzack

Community Member, 904 Posts

11 July 2009 at 4:26am

You don't need Translatable for a monolingual site. You'll need that only if you want to translate your pages into multiple languages...

The only thing you may add to _config.php is

i18n::set_locale('de_DE');

That will enable the german translations for modules and such.

Avatar
rotor

Community Member, 3 Posts

11 July 2009 at 7:44am

oh - that easy :)
and it even worked.