Subversion Repositories SvarDOS

Rev

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

Rev 1244 Rev 1246
Line 7... Line 7...
7
 
7
 
8
 
8
 
9
SvarLANG is a library and toolset for enabling SvarDOS applications to easily
9
SvarLANG is a library and toolset for enabling SvarDOS applications to easily
10
support multiple languages. It is part of the SvarDOS project.
10
support multiple languages. It is part of the SvarDOS project.
11
 
11
 
-
 
12
Homepage: http://svardos.org/svarlang/
-
 
13
 
12
 
14
 
13
### PREPARING TRANSLATION FILES ###
15
### PREPARING TRANSLATION FILES ###
14
 
16
 
15
The translation files must be CATS-style text files in the usual format:
17
The translation files must be CATS-style text files in the usual format:
16
 
18
 
17
1.1:Hello, World!
19
1.1:Hello, World!
18
1.2:Help screen
20
1.2:Help screen
19
2.0:Type /? for more options
21
2.0:Type /? for more options
20
 
22
 
21
The files must be named as EN.TXT, DE.TXT, FR.TXT, etc. Then, they must be
23
The files must be named as EN.TXT, DE.TXT, FR.TXT, etc. Then, they must be
22
"compiled" into SvarLANG's binary format using the TLUMACZ tool:
24
converted into SvarLANG's binary format using the TLUMACZ tool:
23
 
25
 
24
tlumacz en fr pl (...)
26
tlumacz en fr pl (...)
25
 
27
 
26
The first language provided in the command line is the reference language and
28
The first language provided in the command line is the reference language and
27
is used both as the default (embedded in the application) language, as well as
29
is used both as the default (embedded in the application) language, as well as
Line 71... Line 73...
71
 
73
 
72
 
74
 
73
### WHY IS IT BETTER THAN CATS? ###
75
### WHY IS IT BETTER THAN CATS? ###
74
 
76
 
75
The CATS library is heavier and slower, as it embeds a text-file parser.
77
The CATS library is heavier and slower, as it embeds a text-file parser.
76
Translations also take more disk space since each file is in a separate file
78
Translations also take more disk space since each language is stored in a
77
leading to cluster waste. Finally, CATS requires default strings to be part of
79
separate file, leading to cluster waste. Finally, CATS requires default strings
78
the application's source code, while SvarLANG keeps all strings in TXT files
80
to be part of the application's source code, while SvarLANG keeps all strings
79
and embedds the default one inside the application in an automated way at
81
in TXT files and embedds the default one inside the application in an automated
80
compile time.
82
way at compile time.
81
 
83
 
82
There is also a licensing issue: CATS/Kitten libraries are published under the
84
There is also a licensing issue: CATS/Kitten libraries are published under the
83
terms of a viral license. SvarLANG, on the other hand, is published under a
85
terms of a viral, corrosive license. SvarLANG, on the other hand, is published
84
truly free, liberal license (MIT).
86
under a truly free, liberal license (MIT).
85
 
87
 
86
 
88
 
87
======================================================================= EOF ===
89
======================================================================= EOF ===