class DjangoTranslation(gettext_module.GNUTranslations):
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 | _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. |
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 | __language |
Undocumented |
Instance Variable | __locale |
Undocumented |
Instance Variable | __to_language |
Undocumented |
Instance Variable | _catalog |
Undocumented |
Instance Variable | _info |
Undocumented |
Instance Variable | domain |
Undocumented |
Instance Variable | plural |
Undocumented |