bonjour.utils

Bonjour i18n helpers

class bonjour.utils.Bonjour[source]

Holds the bonjour-defined locale

classmethod lang()[source]

returns bonjour lang string

classmethod locale()[source]

returns babel’s locale built from bonjour lang

bonjour.utils.set_language_to(code)[source]

sets the LANGUAGE_CODE variable with param

bonjour.utils.set_language_to_default(router)[source]

sets language to DEFAULT one (from bonjour config)

bonjour.utils.set_language_to_original(router)[source]

sets language with original one (from django guess)

Previous topic

bonjour.ethiopian_date

Next topic

childcount

This Page