I can't seem to get this to work for the live of me.
I've downloaded the EmessageCommand package, and included.
I've created an config file under protected/messages called emssagesConfig.php which has the following variables
return array(
'sourcePath' => '../protected/views/',
'messagePath' => '../protected/messages/',
'languages' => array('en_us', 'nl_nl'),
'launchpad' => false,
'fileTypes' => array('php'),
'exclude' => array('.svn', 'messages', 'config.php'),
'translator' => 'Yii::t'
);
Removing any of these vars will cause an error when running the command
When i run the command yiic emessage php --config=messages/emessagesConfig.php i get the following error:
PHP Error[2]: strlen() expects parameter 1 to be string, array given
in file EMessageCommand.php at line 564
I've looked up the line, and added some code that will check if the value given to strlen() is an array, and if so, will print it. The output of that is the following
array(2) {
[0]=>
string(5) "en_us"
[1]=>
string(5) "nl_nl"
}
So it seems to me EmessagesCommand is trying to read my config file into a po file? I can't seem to find out what is wrong here. Any help is greatly appreciated!