|
|
__init__(self,
fileobj=None,
domain='messages')
Initialize the translations catalog. |
|
|
|
|
|
|
Translations
|
add(self,
translations,
merge=True)
Add the given translations to the catalog. |
|
|
|
Translations
|
merge(self,
translations)
Merge the given translations into the catalog. |
|
|
|
|
dgettext(self,
domain,
message)
Like gettext(), but look the message up in the specified
domain. |
|
|
|
|
ldgettext(self,
domain,
message)
Like lgettext(), but look the message up in the specified
domain. |
|
|
|
|
dugettext(self,
domain,
message)
Like ugettext(), but look the message up in the specified
domain. |
|
|
|
|
dngettext(self,
domain,
singular,
plural,
num)
Like ngettext(), but look the message up in the specified
domain. |
|
|
|
|
ldngettext(self,
domain,
singular,
plural,
num)
Like lngettext(), but look the message up in the specified
domain. |
|
|
|
|
dungettext(self,
domain,
singular,
plural,
num)
Like ungettext() but look the message up in the specified
domain. |
|
|
|
Inherited from gettext.GNUTranslations:
gettext,
lgettext,
lngettext,
ngettext,
ugettext,
ungettext
Inherited from gettext.NullTranslations:
add_fallback,
charset,
info,
install,
output_charset,
set_output_charset
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|