getLocaleForKey

fun getLocaleForKey(groupName: String, key: String, locale: String? = null): String

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,

Return

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

Since

2.56

Parameters

groupName

a group name

key

a key

locale

a locale identifier or null