On this page
gettext.dngettext
Prev: gettext.dgettext | Up: gettext | Next: gettext.dnpgettext
Rel: gettext.bindtextdomain, gettext.Catalog, gettext.dgettext, gettext.dnpgettext
Ref: docs.python.org — gettext.dngettext
Tags: #public #python3 #stdlib #gettext
Import
import gettext
from gettext import dngettext
Signature & Overview
gettext.dngettext(domain, msgid1, msgid2, n)
gettext.dngettext() function.
Usage
import gettext
assert gettext.dngettext("myapp", "1 file", "%d files", 1) == "1 file"
Gotchas
- Plural-aware counterpart to
dgettext().
REPL Inspect
from gettext import dngettext
help(dngettext)
Linked from
- tuts/python3/stdlib_module/gettext
- tuts/python3/stdlib_module/gettext/bindtextdomain
- tuts/python3/stdlib_module/gettext/Catalog
- tuts/python3/stdlib_module/gettext/dgettext
- tuts/python3/stdlib_module/gettext/dnpgettext
- tuts/python3/stdlib_module/gettext/dpgettext
- tuts/python3/stdlib_module/gettext/find
- tuts/python3/stdlib_module/gettext/gettext
- tuts/python3/stdlib_module/gettext/GNUTranslations
- tuts/python3/stdlib_module/gettext/install
- tuts/python3/stdlib_module/gettext/ngettext
- tuts/python3/stdlib_module/gettext/npgettext
- tuts/python3/stdlib_module/gettext/NullTranslations
- tuts/python3/stdlib_module/gettext/pgettext
- tuts/python3/stdlib_module/gettext/textdomain
- tuts/python3/stdlib_module/gettext/translation
Related notes
- tuts/python3/stdlib_module/gettext/bindtextdomain Linked here; links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/Catalog Linked here; links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/dgettext Linked here; links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/dnpgettext Linked here; links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/gettext Linked here; links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/dpgettext links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/find links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/GNUTranslations links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/install links to this page; shared tags: #gettext, #stdlib
- tuts/python3/stdlib_module/gettext/ngettext links to this page; shared tags: #gettext, #stdlib