laupkram
(Mahan Mp)
1
I think this somewhat stupid to ask but somehow I want to know if this really possible…
Can I change language in the static pages? i’m currently using i18n and no luck to swap languages.
I can only change language in non-static pages(the one with controllers)
Is there any possible workaround for this? thanks
joblo
(Joe)
2
Not tested, but should work like every other view.
Take a look at the code of CViewAction.
To find the view $this->getController()->getViewFile($view) is called.
Inside this, Yii::app()->findLocalizedFile is used, so a structure like below should work.
views/site/pages
de
mypage.php
en
mypage.php
…