01 Dec 2013
YII – Changing Language
If we want to change language of a particular action in YII or for the whole application we need to , set CApplication::language
. This can be done at runtime as in
Yii::app()->language = 'fr';
but we can also do it in
application configuration:
array( // ...settings... 'language' => 'fr', // ...more settings... )