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
File details
Details for the file django-languageselect-0.1.3.tar.gz.
File metadata
- Download URL: django-languageselect-0.1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91fa8433f34844ec7efab4f18b3d010eec2d9cdf3683c8d8bbccd17c609f2556
|
|
| MD5 |
7334dba5e3fe9d05ad91632fe2a220eb
|
|
| BLAKE2b-256 |
779b93162d1ae79fd9099bd6aa9bcbdb385b983f73a5c1163de78734a0d8f429
|