KeyFile.getLocaleForKey

string getLocaleForKey(string groupName, string key, string locale = null)

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.

Parameters

groupNamea group name
keya key
localea locale identifier or null

Returns

the locale from the file, or null if the key was not

found or the entry in the file was was untranslated