Translation Checker Bundle
This bundle provides you a few CLI commands to check your translations.
Installation
Installation is a quick (I promise!) 2 step process:
- Download IncenteevTranslationCheckerBundle
- Enable the Bundle
Step 1: Install IncenteevTranslationCheckerBundle with composer
Run the following composer require command:
$ composer require incenteev/translation-checker-bundle:dev-master
Step 2: Enable the bundle
Finally, enable the bundle in the kernel:
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Incenteev\TranslationCheckerBundle\IncenteevTranslationCheckerBundle(),
);
}
Warning: This bundle requires that the translator is enabled in FrameworkBundle.
Step 3 (optional): Configure the bundle
To use the commands comparing the catalogue to the extracted translations, you need to configure the bundles in which the templates should be parsed for translations:
# app/config/config.yml
incenteev_translation_checker:
extraction:
bundles:
- TwigBundle
- AcmeDemoBundle
Usage
The bundle provides a few CLI commands. To list them all, run:
$ php app/console list incenteev:translation