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
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
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 965e48ac49b7bfb38d86d39af36c9420c509aba47b2e2923793d1abd75ab92d1 |
|
MD5 | dad3a87af49ab2d360999b8ae243ead6 |
|
BLAKE2b-256 | e8f6254dc9c017bb8f6d95367e6b3a405d533e1f13b498635337b3484e6e37ae |