2017 © Pedro Peláez
 

symfony-bundle dont-translate-bundle

A bundle to disable the translation of your Symfony2 applications and only display the translation keys

image

antfroger/dont-translate-bundle

A bundle to disable the translation of your Symfony2 applications and only display the translation keys

  • Thursday, October 27, 2016
  • by antfroger
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

AFDontTranslateBundle

A bundle to disable the translation of your Symfony2 applications and only display the translation keys, (*1)

Latest Stable Version SensioLabsInsight Scrutinizer Code Quality Code Coverage Build Status, (*2)

Installation

1. Add the required package using composer., (*3)

composer require antfroger/dont-translate-bundle

2.Add the bundle to your AppKernel., (*4)

<?php
// in %kernel.root_dir%/AppKernel.php
$bundles[] = new Af\Bundle\DontTranslateBundle\AfDontTranslateBundle();

3. Optionally, define the configuration, (*5)

  • 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
# app/config/config.ym
af_dont_translate:
    mode: "get"
    param_name: "untrans"
    roles: ["ROLE_ADMIN", "ROLE_TRANSLATOR"]

Usage

To display your application without translation, add the GET parameter param_name to the URL, (*6)

http://my-application.io/?untrans

or add a cookie param_name to only see the translation keys in your application, (*7)

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., (*8)

The Versions

27/10 2016

dev-master

9999999-dev https://github.com/antfroger/AfDontTranslateBundle

A bundle to disable the translation of your Symfony2 applications and only display the translation keys

  Sources   Download

MIT

The Requires

 

by Antoine Froger

27/10 2016

v1.3.1

1.3.1.0 https://github.com/antfroger/AfDontTranslateBundle

A bundle to disable the translation of your Symfony2 applications and only display the translation keys

  Sources   Download

MIT

The Requires

 

by Antoine Froger

26/12 2014

v1.3.0

1.3.0.0 https://github.com/antfroger/AfDontTranslateBundle

A bundle to disable the translation of your Symfony2 applications and only display the translation keys

  Sources   Download

MIT

The Requires

 

by Antoine Froger

26/12 2014

v1.2.1

1.2.1.0 https://github.com/antfroger/AfDontTranslateBundle

A bundle to disable the translation of your Symfony2 applications and only display the translation keys

  Sources   Download

MIT

The Requires

 

by Antoine Froger

21/10 2014

v1.2.0

1.2.0.0 https://github.com/antfroger/AfDontTranslateBundle

A bundle to translate or don't translate a Symfony2 application

  Sources   Download

MIT

The Requires

 

by Antoine Froger

21/06 2014

v1.1.0

1.1.0.0 https://github.com/antfroger/AfDontTranslateBundle

A bundle to translate or don't translate a Symfony2 application

  Sources   Download

MIT

The Requires

 

by Antoine Froger

20/05 2014

v1.0.0

1.0.0.0 https://github.com/antfroger/AfDontTranslateBundle

A bundle to translate or don't translate a Symfony2 application

  Sources   Download

MIT

The Requires

 

by Antoine Froger