Yo-An Lin (林佑安) > App-I18N-0.034 > App::I18N::Command::Gen

Download:
App-I18N-0.034.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source  

Generate inline i18n dictionary dictionary:

For Perl:

    # This is auto-generated by App::I18N
    # ------------------------------

    package {{app}}::dict::en;
    our $DICT = {
        "msgid" => "msgstr",
        ...
    };

    package {{app}}::dict::zh_tw;
    our $DICT = {
        "msgid" => "msgstr",
        ....
    };
    ...

For PHP:

    en.php:
    <?php
    $DICT = array( 
        "msgid" => "msgstr"
        ....
    );
    ?>
    ....

For JSON

    en.json:
    {
        "msgid..." : "msgstr"
        ...
    };

    zh_tw.json:
    {
        ....
    };

Static JS

    var dict;
    dict["en"] = { ...  };
    dict["zh_tw"] = { ... };

NAME ^

App::I18N::Command::Gen - Export dictionary to other formats.

USAGE ^

    po gen [TYPE] [OPTIONS]

TYPE:

Can be json, js, pm.

OPTIONS ^

    --podir=[path]
            Po files directory

    --locale
            Use locale directory structure.

    --output=[path]
            Path for output.
syntax highlighting: