Staging: this is not the live site, pydocs.org.
Takes an optional file object fp, which is ignored by the base class. Initializes “protected” instance variables _info and _charset which are set by derived classes, as well as _fallback, which is set through add_fallback(). It then calls self._parse(fp) if fp is not None. Members of NullTranslations _ _parse No-op in the base class, this method takes file object fp, and reads the data from the file, initializing its message catalog. a add_fallback Add fallback as the fallback object for the current translation object. c charset Return the encoding of the message catalog file. g gettext If a fallback has been set, forward gettext() to the fallback. i info Return a dictionary containing the metadata found in the message catalog file. install This method installs gettext() into the built-in namespace, binding it to _. n ngettext If a fallback has been set, forward ngettext() to the fallback. npgettext If a fallback has been set, forward npgettext() to the fallback. p pgettext If a fallback has been set, forward pgettext() to the fallback.
Python docs © Python Software Foundation · Examples CC0 ·
Source on GitHub · Not affiliated with the PSF