elmoulaoui / web-translator-bundle
manage translation files with web pages
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-23 15:15:34 UTC
README
manage translation files with web pages
Installation
- add bundle to composer.json
"require": { "elmoulaoui/web-translator-bundle": "dev-master" }
-
php composer.phar update
-
app/AppKernel.php, enable the bundle :
$bundles = array( .... new Web\TranslatorBundle\WebTranslatorBundle(), .... );
-
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
-
import bundle routing in app/config/routing.yml
web_translator: resource: "@WebTranslatorBundle/Resources/config/routing.yml" prefix: /translator