2017 © Pedro Peláez
 

yii2-extension yii2-transconv

A program to convert php translation files to po translation files.

image

mmelcor/yii2-transconv

A program to convert php translation files to po translation files.

  • Tuesday, February 16, 2016
  • by mmelcor
  • Repository
  • 2 Watchers
  • 2 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2 PHP to PO translation file converter

A program to convert php translation files to po translation files., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist mmelcor/yii2-transconv "*"

or add, (*4)

"mmelcor/yii2-transconv": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by adding the following to your console\config\main-local.php file (advanced) or config\console.php (basic) :, (*6)

return [
    'bootstrap' => [ '[Other boostrap items]', 'transconv'],
    'modules' => [
        '[other modules]' => '[other module paths]',
        'transconv' => 'mmelcor\yii2transconv\Module',
    ],
];

Then you can call, (*7)

php yii transconv path/to/messages/

Before or after the conversion make sure that your i18n.php and i18n configuration have been set to use po files according to the Yii2 Internationalization setup. For more info see Yii2 Documentation., (*8)

The Versions

16/02 2016

dev-master

9999999-dev

A program to convert php translation files to po translation files.

  Sources   Download

MIT

The Requires

 

by Jeremiah Payne

extension php yii2 translation convert po

16/02 2016

0.1.0

0.1.0.0

A program to convert php translation files to po translation files.

  Sources   Download

MIT

The Requires

 

by Jeremiah Payne

extension php yii2 translation convert po