Bugs with i18n Message Config and Extract?

The documentation is sparse but using the advanced template, I tried this

MBP:mp3 Jeff$ mkdir ./frontend/messages

MBP:mp3 Jeff$ ./yii message/config ./frontend/messages/config.php

Configuration file template created at ‘./frontend/messages/config.php’.

But then extract fails … notice how it’s adding an additional messages directory to the target e.g. messages/messages

MBP:mp3 Jeff$ ./yii message/extract ./frontend/messages/config.php

Error: The message path /Users/Jeff/Sites/mp3/frontend/messages/messages is not a valid directory.

MBP:mp3 Jeff$ ./yii message/extract ./frontend/messages/

Error: The configuration file does not exist: ./frontend/messages/

MBP:mp3 Jeff$ ./yii message/extract ./frontend/messages

Error: The configuration file does not exist: ./frontend/messages

The config file is there …

MBP:mp3 Jeff$ ls ./frontend/messages/

config.php

Here’s the help file but it doesn’t explain this…

./yii help message

DESCRIPTION

Extracts messages to be translated from source files.

The extracted messages can be saved the following depending on format

setting in config file:

  • PHP message source files.

  • ".po" files.

  • Database.

Usage:

  1. Create a configuration file using the ‘message/config’ command:

    yii message/config /path/to/myapp/messages/config.php

  2. Edit the created config file, adjusting it for your web application needs.

  3. Run the ‘message/extract’ command, using created config:

    yii message /path/to/myapp/messages/config.php

SUB-COMMANDS

  • message/config: Creates a configuration file for the "extract" command.

  • message/extract (default): Extracts messages to be translated from source code.

To see the detailed information about individual sub-commands, enter:

yii help <sub-command>

Place your config one level upper in directory strcuture or create messages dir inside messages dir or fix path on the config generated.