Download the PHP package jelix/locales-tools without Composer
On this page you can find all versions of the php package jelix/locales-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jelix/locales-tools
More information about jelix/locales-tools
Files in jelix/locales-tools
Package locales-tools
Short Description Command line tools to manage or convert locales of a Jelix application.
License MIT
Informations about the package locales-tools
Command line tools to manage locales of a Jelix application.
- convertion from properties format to PO or POT format
- convertion from PO format to properties format
installation
You can install it from Composer. In your project:
configuration
In your projects that contains modules for Jelix, with some locales, you should
put a .jelixlocales.ini file.
Here is its content:
translationLocation should be a path, relative to the path of .jelixlocales.ini,
or an absolute path (not recommended). It can contain keywords :locale and
:module, they will be replaced respectively by the locale and the module name.
If you want a path relative to the application path, prepend the path with @app:.
Example:
Most of time, you may want to store translations in locations recognized by Jelix. You can use some specific keywords that will be replace by the real path:
@module, equivalent to<module path>/locales/:locale/@app-overloads, equivalent to<application path>/app/overloads/:module/locales/:locale/@app-locales, equivalent to<application path>/locales/:locale/:module/@var-overloads, equivalent to<application path>/var/overloads/:module/locales/:locale/@var-locales, equivalent to<application path>/var/locales/:locale/:module/
commands
Run vendor/bin/jelixlocales to have helo and the list of possible commands.
All versions of locales-tools with dependencies
symfony/console Version ^5.4.0
jelix/properties-file Version ^1.2.3
gettext/gettext Version ^5.7.3
jelix/file-utilities Version ^1.8.6