dev-master
9999999-devZend Framework 2 Module for edition and compiling gettext files
BSD-3-Clause
The Requires
- php >=5.3.3
- zendframework/zendframework 2.*@stable
by Eugene Galenko
zf2 zend framework module internationalization gettext mo po
Zend Framework 2 Module for edition and compiling gettext files
Potool is a tool for web-based edition Gettext translation files. It is easy to integrate into ZF2 projects. Translator would be able to translate, edit phrases online and compile MO files for the application of results. Potool is designed using Bootstrap css framework., (*1)
You can work here with all internationalization files of a certain module.
If you have added some new translation keys into your module, you have to import the new translation keys into the PO files by pressing the "Upgrade" button. There is no need to add translation keys manually. Just put the translate('needed_key') into your View or Controller code and it will be imported., (*2)
When you translate new keys or edit translated ones, you have to recompile MO files by pressing the "Compile" button. After that, a new translation will be available in your application., (*3)
When you press the "Show" button you get to "Languages interface":
, (*4)
There you can upgrade keys from your project and recompile them. Also, you can add a new language file and a new message key for all languages., (*5)
If you have to translate any of the PO files, you have to press the "Translate" button for a specific language. After that, you can see the "Translation interface":, (*6)
Here, you can edit translated phrases. Also, if you have any doubts, you can mark the translated phrase as "Fuzzy". Phrases marked as fuzzy do not appear in your application., (*7)
Add the following line into your "require" section of composer.json:, (*8)
"eugenzor/potool": "dev-master"
run:, (*9)
php composer.phar update
Activate the module in your 'application.config.php' by adding 'Potool' into the 'modules' section., (*10)
Zend Framework 2 Module for edition and compiling gettext files
BSD-3-Clause
zf2 zend framework module internationalization gettext mo po