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

gettext.bindtextdomain(domain, localedir=None) Bind the domain to the locale directory localedir. More concretely

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

lgettext(message) If a fallback has been set, forward lgettext() to the fallback. Otherwise, return the translated

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

gettext.dngettext(domain, singular, plural, n) Like ngettext(), but look the message up in the specified domain

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

GNUTranslations.ngettext(singular, plural, n) Do a plural-forms lookup of a message id. singular is used as the message

2025-01-10 15:47:30