locale.getpreferredencoding(do_setlocale=True) Return the encoding used for text data, according to user preferences. User preferences
add_fallback(fallback) Add fallback as the fallback object for the current translation object. A translation object
GNUTranslations.gettext(message) Look up the message id in the catalog and return the corresponding message string
gettext.ngettext(singular, plural, n) Like gettext(), but consider plural forms. If a translation is found, apply
output_charset() Return the “protected” _output_charset variable, which defines the encoding used to return translated
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
gettext.translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=None) Return a Translations
gettext.find(domain, localedir=None, languages=None, all=False) This function implements the standard .mo file
charset() Return the “protected” _charset variable, which is the encoding of the message catalog file.
Page 4 of 5