dpgettext2

This function is a variant of glib.global.dgettext which supports a disambiguating message context. GNU gettext uses the '\004' character to separate the message context and message id in msgctxtid.

This uses glib.global.dgettext internally. See that functions for differences with dgettext() proper.

This function differs from C_() in that it is not a macro and thus you may use non-string-literals as context and msgid arguments.

string
dpgettext2
(
string domain
,
string context
,
string msgid
)

Parameters

domain string

the translation domain to use, or null to use the domain set with textdomain()

context string

the message context

msgid string

the message

Return Value

Type: string

The translated string