gettext.gettext(message) Return the localized translation of message, based on the current global domain, language
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
gettext.ldgettext(domain, message) Equivalent to dgettext(), but the translation is returned in the preferred system
set_output_charset(charset) Change the “protected” _output_charset variable, which defines the encoding used to
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
gettext.ldngettext(domain, singular, plural, n) Equivalent to dngettext(), but the translation is returned in the
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.
Page 3 of 5