ngettext(singular, plural, n) If a fallback has been set, forward ngettext() to the fallback. Otherwise, return
gettext(message) If a fallback has been set, forward gettext() to the fallback. Otherwise, return the translated
set_output_charset(charset) Change the “protected” _output_charset variable, which defines the encoding used to
gettext.gettext(message) Return the localized translation of message, based on the current global domain, language
gettext.dgettext(domain, message) Like gettext(), but look the message up in the specified domain.
locale.getlocale(category=LC_CTYPE) Returns the current setting for the given locale category as sequence containing language
gettext.lngettext(singular, plural, n) Equivalent to ngettext(), but the translation is returned in the preferred
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.
locale.format(format, val, grouping=False, monetary=False) Formats a number val according to the current LC_NUMERIC
Page 3 of 5