dcgettext

This is a variant of glib.global.dgettext that allows specifying a locale category instead of always using LC_MESSAGES. See glib.global.dgettext for more information about how this functions differs from calling dcgettext() directly.

string
dcgettext
(
string domain
,
string msgid
,)

Parameters

domain string

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

msgid string

message to translate

category int

a locale category

Return Value

Type: string

the translated string for the given locale category