elmoulaoui/web-translator-bundle

manage translation files with web pages

dev-master 2013-09-02 12:15 UTC

This package is not auto-updated.

Last update: 2024-09-23 15:15:34 UTC


README

manage translation files with web pages

Installation

  1. add bundle to composer.json

"require": { "elmoulaoui/web-translator-bundle": "dev-master" }

  1. php composer.phar update

  2. app/AppKernel.php, enable the bundle :

$bundles = array( .... new Web\TranslatorBundle\WebTranslatorBundle(), .... );

  1. add bundle configuration in app/config/parameters.yml

    translator_bundles:e acme-demo-bundle: "%kernel.root_dir%/../src/Acme/DemoBundle" translator_main_language: fr translator_target_languages: [en] translator_target_domains: [messages, validators, AcmeDemoBundle] translator_format: xliff

  2. import bundle routing in app/config/routing.yml

web_translator: resource: "@WebTranslatorBundle/Resources/config/routing.yml" prefix: /translator