Download the PHP package antfroger/dont-translate-bundle without Composer
On this page you can find all versions of the php package antfroger/dont-translate-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download antfroger/dont-translate-bundle
More information about antfroger/dont-translate-bundle
Files in antfroger/dont-translate-bundle
Package dont-translate-bundle
Short Description A bundle to disable the translation of your Symfony2 applications and only display the translation keys
License MIT
Homepage https://github.com/antfroger/AfDontTranslateBundle
Informations about the package dont-translate-bundle
AFDontTranslateBundle
A bundle to disable the translation of your Symfony2 applications and only display the translation keys
Installation
1. Add the required package using composer.
2.Add the bundle to your AppKernel.
3. Optionally, define the configuration
- mode: the mode you want to use to enable the feature (get, cookie)
- param_name: the name of the parameter that you use to enable the feature
- roles: the user should at least have one of these roles to be able to enable the feature if no role is defined the user doesn't need to be logged in to be able to enable the feature
Usage
To display your application without translation, add the GET parameter param_name
to the URL
or add a cookie param_name
to only see the translation keys in your application
License
This library is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.