Yii Framework Forum: message translation into .po - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

message translation into .po

#21 User is offline   Jelmo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 23-October 12

Posted 25 October 2012 - 07:09 AM

View PostEliovir, on 24 October 2012 - 12:07 PM, said:

I use this configuration, with absolute paths:
return array(
        'sourcePath'=>dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..',
        'messagePath'=>dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'messages',
        'languages'=>array('da', 'de', 'eo', 'fr', 'it', 'nl', 'pl'),
        'autoMerge'=>true,
        'launchpad'=>true,
        'skipUnused'=>true,
        'fileTypes'=>array('php'),
        'exclude'=>array(
                '.svn',
                '.bzr',
                '/messages',
                '/protected/vendors',
        ),
);



I copied your config, and only changed the languages array to fit my needs and set launchpad to false, but sadly got the same results. It kept parsing the config file itself and tried to translate the languages array and thus tried tot strlen the languages array which raised the error in the first place.

I then just renamed my config file to .bl (can be anything but not php) from .php and adjusted the commandline command accordingly. Now everything works!

Dunno if this is something in my setup or not, but it seems to me the exclude param is ignored
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users