Locale Bundle for symfony2
PHP HTML
Latest commit 62a75ea Jun 29, 2016 @jmeyo jmeyo committed with dbu Implement both getName and getBlockPrefix for symfony 2.8 based proje…
…cts (#189)

keep getName implemented while we still support symfony 2.8

As explained in symfony upgrade document: https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md
Failed to load latest commit information.
Controller keep query string when redirecting Jan 14, 2015
Cookie Added a FilterLocaleSwitchEvent to handle the persisting of locales i… Oct 26, 2012
DependencyInjection removed unused use statement in RemoveSessionPass Sep 17, 2015
Event LocaleUpdateListener now gets the Request instance from FilterLocaleS… Dec 7, 2012
EventListener removed unused use statement in LocaleUpdateListener Sep 17, 2015
Form/Extension Implement both getName and getBlockPrefix for symfony 2.8 based proje… Jun 29, 2016
LocaleGuesser fixed RouterLocaleGuesser return value when locale is not allowed Apr 8, 2015
LocaleInformation bug #180 more refactoring Dec 4, 2015
Matcher bug #180 started refactoring the LocaleChoiceList Dec 4, 2015
Resources bug #180 more refactoring Dec 4, 2015
Session Ignore phpunit.xml and coverage dir report/ May 5, 2013
Switcher Update TargetInformationBuilder.php Jul 26, 2015
Templating/Helper make it possible to override the template inside a twig call Dec 21, 2012
Tests Fixed tests Feb 15, 2016
Twig/Extension Updated TwigExtension to prevent deprecated messages Sep 11, 2015
Validator bug #176 dropped support for legacy validation api Dec 4, 2015
.gitignore Ignore phpunit.xml and coverage dir report/ May 5, 2013
.travis.yml Merge pull request #185 from WouterJ/patch-2 Jun 1, 2016
CHANGELOG-2_1.markdown added cookieLocaleGuesser Aug 16, 2012
LocaleBundleEvents.php Added a FilterLocaleSwitchEvent to handle the persisting of locales i… Oct 26, 2012
LuneticsLocaleBundle.php Allow to disable session service Jan 8, 2014
README.md update doc for 2.3 and improve setup instructions Jan 13, 2015
composer.json Increase dev version Jun 10, 2016
phing.xml Updated Phing Buildfile and composer.json Oct 17, 2012
phpunit.xml.dist Update composer for symfony 2.2 / dev-master Oct 19, 2012

README.md

LuneticsLocaleBundle

This bundle allows you to guess the Locale from different parameters in your Symfony2 applications.

Build Status

Background

The locale can be guessed from different parameters in your applications :

  • In the Query parameter
  • In the Route parameters
  • In the Browser preferences
  • In a Cookie or the Session if the locale has already been identified
  • Based on the Subdomain hostname

Documentation

Read the Documentation for master

Read the Documentation for 2.2

Read the Documentation for 2.1

License

This bundle is released under the MIT License

Authors

Matthias Breddin : @lunetics
Christophe Willemsen : @kwattro