dcgettext

fun dcgettext(domain: String? = null, msgid: String, category: Int): String

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

Return

the translated string for the given locale category

Since

2.26

Parameters

domain

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

msgid

message to translate

category

a locale category