gettext.lngettext(singular, plural, n) Equivalent to ngettext(), but the translation is returned in the preferred
gettext.dgettext(domain, message) Like gettext(), but look the message up in the specified domain.
locale.resetlocale(category=LC_ALL) Sets the locale for category to the default setting. The
set_output_charset(charset) Change the “protected” _output_charset variable, which defines the encoding used to
gettext(message) If a fallback has been set, forward gettext() to the fallback. Otherwise, return the translated
ngettext(singular, plural, n) If a fallback has been set, forward ngettext() to the fallback. Otherwise, return
locale.getlocale(category=LC_CTYPE) Returns the current setting for the given locale category as sequence containing language
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
locale.str(float) Formats a floating point number using the same format as the built-in function str(float), but
Page 3 of 5