Subversion Repositories SvarDOS

Rev

Rev 1114 | Rev 1246 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1114 Rev 1244
Line 1... Line 1...
1
 
1
 
2
 
2
 
3
              SVARLANG.LIB - THE SVARDOS TRANSLATION C LIBRARY
3
              SVARLANG.LIB - THE SVARDOS TRANSLATION C LIBRARY
4
 
4
 
5
                   Copyright (C) 2021-2022 Mateusz Viste
5
                   Copyright (C) 2021-2023 Mateusz Viste
6
 
6
 
7
 
7
 
8
 
8
 
9
SvarLANG is a library and tooling for enabling SvarDOS applications to easily
9
SvarLANG is a library and toolset for enabling SvarDOS applications to easily
10
support multiple languages.
10
support multiple languages. It is part of the SvarDOS project.
11
 
11
 
12
 
12
 
13
### PREPARING TRANSLATION FILES ###
13
### PREPARING TRANSLATION FILES ###
14
 
14
 
15
The translation files must be CATS-style text files in the usual format:
15
The translation files must be CATS-style text files in the usual format:
Line 39... Line 39...
39
  puts(svarlang_str(2, 0));              /* display the string with id 2.0 */
39
  puts(svarlang_str(2, 0));              /* display the string with id 2.0 */
40
 
40
 
41
Read svarlang.h for more information about available functions.
41
Read svarlang.h for more information about available functions.
42
 
42
 
43
 
43
 
-
 
44
### ESCAPED CHARACTERS ###
-
 
45
 
-
 
46
Translation strings may contain some escaped characters. At this time only the
-
 
47
following escaped characters are supported: \r \n \t and \\
-
 
48
 
-
 
49
 
44
### DIRTY STRINGS ###
50
### DIRTY STRINGS ###
45
 
51
 
46
In the CATS-style source translation, lines may be prefixed with a '?' sign:
52
In the CATS-style source translation, lines may be prefixed with a '?' sign:
47
 
53
 
48
?1.1:Hello, World!
54
?1.1:Hello, World!