aecf / translator-tool-bundle
A graphical user interface to manage project translations
Installs: 3 525
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- sensio/framework-extra-bundle: ~2.7|~2.8|~3.0
- symfony/config: ~2.7|~2.8|~3.0
- symfony/console: ~2.7|~2.8|~3.0
- symfony/framework-bundle: ~2.7|~2.8|~3.0
- symfony/http-foundation: ~2.7|~2.8|~3.0
- symfony/http-kernel: ~2.7|~2.8|~3.0
- symfony/translation: ~2.7|~2.8|~3.0
Requires (Dev)
- mockery/mockery: ^0.9.4
- phpunit/phpunit: ^5.3
This package is not auto-updated.
Last update: 2019-10-10 08:25:34 UTC
README
The TranslatorToolBundle adds a symfony profiler tool for create and edit your translation. It supports multiple languages and formats. If you have multiple formats, he will write in several files at once. You can live edit your translations (if you set the live_edit at true in config_dev.yml). A gray border appear around your words with a trans filter. Just click on it !
Features:
- Automatically adds your keys followed by "trans" twig filter in the translation file (create if it does not exist).
- Adds an interface to add or edit translations, just click on your word in the "Message Preview" column (if you aren't in live edit), type your word and click outside the field.
- Only the language of your current environment will be impacted.
Note: This bundle does not provide an translation system but make it easier
Installation
You can install TranslatorToolBundle through Composer:
$ composer require aecf/translator-tool-bundle
Enable translation:
In your app/config/config.yml, just uncomment:
framework:
translator: { fallbacks: ["%locale%"] }
Enable the bundle:
app/AppKernel.php:
if (in_array($this->getEnvironment(), array('dev', 'test'))) { ... $bundles[] = new AECF\TranslatorToolBundle\TranslatorToolBundle(); }
routing_dev.yml:
translator_tool: resource: "@TranslatorToolBundle/Controller/" type: annotation prefix: /translator_tool/
config_dev.yml:
translator_tool: enabled_locales: ['fr', 'en'] # optional, if not specified default value is parameter "locale" live_edit: true auto_create_missing: enabled: true formats: ['yml'] # Supported formats : csv, ini, json, mo, php, po, yml, xml
Result
License
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
About
TranslatorToolBundle is a AECF initiative.
See also the list of contributors.
Reporting an issue or a feature request
Issues and feature requests are tracked in the Github issue tracker.
When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.