KeyFile.getLocaleForKey

Returns the actual locale which the result of g_key_file_get_locale_string() or g_key_file_get_locale_string_list() came from.

If calling g_key_file_get_locale_string() or g_key_file_get_locale_string_list() with exactly the same @key_file, @group_name, @key and @locale, the result of those functions will have originally been tagged with the locale that is the result of this function.

class KeyFile
string
getLocaleForKey
(
string groupName
,
string key
,
string locale
)

Parameters

groupName string

a group name

key string

a key

locale string

a locale identifier or %NULL

Return Value

Type: string

the locale from the file, or %NULL if the key was not found or the entry in the file was was untranslated

Meta

Since

2.56