stivehu/translate2xml

将翻译文件转换为XML。

安装: 10

依赖项: 0

建议者: 0

安全: 0

星级: 0

关注者: 1

分支: 0

开放问题: 0

类型:yii2-extension

dev-main 2021-06-29 09:23 UTC

This package is not auto-updated.

Last update: 2024-09-18 23:57:52 UTC


README

将翻译文件转换为XML。

安装

安装此扩展的首选方式是通过 composer

运行以下命令之一:

php composer.phar require --prefer-dist stivehu/yii2-translate2xml "*"

或者在您的 composer.json 文件的 require 部分添加:

"stivehu/yii2-translate2xml": "*"

to the require section of your composer.json file.

使用方法

扩展安装完成后,只需在您的代码中添加配置文件 config/console.php 即可使用。

   [
    'modules' => [
        'translate2xml'=>[
            'class'=>\stivehu\translate2xml\commands\Translate2xmlController::class,
        ],
      ],
    ],

用法

/yii translate2xml/convert2xml messages/hu_HU/messages.po hu-HU po output.xml
/yii translate2xml/convert2xml messages/hu_HU/messages.php hu-HU php output.xml