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
'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: 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
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!