Function

GLibdcgettext

Declaration [src]

const gchar*
g_dcgettext (
  const gchar* domain,
  const gchar* msgid,
  gint category
)

Description [src]

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.

Available since:2.26

Parameters

domain const gchar*
 

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

 The argument can be NULL.
 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
msgid const gchar*
 

Message to translate.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
category gint
 

A locale category.

Return value

Returns: const gchar*
 

The translated string for the given locale category.

 The data is owned by the called function.
 The string is a NUL terminated UTF-8 string.