public function rules() {
return array(
array('username,password', 'required','on' => 'create',
'message' => Yii::t('default','cannot be blank'),
so, when i going to edit messages, I just may need to edit file in "protected/message/default" instead edit all models or other files. In addition,I can easealy switch to another language or multiple language if necessary.
Nevertheless,I think this practice is Inappropriate. beacuse of slow down the performance and extra overhead.what’s your opinion?
I am studing the better way to do the I18N by Yii.
Firstly, I studied the Internationalization by Yii at the same site (yiiframework).
I like the idea of how Yii help with I18N. It creates duplicate php files one for every folder associated to locale language (like KonApaz example number one)
The question is, ¿how do I resolved the cache problems? That this method slows down the load page, is sure.
Secondly, I studied the I18N the "gettext php translation" go with the POedit tool to create .po and .mo.
It is a good idea to because the duplicate files are plan text which will be loaded over view files in a fast way more.
But even though resolve the slowing down cache, this have another problem with cache and the replacement the text inside this.