2017 © Pedro Peláez
 

library translation-bundle

a Symfony Bundle to update translation

image

rvalin/translation-bundle

a Symfony Bundle to update translation

  • Monday, June 25, 2018
  • by rValin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 40 % Grown

The README.md

RValinTranslationBundle

RValinTranslationBundle provide an easy way to update translation in symfony (2 -> 4).
It allow user to update translation directly from the page., (*1)

Warning

This bundle update your translations files.
For this reason, I recommend to use it only in dev or to use lexikTranslationBundle., (*2)

Installation

1) Use Composer to download the library, (*3)

composer require rvalin/translation-bundle

2) Then add the RValinTranslationBundle to your application kernel:, (*4)

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new RValin\MigrationBundle\RValinTranslationBundle(),
        // ...
    );
}

3) Then update your config (optional), (*5)

Default config:, (*6)

r_valin_translation:
    dumpers_config: []
    updaters: ['file']
    role: 'ROLE_UPDATE_TRANSLATION'
    allowed_domains: []
    allowed_bundles: []

This config will use the default config of Symfony to generate translations files.
If you want to customize the dumb set the config you want with dumpers_config., (*7)

Exemple for yml files., (*8)

r_valin_translation:
    dumpers_config:
        yml:
            as_tree: true

LexikTranslationBundle

If you use lexikTranslationBundle you just need to add this service:, (*9)

rvalin.translation.updater.lexik_translation:
    class: RValin\TranslationBundle\Updater\LexikTranslationUpdater
    arguments: ['@lexik_translation.translation_storage', '@lexik_translation.trans_unit.manager']
    tags:
        - { name: rvalin.translation.updater, alias: 'lexik_translation' }

And change your config to use this updater:, (*10)

r_valin_translation:
    updaters: ['lexik_translation'] 

You can use both file and lexik_translation updater if you want to., (*11)

The Versions

25/06 2018

dev-master

9999999-dev https://github.com/rValin/TranslationBundle

a Symfony Bundle to update translation

  Sources   Download

MIT

The Requires

 

symfony translation edit

25/06 2018

v0.4

0.4.0.0 https://github.com/rValin/TranslationBundle

a Symfony Bundle to update translation

  Sources   Download

MIT

The Requires

 

symfony translation edit

15/04 2018

v0.3

0.3.0.0 https://github.com/rValin/TranslationBundle

a Symfony Bundle to update translation

  Sources   Download

MIT

The Requires

 

symfony translation edit

14/04 2018

v0.2

0.2.0.0 https://github.com/rValin/TranslationBundle

a Symfony Bundle to update translation

  Sources   Download

MIT

The Requires

 

symfony translation edit

14/04 2018

v0.1

0.1.0.0 https://github.com/rValin/TranslationBundle

a Symfony Bundle to update translation

  Sources   Download

MIT

The Requires

 

symfony translation edit