yii-app
yii-app copied to clipboard
Multilingual
Hello,
First of all Great work on this app!
It seens ML (Multi Language) is not working, setLanguage function is not callable by app (I have uncommented ML code on main.php) and after dump Yii::app()->language, it never changes.
on my tests i put dies on init and setlanguage and app never dies, after i tried write to a file on hdd, and file is never created...
NOTE: i have create this function to force change language:
// This will prove the session is working public function setLanguageEx($lang) { if(isset($this->languages[$lang])) $language = $lang; else $language = $this->defaultLanguage;
$this->owner->language = $language;
$this->owner->user->setState('__locale', $language);
}
it changes correctly on session, and dump session shows correct values, but still happning the same, no language change on app init.
Thanks