dcgettext

fnstring dcgettext(string domain, string msgid, int category)

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.

Parameters

domainthe translation domain to use, or null to use the domain set with textdomain()
msgidmessage to translate
categorya locale category

Returns

the translated string for the given locale category