Download the PHP package davidrojo/sf-translations-helper without Composer
On this page you can find all versions of the php package davidrojo/sf-translations-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davidrojo/sf-translations-helper
More information about davidrojo/sf-translations-helper
Files in davidrojo/sf-translations-helper
Package sf-translations-helper
Short Description Tranlsations files helper for symfony
License MIT
Homepage https://github.com/davidrojo/symfony-translations-helper
Informations about the package sf-translations-helper
symfony-translations-helper
Simple commands to manage translations in Symfony.
This bundle allows you to write missing translations from a yml file to another requesting the missing translations and storing them in the output file.
For each non found translation it will request the translation showing the field id and the original text to translate, making it very easy to update your translation files when you have added fields to them
** It currently only suports yml translations files
Contents
- Installation
- Usage
- Example
- Contributions
- Donations
Installation
Just require the bundle with composer:
composer.phar require davidrojo/sf-translations-helper
And then add it to app/AppKernel.php:
Usage
Execute the command
php bin/console translations:helper [from_language] [to_language] [BundleName|File] [allowEmpty]
Arguments:
from Origin language file (example: en)
to Destination language file (example: fr)
file Bundle name or the full path from current folder to the input file
addEmpty Optional (true/false), Add empty values to the destination
file if no translation is added (default: false)
Options:
--no-backup If not present a .backup file will be generated if output file exists
Example
Contributions
Just open an issue or send a pull request and if it fits it will be integrated.
Donations
If you liked this bundle and saved you a little of time, you can:
- buy me a coffe
- buy me a dinner
- buy me a good dinner
- buy me a phpstorm license
- pay my rent
- buy me a car
- buy me a super car
;)