VgaGames 3 - Miscellaneous man-pages

[.. upper level ..]

VG3_multilang_add()

Insert translations from a file.
SYNTAX
int VG3_multilang_add(struct vg3_multilang *mlang, const char *file)

FUNCTION PARAMETERS
mlang Multilanguage structure
file File with translations

RETURN VALUE
Returns integer: - 1: OK - 0: File was not inserted

DESCRIPTION
Insert translations from a file. A translation file has the following format: "[" <key> "]" <locale> ":" <translation> [<locale> ":" <translation>] [...] The translation has to be on a single line. A newline is represented as a dollar sign ($). Example: [big-error] en: big error de: grosser Fehler [long text] en: This is a long text$on two lines.

SEE ALSO
VG3_multilang_new() VG3_multilang_free() VG3_multilang_clear() VG3_multilang_get()