Hi,
In config/main.php:
In View:
In protected/messages/fr/messages.po
… this isn't working – what am I missing?
Thanks,
_da.
Hi,
In config/main.php:
In View:
In protected/messages/fr/messages.po
… this isn't working – what am I missing?
Thanks,
_da.
Hi,
i haven't used i18n yet, but could it be possible that you also have set Yii::app()->sourceLanguage to fr? In this case t() will not translate the messages.
Thank you!
For some stupid reason I was calling Yii::app()->getMessages()->setLanguage(‘fr’) along with Yii::app()->setLanguage(‘fr’) trying to get it to work, but the former statement sets the source language, not the destination language. Duh.
_da.