I’ve just downloaded copy of yii framework and would like to change application default language.
According to documentation I’ve added ‘language’=>‘pl’ in main configuration file, but it does not change anything, all messages are still in english. I’ve also tried to copy messages file from framework dir do my application dir but it does not help.
When I put a call to method to show current language in template it shows correctly: pl, but messages are not translated
All texts in your views, controllers and model attributes need to be changed using the Yii::t() function. These function uses a file you should create in your messages directory having all translated messages.
Creating .php files works, creating .po files from .php the works too, when I comment ‘messages’ the translation comes out of .php files and work well (i.e. dirs are correct), need to make .po files work too.
Seems it is a configuration issues (sorry, downloaded yii first time only yesterday…), googling does not help, any comments appreciated…