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...
)
 

Leave a Reply

Your email address will not be published. Required fields are marked *

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