stivehu/translate2xml

Convert translate files to xml.

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

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

This package is not auto-updated.

Last update: 2024-05-29 22:44:15 UTC


README

Convert translate files to xml.

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"stivehu/yii2-translate2xml": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by : add config/console.php

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

usage:

/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