stof / translation-checker-bundle

CLI tools to check translations in a Symfony2 project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Translation Checker Bundle

This bundle provides you a few CLI commands to check your translations.

Build Status Latest Stable Version Latest Unstable Version

Installation

Installation is a quick (I promise!) 2 step process:

  1. Download IncenteevTranslationCheckerBundle
  2. 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

About

CLI tools to check translations in a Symfony2 project

License:MIT License


Languages

Language:PHP 100.0%