CC-4805: Localization -> Changing default language changes datatables and add media language setting

-fixed
This commit is contained in:
denise 2013-01-07 18:18:40 -05:00
parent e9a86b7bcf
commit a65e72941f
4 changed files with 15 additions and 15 deletions

View file

@ -34,13 +34,7 @@ $front->registerPlugin(new RabbitMqPlugin());
//localization configuration
$codeset = 'UTF-8';
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$id = $auth->getIdentity()->id;
$lang = Application_Model_Preference::GetCurrentUserLocale($id).'.'.$codeset;
} else {
$lang = Application_Model_Preference::GetLocale().'.'.$codeset;
}
$lang = Application_Model_Preference::GetLocale().'.'.$codeset;
putenv("LC_ALL=$lang");
putenv("LANG=$lang");