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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Hopefully a simple Multi Language question

Go to End

2 Posts   1385 Views


Community Member, 35 Posts

21 September 2010 at 1:37pm

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.


Community Member, 35 Posts

21 September 2010 at 2:25pm

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.