class documentation

Set up the GNUTranslations context with regard to output charset. This translation object will be constructed out of multiple GNUTranslations objects by merging their catalogs. It will construct an object for the requested language and add a fallback to the default language, if it's different from the requested language.

Method __init__ Create a GNUTranslations() using many locale directories
Method __repr__ Undocumented
Method language Return the translation language.
Method merge Merge another translation into this catalog.
Method ngettext Undocumented
Method to_language Return the translation language name.
Instance Variable domain Undocumented
Instance Variable plural Undocumented
Method _add_fallback Set the GNUTranslations() fallback with the default language.
Method _add_installed_apps_translations Merge translations from each installed app.
Method _add_local_translations Merge translations defined in LOCALE_PATHS.
Method _init_translation_catalog Create a base catalog using global django translations.
Method _new_gnu_trans Return a mergeable gettext.GNUTranslations instance.
Instance Variable __language Undocumented
Instance Variable __locale Undocumented
Instance Variable __to_language Undocumented
Instance Variable _catalog Undocumented
Instance Variable _info Undocumented
def __init__(self, language, domain=None, localedirs=None): (source)

Create a GNUTranslations() using many locale directories

def __repr__(self): (source)

Undocumented

def language(self): (source)

Return the translation language.

def merge(self, other): (source)

Merge another translation into this catalog.

def ngettext(self, msgid1, msgid2, n): (source)

Undocumented

def to_language(self): (source)

Return the translation language name.

Undocumented

Undocumented

def _add_fallback(self, localedirs=None): (source)

Set the GNUTranslations() fallback with the default language.

def _add_installed_apps_translations(self): (source)

Merge translations from each installed app.

def _add_local_translations(self): (source)

Merge translations defined in LOCALE_PATHS.

def _init_translation_catalog(self): (source)

Create a base catalog using global django translations.

def _new_gnu_trans(self, localedir, use_null_fallback=True): (source)

Return a mergeable gettext.GNUTranslations instance. A convenience wrapper. By default gettext uses 'fallback=False'. Using param `use_null_fallback` to avoid confusion with any other references to 'fallback'.

__language = (source)

Undocumented

__locale = (source)

Undocumented

__to_language = (source)

Undocumented

_catalog = (source)

Undocumented

Undocumented