Download the PHP package g4/translate without Composer
On this page you can find all versions of the php package g4/translate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package translate
Translate
- Configuration of the gettext extension
- Utlity tool to generate .mo files
- Utility tool for extracting template strings
Install
Using Composer and Packagist
Resources
- Twig The i18n Extension http://twig.sensiolabs.org/doc/extensions/i18n.html
- PHP gettext extension http://fr.php.net/manual/en/function.gettext.php
Requirements
- "twig/twig" https://packagist.org/packages/twig/twig
- "twig/extensions" https://packagist.org/packages/twig/extensions
Usage
Set locale early in the program before rendering any internationalized template.
Command line interface
Convert .po files to .mo
where --path is path to your locale folder
Extract template strings
where:
- -t is path to folder that contains templates
- -w is path to temp folder
- -g is path to folder where myDomain.po file with strings will be generated
- -d domain name
Development
Install dependencies
$ make install
Run tests
$ make test
License
(The MIT License) see LICENSE file for details...
All versions of translate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
twig/twig Version 3.*
jblond/twig-trans Version ^1.1
g4/commando Version *
g4/constants Version *
twig/twig Version 3.*
jblond/twig-trans Version ^1.1
g4/commando Version *
g4/constants Version *
The package g4/translate contains the following files
Loading the files please wait ....