KeyFile.getLocaleForKey

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

If calling KeyFile.getLocaleString or 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
)

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