Simple language select as custom template tag
Project description
=====================
django_languageselect
=====================
.. image:: https://img.shields.io/pypi/v/django_languageselect.svg
:target: https://pypi.python.org/pypi/django_languageselect
.. image:: https://img.shields.io/travis/RegioHelden/django-languageselect.svg
:target: https://travis-ci.org/RegioHelden/django-languageselect
.. image:: https://readthedocs.org/projects/django-languageselect/badge/?version=latest
:target: https://django-languageselect.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
Simple language select as custom template tag
Requirements
============
- "django.middleware.locale.LocaleMiddleware" in MIDDLEWARE_CLASSES
- "django.core.context_processors.request" in TEMPLATE_CONTEXT_PROCESSORS
- Add 'django_languageselect', to INSTALLED_APPS
Usage:
======
{% load languageselect %}
{% languageselect %}
Routes:
=======
The only url provided by this application is "languageselect_index". Required GET-parameter is "language", optional GET-parameter is "next". Next contains the named url to redirect after the language change. This parameter is pre-filled with the current page url.
Customization
Feel free to use your own template, just add languageselect/layer.html
* Free software: MIT license
* Documentation: https://django-languageselect.readthedocs.io.
=======
History
=======
0.1.6 (2018-01-27)
------------------
* Add missing folders and modules from package
0.1.5 (2018-01-15)
------------------
* Add support for python 3 and Django 2, impleneting tests in travis ci
0.1.4 (2017-04-18)
------------------
* Rename package to django_languageselect (backwards incompatible) to be able to import the module
0.1.3 (2016-06-17)
------------------
* Fix session key to store language, Django 1.9 compatibility
django_languageselect
=====================
.. image:: https://img.shields.io/pypi/v/django_languageselect.svg
:target: https://pypi.python.org/pypi/django_languageselect
.. image:: https://img.shields.io/travis/RegioHelden/django-languageselect.svg
:target: https://travis-ci.org/RegioHelden/django-languageselect
.. image:: https://readthedocs.org/projects/django-languageselect/badge/?version=latest
:target: https://django-languageselect.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
Simple language select as custom template tag
Requirements
============
- "django.middleware.locale.LocaleMiddleware" in MIDDLEWARE_CLASSES
- "django.core.context_processors.request" in TEMPLATE_CONTEXT_PROCESSORS
- Add 'django_languageselect', to INSTALLED_APPS
Usage:
======
{% load languageselect %}
{% languageselect %}
Routes:
=======
The only url provided by this application is "languageselect_index". Required GET-parameter is "language", optional GET-parameter is "next". Next contains the named url to redirect after the language change. This parameter is pre-filled with the current page url.
Customization
Feel free to use your own template, just add languageselect/layer.html
* Free software: MIT license
* Documentation: https://django-languageselect.readthedocs.io.
=======
History
=======
0.1.6 (2018-01-27)
------------------
* Add missing folders and modules from package
0.1.5 (2018-01-15)
------------------
* Add support for python 3 and Django 2, impleneting tests in travis ci
0.1.4 (2017-04-18)
------------------
* Rename package to django_languageselect (backwards incompatible) to be able to import the module
0.1.3 (2016-06-17)
------------------
* Fix session key to store language, Django 1.9 compatibility
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django_languageselect-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9b1a8867bcc99feb1b9809f8c5261632fff098bb8b3a5a84e860e3abfba7389 |
|
MD5 | 316a3c67237c0660f6b0424eb6bcf191 |
|
BLAKE2b-256 | 95aa98c3472b1c09de26dbc3c6ab5c84465d8928f1adc42a17e358001d70604f |