Download the PHP package modeltech/yml-gettext-extractor without Composer
On this page you can find all versions of the php package modeltech/yml-gettext-extractor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download modeltech/yml-gettext-extractor
More information about modeltech/yml-gettext-extractor
Files in modeltech/yml-gettext-extractor
Package yml-gettext-extractor
Short Description The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YML config.
License
Informations about the package yml-gettext-extractor
YAML Gettext Extractor
The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YAML file.
Installation
Manual
Local
Download the yml-gettext-extractor.phar
file and store it somewhere on your computer.
Global
You can run these commands to easily access yml-gettext-extractor
from anywhere on
your system:
Then, just run yml-gettext-extractor
.
Composer
Local
Global
Make sure you have ~/.composer/vendor/bin
in your PATH
and
you're good to go:
Don't forget to add this line in your .bashrc
file if you want to keep this change after reboot.
Setup
By default, Poedit does not have the ability to parse YML files. This can be resolved by adding an additional parser (Edit > Preferences > Parsers) with the following options:
- Language:
YAML
- List of extensions:
*.yml
- Invocation:
- Parser command:
<project>/vendor/bin/yml-gettext-extractor --out %o --keys %K --files %F
(replace<project>
with absolute path to your project) - An item in keyword list:
-k%k
- An item in input file list:
%f
- Parser command:
Now you can update your catalog and Poedit will synchronize it with your yml config files.
All versions of yml-gettext-extractor with dependencies
symfony/routing Version ~3.0
symfony/filesystem Version ~3.0
symfony/translation Version ~3.0
symfony/form Version ~3.0
symfony/asset Version ~2.8|~3.0
symfony/yaml Version ^3.3