kjda/translation-bundle

Manage your symfony2 translations easily

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

dev-master 2014-01-20 22:59 UTC

This package is not auto-updated.

Last update: 2024-10-08 02:44:47 UTC


README

A symfony2 translation bundle

Goals

  • Translation management
  • Easier Testing

Warning

not complete! Early stage development

What can it be used for?

right now you can use this bundle for easier testing. since it highjacks the default translator and always returns your translation keys. which means: if you update your translations, your tests will still pass.

What else can it do?

When enabled it will catch all your translation keys and store them in the database. so that you can translate them using a web interface, you can have a look at it: app_dev.php/kjda_translation/

What is missing?

exporting translations to resource files.
importing resource files to the database.
a better domain management & domain detection while capturing keys.

Installation & Configuration

Add the following to your composer.json

   "require": { 
         "kjda/translation-bundle": "dev-master" 
   }

then

php composer.phar update kjda/translation-bundle

Register bundle in app/AppKernel.php:

$bundles = array(
      .....,
      new Kjda\TranslationBundle\KjdaTranslationBundle(),
);

app/config_dev.yml:

assetic:   
    bundles:        [ KjdaTranslationBundle, AcyouSomeOtherBundle ]  

app/routing.yml:

kjda_translation:
    resource: "@KjdaTranslationBundle/Resources/config/routing.yml"

translation interface: /app_dev.php/kjda_translation