Hi Everyone,
I'm using the translatable module to create a multilingual website for a client and it seems to be playing havoc with the admin panel. When you go to the files tab, and then click on a folder it appends "?locale=en_GB" to the end of the URL. This sometimes creates a silverstripe popup saying "Internal Server Error". Here is a copy of what is written in my "mysite/_config.php" file:
// Set the site locale
i18n::set_locale('en_GB');
// Enable custom site config details
DataObject::add_extension('SiteConfig', 'CustomConfig');
// Set the languages you wish to have available
i18n::$common_locales = array(
'en_GB' => array('English (UK)', 'English (UK)'),
'fr_FR' => array('French', 'français'),
'de_DE' => array('German', 'Deutsch')
);
// Set the default locale for multi-lingual site
Translatable::set_default_locale('en_GB');
// Sets the environment type to dev, test, live
Director::set_environment_type('dev');
I am running SilverStripe 3.0.5 and translatable module 1.0. From what I can tell these are both supposed to be compatible with each other.
I've also just found that all Model Admins for all the custom Data Objects I've created are broken because the translatable module keeps appending "?locale=en_GB" to the end of everything.
If you need anymore information please just ask.
Thanks,
Arun