Package: glib

Function glib:key-file-locale-string

Lambda List

glib:key-file-locale-string (keyfile group key locale)

Syntax

(g:key-file-locale-string keyfile group key locale) => value
(setf (g:key-file-locale-string keyfile group key locale) value)

Arguments

keyfile -- a g:key-file instance
group -- a string for the group name
key -- a string for the key
locale -- a string for the identifier
value -- a string with the value for the specified key or nil if the key cannot be found

Details

The g:key-file-locale-string function returns the value associated with key under group translated in the given locale if available. If locale is nil then the current locale is assumed.

The (setf g:key-file-locale-string) function associates a string value for key and locale under group. If the translation for key cannot be found then it is created.

If key cannot be found then nil is returned. If the value associated with key cannot be interpreted or no suitable translation can be found then the untranslated value is returned.
 

See also

2025-1-12