l.s.w.helpers : module documentation

Part of lp.services.worlddata

Worlddata helper functions.
Function browser_languages Return a list of Language objects based on the browser preferences.
Function is_english_variant Return whether the language is a variant of modern English .
Function preferred_or_request_languages Turn a request into a list of languages to show.
def browser_languages(request):
Return a list of Language objects based on the browser preferences.
def is_english_variant(language):
Return whether the language is a variant of modern English .
def preferred_or_request_languages(request):
Turn a request into a list of languages to show.

Return Person.languages when the user has preferred languages. Otherwise, return the languages from the request either from the headers or from the IP address.

API Documentation for Launchpad, generated by pydoctor at 2018-02-23 00:00:09.