GLib.KeyFile.get_locale_for_key (original) (raw)
Method
GLibKeyFileget_locale_for_key
since: 2.56
Declaration [src]
gchar*
g_key_file_get_locale_for_key (
GKeyFile* key_file,
const gchar* group_name,
const gchar* key,
const gchar* locale
)
Description [src]
Available since: 2.56
Parameters
group_name
Type: const gchar*
A group name.
The data is owned by the caller of the method. |
---|
The value is a NUL terminated UTF-8 string. |
key
Type: const gchar*
A key.
The data is owned by the caller of the method. |
---|
The value is a NUL terminated UTF-8 string. |
locale
Type: const gchar*
A locale identifier or NULL
to use the current locale.
The argument can be NULL. |
---|
The data is owned by the caller of the method. |
The value is a NUL terminated UTF-8 string. |
Return value
Type: gchar*
The locale from the file, or NULL
if the key was not found or the entry in the file was was untranslated.
The caller of the method takes ownership of the returned data, and is responsible for freeing it. |
---|
The return value can be NULL. |
The value is a NUL terminated UTF-8 string. |