💾 Archived View for tris.fyi › pydoc › gettext captured on 2023-04-26 at 13:29:33. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-01-08)
-=-=-=-=-=-=-
Internationalization and localization support. This module provides internationalization (I18N) and localization (L10N) support for your Python programs by providing an interface to the GNU gettext message catalog library. I18N refers to the operation by which a program is made aware of multiple languages. L10N refers to the adaptation of your program, once internationalized, to the local language and cultural habits.
add_fallback(self, fallback)
charset(self)
gettext(self, message)
info(self)
install(self, names=None)
lgettext(self, message)
lngettext(self, msgid1, msgid2, n)
ngettext(self, msgid1, msgid2, n)
npgettext(self, context, msgid1, msgid2, n)
output_charset(self)
pgettext(self, context, message)
set_output_charset(self, charset)
BE_MAGIC = 3725722773
CONTEXT = '%s\x04%s'
LE_MAGIC = 2500072158
VERSIONS = (0, 1)
add_fallback(self, fallback)
charset(self)
gettext(self, message)
info(self)
install(self, names=None)
lgettext(self, message)
lngettext(self, msgid1, msgid2, n)
ngettext(self, msgid1, msgid2, n)
npgettext(self, context, msgid1, msgid2, n)
output_charset(self)
pgettext(self, context, message)
set_output_charset(self, charset)
translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=['unspecified'])
bind_textdomain_codeset(domain, codeset=None)
bindtextdomain(domain, localedir=None)
c2py(plural) Gets a C expression as used in PO files for plural forms and returns a Python function that implements an equivalent expression.
dgettext(domain, message)
dngettext(domain, msgid1, msgid2, n)
dnpgettext(domain, context, msgid1, msgid2, n)
dpgettext(domain, context, message)
find(domain, localedir=None, languages=None, all=False)
gettext(message)
install(domain, localedir=None, codeset=['unspecified'], names=None)
ldgettext(domain, message)
ldngettext(domain, msgid1, msgid2, n)
lgettext(message)
lngettext(msgid1, msgid2, n)
ngettext(msgid1, msgid2, n)
npgettext(context, msgid1, msgid2, n)
pgettext(context, message)
textdomain(domain=None)
translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=['unspecified'])