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.

Customising the CMS /

translation


Reply


3 Posts   1074 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
banal

Community Member, 901 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.