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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

translation


Go to End


3 Posts   1302 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.