php - Yii2 Generating translation messages -
in yii 1.x generated translation messages command ./framework/yiic message protected/messages/config.php
how can accomplish same yii2?
just run using yiic file in root directory of project (where composer.json is). here help yiic. if have specific problem allow me know.
./yii help message
description
extracts messages translated source files.
the extracted messages can saved next depending on format setting in config file:
php message source files. ".po" files. database.usage: 1. create configuration file using 'message/config' command: yii message/config /path/to/myapp/messages/config.php 2. edit created config file, adjusting web application needs. 3. run 'message/extract' command, using created config: yii message /path/to/myapp/messages/config.php
sub-commands
message/config: creates configuration file "extract" command. message/extract (default): extracts messages translated source c...to see detailed info individual sub-commands, enter:
yii help
php internationalization yii2
No comments:
Post a Comment