VgaGames 3 - Multilanguage 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 may be split into more than one line, as long as each following line begins with a tabulator. A newline is represented by a dollar sign: $. Comment lines begin with #. Example: [big-error] en: big error de: grosser Fehler [long text] en: This is a long text$using two lines. [very long text] en: This is a very long text$ really very long, still very long and so on.$ Now it is over.

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