translations.manager module

Contains a class that stores languages that can be used for translations.

class translations.manager._LanguageManager(infile=None, options=None, configspec=None, encoding=None, interpolation=True, raise_errors=False, list_values=True, create_empty=False, file_error=False, stringify=True, indent_type=None, default_encoding=None, unrepr=False, write_empty_values=False, _inspec=False)[source]

Bases: configobj.ConfigObj

Dictionary class used to store languages and their shortnames.

_register_default_language(language)[source]

Register the default language for the current server.

get_language(language)[source]

Return the shortname for the given language.

default = 'en'
fallback = 'en'
translations.manager.language_manager

The singleton object of the _LanguageManager class.