Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Multi-lingual contents for dummies (real dumb) please!

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 776 Views
  • kudesign
    Community Member
    64 Posts

    Multi-lingual contents for dummies (real dumb) please! Link to this post

    I have been searching for some simple steps to get a multi-lingual site started, but no luck at this stage. I am trying to setup English and Mandarin Chinese on a test site:

    This is what I have done so far, please help by adding to the steps:

    Step 1: mysite/_config.php - added in


    Step 2: ran database build - http://<mysite>/db/build

    Step 3: Making DataObjects translatable

    class Team extends DataObject {
    static $db = array(
    "Name" => "Varchar",
    "FoundedDate" => "Date",
    "Description" => "Text",

    // we don't want all fields to be translated (wouldn't make sense for a date, right?)
    static $extensions = array(

    Step 4: When I log-in to SS cms, I can see 'translation' tab, and a language selection drop down menu. I translated the my site Navigation menus into Mandarin, saved/published, and it previewed ok, but my site defaults to the Mandarin language, and not English. I had to select back to 'English' in the CMS, and refresh my browser to get it back to English content...

    Step 5: Not sure what to do next? i tried to call: http://<mysite>/mypage/?lang=tw but it doesn't work... the language selector widget looks like it is for blogging only? what do i have to do for ?lang=tw/?lang=en to work? please help!

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.