2017 © Pedro Peláez
 

symfony-bundle translator-checker-bundle

Help you to check all your twig strings was translated - and all your translation keys exists

image

mdm/translator-checker-bundle

Help you to check all your twig strings was translated - and all your translation keys exists

  • Friday, January 16, 2015
  • by ltouati
  • Repository
  • 8 Watchers
  • 14 Stars
  • 4,487 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

MDMTranslatorCheckerBundle

Is a tool to help you fix your translations files., (*1)

Versions

Please use 2.1 branch for Symfony 2.1.* applications :, (*2)

composer require mdm/translator-checker-bundle 2.1@dev

Use master branch for Symfony 2.2.* applications :, (*3)

composer require mdm/translator-checker-bundle dev-master

And use 2.6 branch for Symfony 2.6.* applications :, (*4)

composer require mdm/translator-checker-bundle 2.6.*

Usages

Add the bundle to your AppKernel

...
new MDM\TranslatorCheckerBundle\MDMTranslatorCheckerBundle(),
...
```

### Detect duplicate of translation values

Sometimes your files can contains to keys with same values, used the next command to detect them :

php app/console translation:check-duplicates [culture], (*5)


### Detect missing tanslations You can sometime forget to add `{% trans %}` token or `{{ "thing"|trans }}` filter. Can also make typos in your translations keys.

php app/console translation:check-missings [culture], (*6)


If you want to output in a Junit file use :

php app/console translation:check-missings en -n --junit myjunit.xml, (*7)


Or for multiple cultures at the same time :

php app/console translation:check-missings fr,en -n --junit myjunit.xml, (*8)


### Detect unused translation keys If you want to detect keys not used in your twig :

php app/console translation:check-missings [culture] --show-unused, (*9)


Of course can also be outputed in junit :

php app/console translation:check-missings fr,en -n --junit myjunit.xml --show-unused ````, (*10)

The Versions

16/01 2015

dev-master

9999999-dev

Help you to check all your twig strings was translated - and all your translation keys exists

  Sources   Download

MIT

The Requires

 

by Cedric LOMBARDOT

symfony2 bundle translator

16/01 2015

2.6.x-dev

2.6.9999999.9999999-dev

Help you to check all your twig strings was translated - and all your translation keys exists

  Sources   Download

MIT

The Requires

 

by Cedric LOMBARDOT

symfony2 bundle translator

16/01 2015

2.6

2.6.0.0

Help you to check all your twig strings was translated - and all your translation keys exists

  Sources   Download

MIT

The Requires

 

by Cedric LOMBARDOT

symfony2 bundle translator

07/08 2013

2.3.x-dev

2.3.9999999.9999999-dev

Help you to check all your twig strings was translated - and all your translation keys exists

  Sources   Download

MIT

The Requires

 

by Cedric LOMBARDOT

symfony2 bundle translator

07/08 2013

2.3.0

2.3.0.0

Help you to check all your twig strings was translated - and all your translation keys exists

  Sources   Download

MIT

The Requires

 

by Cedric LOMBARDOT

symfony2 bundle translator

02/04 2013

2.1.x-dev

2.1.9999999.9999999-dev

Help you to check all your twig strings was translated - and all your translation keys exists

  Sources   Download

MIT

The Requires

 

by Cedric LOMBARDOT

symfony2 bundle translator

02/04 2013

2.1.0

2.1.0.0

Help you to check all your twig strings was translated - and all your translation keys exists

  Sources   Download

MIT

The Requires

 

by Cedric LOMBARDOT

symfony2 bundle translator