Simple language select as custom template tag
Project description
# django_languageselect
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: `django {% 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
## Changelog
0.1.4 Rename package to django_languageselect (backwards incompatible) to be able to import the module
0.1.3 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
Hashes for django_languageselect-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8bf699f3b35cdf141f31ea4c7626910e55999d9c7d23be019922d7297fe2ee2 |
|
MD5 | 7a54c01a2357571730f36131c7a12dc4 |
|
BLAKE2b-256 | 3d8cab40e6566960b3b4e007704cda7ab2b17189b01be6e3608eec9dd3cd9e83 |