Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Using Multilingual Content in SilverStripe 2.4

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

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

Page: 1
Go to End
Author Topic: 1910 Views
  • theGermaniac
    Community Member
    82 Posts

    Using Multilingual Content in SilverStripe 2.4 Link to this post

    I'm trying to add a new translation to an existing site. The version is 2.4.2, so it should be no problem. I read this doc http://doc.silverstripe.org/multilingualcontent, but I'm not getting it running

    What I made so far is adding this to mysite/_config.php:

    // Set default locale to german / Germany

    // Enable multilingual content
    Object::add_extension('SiteTree', 'Translatable');
    Object::add_extension('SiteConfig', 'Translatable');

    After that I did rebuild my database with /dev/build/?flush=1, but nothing changed in the backend.

    What did I forget? Thanks for help in advance!

  • swaiba
    Forum Moderator
    1788 Posts

    Re: Using Multilingual Content in SilverStripe 2.4 Link to this post

    try having this in your _config.php...

    Object::add_extension('SiteTree', 'Translatable');

    Also this is a nice way to add the flags (to switch languages)...


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.