2017 © Pedro Peláez
 

zf2-module potool

Zend Framework 2 Module for edition and compiling gettext files

image

eugenzor/potool

Zend Framework 2 Module for edition and compiling gettext files

  • Wednesday, November 15, 2017
  • by eugenzor
  • Repository
  • 1 Watchers
  • 10 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Gettext editor module for Zend Framework

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)

Overview

You can work here with all internationalization files of a certain module. Languages interface 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": 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)

Translation interface 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)

Installation

  • 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)

  • Open the user interface by oppening http[s]://{application_root}/potool in a browser

The Versions

15/11 2017

dev-master

9999999-dev

Zend Framework 2 Module for edition and compiling gettext files

  Sources   Download

BSD-3-Clause

The Requires

 

by Eugene Galenko

zf2 zend framework module internationalization gettext mo po