Download the PHP package weprovide/symfony-translation-bundle without Composer
On this page you can find all versions of the php package weprovide/symfony-translation-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download weprovide/symfony-translation-bundle
More information about weprovide/symfony-translation-bundle
Files in weprovide/symfony-translation-bundle
Package symfony-translation-bundle
Short Description The We Provide Translation Bundle for Symfony incorporates the JMS/TranslationBundle into the Sonata/AdminBundle.
License MIT
Informations about the package symfony-translation-bundle
We Provide Translation Bundle
The We Provide Translation Bundle for Symfony incorporates the JMS/TranslationBundle into the Sonata/AdminBundle. Both bundles are awesome but do not work together out of the box. Using this bundle you'll be able to extract and manage your translations through the easy-to-use admin.
Dependencies
This bundle is developed with a Symfony Standard Edition on PHP 7.1 using We Provide's version of valet. Obviously it has dependencies to other projects and/or bundles. Below a list of dependencies, please use the installation guides of these bundles first.
- Symfony Standard Edition 3.3
- Sonata Admin Bundle 3.18 (with SonataDoctrineORMAdminBundle)
- JMS Translation Bundle 1.3
- Ivory CK Editor ^4.0
Installation
Install this bundle into your project using Composer.
Enable the bundle by inserting it in your Symfony's AppKernel.php
.
Import the global config of this bundle in your project's config.yml
.
Configure your locales and translation files folder in your config.yml
.
Commands
In production or other non-debug environments the translations stored in YML are only updated when the cache is cleared. This bundle provides a command to clear cache when a translation has been changed. It's safe to execute or set this command as cron.
You can schedule an extraction of translations from the admin interface. This will not extract the translations directly because this can take a long time. Instead set the command below as cron to do actually execute the scheduled extraction. This will also clear the cache after extraction.
You can use the command below to extract the translations.
License
This bundle has been released under the MIT license and open for improvements, please share your thoughts which will be much appreciated.
Authors
- Mischa Braam (@mischabraam)