Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » translation

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

Page: 1
Go to End
Author Topic: 1007 Views
  • rotor
    Avatar
    Community Member
    3 Posts

    translation Link to this post

    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..

  • banal
    Avatar
    Community Member
    901 Posts

    Re: translation Link to this post

    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.

  • rotor
    Avatar
    Community Member
    3 Posts

    Re: translation Link to this post

    oh - that easy
    and it even worked.

    1007 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.