GLib.dcgettext
function dcgettext(domain: String, msgid: String, category: Number(gint)): String { // Gjs wrapper for g_dcgettext() }
This is a variant of GLib.dgettext that allows specifying a locale category instead of always using `LC_MESSAGES`. See GLib.dgettext for more information about how this functions differs from calling dcgettext() directly.
Since 2.26
- domain
the translation domain to use, or null to use the domain set with textdomain()
- msgid
message to translate
- category
a locale category
- Returns
the translated string for the given locale category