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