VgaGames 3 - Miscellaneous man-pages

[.. upper level ..]

VG3_multilang_get()

Return translation for a key.
SYNTAX
const char * VG3_multilang_get(struct vg3_multilang *mlang, const char *key)

FUNCTION PARAMETERS
mlang Multilanguage structure
key Key

RETURN VALUE
Returns translation for key.

DESCRIPTION
Return translation for a key. E.g. for an file entry [fatal] en: fatal error - exiting de: Strukturelles Versagen the key is fatal and this function returns for the language "en": "fatal error - exiting". If the current locale is not listed in the file, the fallback-locale given in VG3_multilang_new() will be used. If the fallback-locale is not listed or no fallback-locale was given, then the key itself will be returned, here: fatal.

SEE ALSO
VG3_multilang_new() VG3_multilang_free() VG3_multilang_clear() VG3_multilang_add()