gettext.gettext(message) Return the localized translation of message, based on the current global domain, language
gettext.lngettext(singular, plural, n) Equivalent to ngettext(), but the translation is returned in the preferred
locale.localeconv() Returns the database of the local conventions as a dictionary. This dictionary has the following strings
gettext.ldgettext(domain, message) Equivalent to dgettext(), but the translation is returned in the preferred system
locale.resetlocale(category=LC_ALL) Sets the locale for category to the default setting. The
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
locale.format(format, val, grouping=False, monetary=False) Formats a number val according to the current LC_NUMERIC
output_charset() Return the “protected” _output_charset variable, which defines the encoding used to return translated
locale.getpreferredencoding(do_setlocale=True) Return the encoding used for text data, according to user preferences. User preferences
Page 3 of 5