Function

GLibTranslateFunc

Declaration

const gchar*
(* GTranslateFunc) (
  const gchar* str,
  gpointer data
)

Description [src]

The type of functions which are used to translate user-visible strings, for output.

Parameters

str const gchar*
 

The untranslated string.

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

User data specified when installing the function, e.g. in g_option_group_set_translate_func()

Return value

Returns: const gchar*
 

A translation of the string for the current locale. The returned string is owned by GLib and must not be freed.

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