12,7 → 12,7 |
Homepage: http://svardos.org/svarlang/ |
|
|
### PREPARING TRANSLATION FILES ### |
### PREPARING TRANSLATION FILES ############################################### |
|
The translation files must be CATS-style text files in the usual format: |
|
43,13 → 43,13 |
Read svarlang.h for more information about available functions. |
|
|
### ESCAPED CHARACTERS ### |
### ESCAPED CHARACTERS ######################################################## |
|
Translation strings may contain some escaped characters. At this time only the |
following escaped characters are supported: \e \r \n \t and \\ |
|
|
### DIRTY STRINGS ### |
### DIRTY STRINGS ############################################################# |
|
In the CATS-style source translation, lines may be prefixed with a '?' sign: |
|
60,7 → 60,7 |
to be reviewed by a translator). |
|
|
### ENVIRONMENT ### |
### ENVIRONMENT ############################################################### |
|
The program translation file should be named "PROGNAME.LNG", where PROGNAME |
is the program's name. This file should be placed in a well-known location, |
72,7 → 72,7 |
selection and pass this information to svarlang_load() accordingly. |
|
|
### WHY IS IT BETTER THAN CATS? ### |
### WHY IS IT BETTER THAN CATS? ############################################### |
|
The CATS library is heavier and slower, as it embeds a text-file parser. |
Translations also take more disk space since each language is stored in a |
86,7 → 86,7 |
under a truly free, liberal MIT license. |
|
|
### FILE FORMAT ### |
### FILE FORMAT ############################################################### |
|
File = |
magic : Char[4] := "SvL\x1a" (ie. "SvL" followed with a 0x1a char) |
112,4 → 112,7 |
StringZ = array[?] of Char ; zero-terminated string |
|
|
======================================================================= EOF === |
NOTE: All numeric values are stored in x86 (little endian) order. |
|
|
####################################################################### EOF ### |