gettext.translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=None) Return a Translations
_parse(fp) No-op’d in the base class, this method takes file object fp, and reads the data from the file, initializing
charset() Return the “protected” _charset variable, which is the encoding of the message catalog file.
gettext.bindtextdomain(domain, localedir=None) Bind the domain to the locale directory localedir. More concretely
lgettext(message) If a fallback has been set, forward lgettext() to the fallback. Otherwise, return the translated
gettext.dngettext(domain, singular, plural, n) Like ngettext(), but look the message up in the specified domain
gettext.install(domain, localedir=None, codeset=None, names=None) This installs the function _() in Python’s builtins
GNUTranslations.ngettext(singular, plural, n) Do a plural-forms lookup of a message id. singular is used as the message
Page 5 of 5