KeyFile.getLocaleForKey

Returns the actual locale which the result of glib.key_file.KeyFile.getLocaleString or glib.key_file.KeyFile.getLocaleStringList came from.

If calling glib.key_file.KeyFile.getLocaleString or glib.key_file.KeyFile.getLocaleStringList 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 = null
)

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