locale.getpreferredencoding()
  • References/Python/Python/Internationalization

locale.getpreferredencoding(do_setlocale=True) Return the encoding used for text data, according to user preferences. User preferences

2025-01-10 15:47:30
gettext.NullTranslations.add_fallback()
  • References/Python/Python/Internationalization

add_fallback(fallback) Add fallback as the fallback object for the current translation object. A translation object

2025-01-10 15:47:30
gettext.GNUTranslations.gettext()
  • References/Python/Python/Internationalization

GNUTranslations.gettext(message) Look up the message id in the catalog and return the corresponding message string

2025-01-10 15:47:30
gettext.ngettext()
  • References/Python/Python/Internationalization

gettext.ngettext(singular, plural, n) Like gettext(), but consider plural forms. If a translation is found, apply

2025-01-10 15:47:30
gettext.NullTranslations.output_charset()
  • References/Python/Python/Internationalization

output_charset() Return the “protected” _output_charset variable, which defines the encoding used to return translated

2025-01-10 15:47:30
gettext.GNUTranslations.lgettext()
  • References/Python/Python/Internationalization

GNUTranslations.lgettext(message) Equivalent to gettext(), but the translation is returned as a bytestring encoded

2025-01-10 15:47:30
locale.format()
  • References/Python/Python/Internationalization

locale.format(format, val, grouping=False, monetary=False) Formats a number val according to the current LC_NUMERIC

2025-01-10 15:47:30
gettext.translation()
  • References/Python/Python/Internationalization

gettext.translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=None) Return a Translations

2025-01-10 15:47:30
gettext.find()
  • References/Python/Python/Internationalization

gettext.find(domain, localedir=None, languages=None, all=False) This function implements the standard .mo file

2025-01-10 15:47:30
gettext.NullTranslations.charset()
  • References/Python/Python/Internationalization

charset() Return the “protected” _charset variable, which is the encoding of the message catalog file.

2025-01-10 15:47:30