ae.django_utils
helpers for django projects
this module is providing helper functions for your django projects.
Functions
|
remove the country specific part - if exists - from the passed language code. |
determine the currently requested short translation language code, fallback to english/'en' if unset. |
|
|
add or replace fragment and/or query string of url. |
- generic_language(lang_code)[source]
remove the country specific part - if exists - from the passed language code.
- requested_language()[source]
determine the currently requested short translation language code, fallback to english/’en’ if unset.
- Return type:
- Returns:
short (without country specific part) and lower-case language code