module documentation

Undocumented

Class JavaScriptCatalog Return the selected language catalog as a JavaScript library.
Class JSONCatalog Return the selected language catalog as a JSON object.
Function get_formats Return all formats strings required for i18n to work.
Function set_language Redirect to a given URL while setting the chosen language in the session (if enabled) and in a cookie. The URL and the language code need to be specified in the request parameters.
Constant LANGUAGE_QUERY_PARAMETER Undocumented
Variable js_catalog_template Undocumented
def get_formats(): (source)

Return all formats strings required for i18n to work.

def set_language(request): (source)

Redirect to a given URL while setting the chosen language in the session (if enabled) and in a cookie. The URL and the language code need to be specified in the request parameters. Since this view changes how the user will see the rest of the site, it must only be accessed as a POST request. If called as a GET request, it will redirect to the page in the request (the 'next' parameter) without changing any state.

LANGUAGE_QUERY_PARAMETER: str = (source)

Undocumented

Value
'language'
js_catalog_template: str = (source)

Undocumented