dev-master
9999999-devYii2 translation GUI for better management of translation messages while developing.
GNU General Public License v3.0
The Requires
by Ahmad Azizi
yii2 translate gui message-translation
Wallogit.com
2017 © Pedro Peláez
Yii2 translation GUI for better management of translation messages while developing.
Yii2 translation GUI for better management on translation messages while developing., (*1)
The preferred way to install this extension is through composer., (*2)
php composer.phar require amdz/yii2-translation-gui "dev-master"
Or, you may add, (*3)
"amdz/yii2-translation-gui": "dev-master"
to the require section of your composer.json file and execute php composer.phar update., (*4)
Once the extension is installed, simply add the extention to your 'module' section of your application configuration file. Do not forget to add required configuration params as follow:, (*5)
return [
'modules' => [
'translator' => [
'class' => 'amdz\yii2Translator\Module',
'languages' => [
'en-US' => 'English',
'fa-IR' => 'Farsi',
//'de-GE' => 'German',
],
'categories' => [
'app' => 'Application',
],
'defaultLanguage' => 'en-US',
'defaultCategory' => 'app',
'messagePath' => '@app/messages', //optional
],
]
...
],
];
To create the translation database table, execute the following migration:, (*6)
yii migrate --migrationPath=@amdz/yii2Translator/migrations
This extension provides a command interface to import existing Yii2 standard translation files into database(if any). Run the following command to import files:, (*7)
>>> yii translator/import/standard @app/path/to/message/directory
or simply run:, (*8)
>>> yii translator
for more instructions., (*9)
If your app command configuration file is separated, make sure that you've already added the required configuration params to your command configuration file., (*10)
Yii2 translation GUI for better management of translation messages while developing.
GNU General Public License v3.0
yii2 translate gui message-translation