In the docs it says:
But how does this this work there is not further explanation? and I don’t really see myself copying over array’s myself what is the best way to automate it?
In the docs it says:
But how does this this work there is not further explanation? and I don’t really see myself copying over array’s myself what is the best way to automate it?
OK i just see how it works
config/message.php
<?php
return array(
'sourcePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'public', /
'messagePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..'.DIRECTORY_SEPARATOR.'messages',
'languages' => array('ja_jp','th'),
'fileTypes' => array('php'),
'exclude' => array('.svn',),
'translator' => 'Yii::t',
);
In the shell: /var/www/html/yiic message /var/www/html/config/messages.php
Set source path different for application (controllers/modules/components) that need to be translated if you keep them seperate like in my case
Still one problem what if i change my source to: CGettextMessageSource can yii get the translations automatic too?
edit…
Ah just found this http://www.yiiframework.com/extension/pophpcommand/#download