On this page
gettext.GNUTranslations
Prev: gettext.gettext | Up: gettext | Next: gettext.install
Rel: gettext.bindtextdomain, gettext.Catalog, gettext.dgettext, gettext.dngettext
Ref: docs.python.org — gettext.GNUTranslations
Tags: #public #python3 #stdlib #gettext
Import
import gettext
from gettext import GNUTranslations
Signature & Overview
gettext.GNUTranslations(fp=None)
gettext.GNUTranslations class.
Methods & Attributes
GNUTranslations.add_fallback(self, fallback)—GNUTranslations.add_fallbackmethod/property.GNUTranslations.charset(self)—GNUTranslations.charsetmethod/property.GNUTranslations.gettext(self, message)—GNUTranslations.gettextmethod/property.GNUTranslations.info(self)—GNUTranslations.infomethod/property.GNUTranslations.install(self, names=None)—GNUTranslations.installmethod/property.GNUTranslations.ngettext(self, msgid1, msgid2, n)—GNUTranslations.ngettextmethod/property.GNUTranslations.npgettext(self, context, msgid1, msgid2, n)—GNUTranslations.npgettextmethod/property.GNUTranslations.pgettext(self, context, message)—GNUTranslations.pgettextmethod/property.
Usage
import gettext
assert issubclass(gettext.GNUTranslations, gettext.NullTranslations)
Gotchas
- Returned by
gettext.translation()when a.mocatalog is found.
REPL Inspect
from gettext import GNUTranslations
help(GNUTranslations)
Linked from
Related notes
- tuts/python3/stdlib_module/gettext/gettext Linked here; links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/install Linked here; links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/bindtextdomain Linked here; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/Catalog Linked here; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/dgettext Linked here; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/dngettext Linked here; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/gettext/dnpgettext shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/dpgettext shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/find shared tags: #gettext, #stdlib