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



The Yii system detect that automatically?


Thanks! it works