2017 © Pedro Peláez
 

symfony-bundle languagechooser-bundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

image

kunstmaan/languagechooser-bundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  • Sunday, October 16, 2016
  • by Kunstmaan
  • Repository
  • 44 Watchers
  • 6 Stars
  • 3,436 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 34 Versions
  • 0 % Grown

The README.md

KunstmaanLanguageChooserBundle

Build Status Total Downloads Latest Stable Version Analytics, (*1)

Handles autodetection of the language of the end user or shows a splash page with a language choice., (*2)

Installation instructions

Assuming you have installed composer.phar or composer binary:, (*3)

``` bash $ composer require kunstmaan/languagechooser-bundle dev-master, (*4)


Add the KunstmaanLanguageChooserBundle and the LuneticsLocaleBundle to your AppKernel.php file: ``` php new Kunstmaan\LanguageChooserBundle\KunstmaanLanguageChooserBundle(), new Lunetics\LocaleBundle\LuneticsLocaleBundle(),

Remark: The KunstmaanLanguageChooserBundle should be loaded BEFORE the LuneticsLocaleBundle, (*5)

Add the KunstmaanLanguageChooserBundle to your routing.yml:, (*6)

``` yaml, (*7)

KunstmaanLanguageChooserBundle

_languagechooser: resource: ., (*8)


Overwrite the KunstmaanLanguageChooserBundle config to your needs in config.yml: ``` php kunstmaan_language_chooser: autodetectlanguage: false showlanguagechooser: true languagechoosertemplate: CompanyYourBundle:Default:language-chooser.html.twig languagechooserlocales: [en, nl, fr]

Usage

When the user arrives on the root page of your website (eg. http://domain.com/) he: - is automatically redirect to his language of choice (eg. http://domain.com/en) when the autodetectlanguage is set to true - sees a splash page where he can select his language manually when the showlanguagechooser is set to true, (*9)

The template path of the splash page can we set via the languagechoosertemplate configuration parameter., (*10)

In all your Twig templates, there is a global variable available with an array of the available languages: languagechooser_languages. This can be usefull on your custom splash page, or when you want to show the language choice on other pages., (*11)

<ul>
    {% for lang in languagechooser_languages %}
        <li>{{ lang }}</li>
    {% endfor %}
</ul>

The Versions

16/10 2016

dev-master

9999999-dev https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

15/02 2016

dev-revert-1243-hotfix/generator-translations

dev-revert-1243-hotfix/generator-translations https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

15/02 2016

dev-sf3

dev-sf3 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

15/02 2016

3.5.1

3.5.1.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

15/02 2016

4.0.0-RC1

4.0.0.0-RC1 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

10/02 2016

3.5.x-dev

3.5.9999999.9999999-dev https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

10/02 2016

3.5.0

3.5.0.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

20/01 2016

dev-fix-sensiolabs-insight

dev-fix-sensiolabs-insight https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

05/10 2015

3.4.x-dev

3.4.9999999.9999999-dev https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

05/10 2015

3.4.0

3.4.0.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

05/10 2015

3.4.1

3.4.1.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

05/10 2015

3.4.2

3.4.2.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.2.x-dev

3.2.9999999.9999999-dev https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.3.x-dev

3.3.9999999.9999999-dev https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.2.2

3.2.2.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.2.3

3.2.3.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.2.4

3.2.4.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.2.4.1

3.2.4.1 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.2.5

3.2.5.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.2.6

3.2.6.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.3.0

3.3.0.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.3.1

3.3.1.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.3.2

3.3.2.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.3.3

3.3.3.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

19/07 2015

3.3.4

3.3.4.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

17/07 2015

3.2.1.1

3.2.1.1 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

11/04 2015

3.1.x-dev

3.1.9999999.9999999-dev https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

11/04 2015

3.1.3

3.1.3.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

11/04 2015

3.1.4

3.1.4.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

11/04 2015

3.2.0

3.2.0.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

11/04 2015

3.2.1

3.2.1.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

08/05 2014

v2.3.2

2.3.2.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

10/04 2014

v2.3.1

2.3.1.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan

23/09 2013

v2.3.0

2.3.0.0 https://github.com/Kunstmaan/KunstmaanLanguageChooserBundle

The Kunstmaan Language chooser bundle supplies your project with basic but extendible language chooser

  Sources   Download

MIT

The Requires

 

cms admin kunstmaan