Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Hopefully a simple Multi Language question

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: 920 Views
  • ImacSS
    Avatar
    Community Member
    35 Posts

    Hopefully a simple Multi Language question Link to this post

    Working with SS 2.3.2.

    Client needs to have a distinction between en_US and en_GB content.

    Noticing that the default language dropdown in the CMS only contains "English" - with no further distinction.

    Is there a way I can override the language entries that appear in this dropdown and affect the languages available for the CMS?

    Any ideas? Thanks in advance.

  • ImacSS
    Avatar
    Community Member
    35 Posts

    Re: Hopefully a simple Multi Language question Link to this post

    Thanks to DesignCity on the IRC channel for this...

    In the _config.php file, add the following...

    global $allowed_locales;
    $allowed_locales = array('en_GB' => array('English (UK)','English (UK)'));
    i18n::$common_locales = $allowed_locales;

    This will replace the default list of alternative languages, so populate the $allowed_locales array with ALL of the languages you need.

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