On this page
  1. gettext.dpgettext
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

gettext.dpgettext

Prev: gettext.dnpgettext | Up: gettext | Next: gettext.find
Rel: gettext.bindtextdomain, gettext.Catalog, gettext.dgettext, gettext.dngettext
Ref: docs.python.org — gettext.dpgettext
Tags: #public #python3 #stdlib #gettext


Import

import gettext
from gettext import dpgettext

Signature & Overview

gettext.dpgettext(domain, context, message)

gettext.dpgettext() function.

Usage

import gettext

assert gettext.dpgettext("myapp", "button", "Open") == "Open"

Gotchas

REPL Inspect

from gettext import dpgettext
help(dpgettext)

Linked from

Related notes