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:
    // ...settings...
    'language' => 'fr',
    // ...more settings...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.