Multilanguage Pages

How can I manage multilanguage system for entire view files?

The Yii::t() function translate text for each message from protected/messages/[language]/[classname].php

Is there way to load the appropriate view file (for example protected/views/pages/[language]/[controllerview].php) instead translate each seperated text?

Yes it’s automatic

hi bennouna, thanks for response!

The default folder structure is protected/views/controllerview.php

Do you mean if I create extra folder in views

for example

protected/views/site/[mylanguage]/controllerview.php

protected/views/site/[mylanguage2]/controllerview.php

The Yii system detect that automatically?

Yes

Thanks! it works