return array(
'sourcePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..', //root dir of all source
'messagePath' => '/var/www/yii/project/protected/messages', //root dir of message translations
'languages' => array('lt_lt', 'en_us', "es_es", "ru_ru", "de_de"), //array of lang codes to translate to, e.g. es_mx
'fileTypes' => array('php','js',), //array of extensions no dot all others excluded
'exclude' => array('.svn',), //list of paths or files to exclude
'translator' => 'Yii::t', //this is the default but lets be complete
);
Yiic successfully creates translation files under protected/messages/ID/test.php
return array (
'blah' => 'blah in lithuanian',
);
Also mentioned language in main.php config:
return array(
...
'language' => 'en_us',
...
);
But when visiting site, it always shows me just blah, not translated. What I am missing? o_0
… just a note, maybe it’s an explanation: “r” is not sufficient for directories, the also need the “x” (executable) flag to be set, before you can access (read) them.