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
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
locale.str()
  • References/Python/Python/Internationalization

locale.str(float) Formats a floating point number using the same format as the built-in function str(float), but

2025-01-10 15:47:30
locale.Error
  • References/Python/Python/Internationalization

exception locale.Error Exception raised when the locale passed to setlocale() is not recognized.

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

gettext.ldngettext(domain, singular, plural, n) Equivalent to dngettext(), but the translation is returned in the

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.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.install()
  • References/Python/Python/Internationalization

gettext.install(domain, localedir=None, codeset=None, names=None) This installs the function _() in Python’s builtins

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

_parse(fp) No-op’d in the base class, this method takes file object fp, and reads the data from the file, initializing

2025-01-10 15:47:30