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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7db7da2da396f35e12ba08bf70272730738ce44ebee0547f0c5f6e620219eb5 |
|
MD5 | 9f96f8ae864eec34935f285bcd16de4e |
|
BLAKE2b-256 | 19644788fd9065ecc53dfc87e96af83e3fafa75b5a8524d8d7182ababe8a12f1 |