GNUTranslations.lgettext(message) Equivalent to gettext(), but the translation is returned as a bytestring encoded
locale.format(format, val, grouping=False, monetary=False) Formats a number val according to the current LC_NUMERIC
locale.getpreferredencoding(do_setlocale=True) Return the encoding used for text data, according to user preferences. User preferences
locale.str(float) Formats a floating point number using the same format as the built-in function str(float), but
exception locale.Error Exception raised when the locale passed to setlocale() is not recognized.
gettext.ldngettext(domain, singular, plural, n) Equivalent to dngettext(), but the translation is returned in the
gettext.ngettext(singular, plural, n) Like gettext(), but consider plural forms. If a translation is found, apply
gettext.find(domain, localedir=None, languages=None, all=False) This function implements the standard .mo file
gettext.install(domain, localedir=None, codeset=None, names=None) This installs the function _() in Python’s builtins
_parse(fp) No-op’d in the base class, this method takes file object fp, and reads the data from the file, initializing
Page 4 of 5