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
## Changelog
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91fa8433f34844ec7efab4f18b3d010eec2d9cdf3683c8d8bbccd17c609f2556 |
|
MD5 | 7334dba5e3fe9d05ad91632fe2a220eb |
|
BLAKE2b-256 | 779b93162d1ae79fd9099bd6aa9bcbdb385b983f73a5c1163de78734a0d8f429 |