Tomas Hajny 67e1aeab5e + new language added (cs) 12 năm trước cách đây
..
Makefile 67e1aeab5e + new language added (cs) 12 năm trước cách đây
README.txt 4bf254bc32 * added .txt extensions to all README, TODO and COPYING files 16 năm trước cách đây
restest.cs.mo 67e1aeab5e + new language added (cs) 12 năm trước cách đây
restest.cs.po 67e1aeab5e + new language added (cs) 12 năm trước cách đây
restest.de.mo 46f999c582 * fpmake support 17 năm trước cách đây
restest.de.po 46f999c582 * fpmake support 17 năm trước cách đây
restest.fr.mo 46f999c582 * fpmake support 17 năm trước cách đây
restest.fr.po 46f999c582 * fpmake support 17 năm trước cách đây
restest.nl.mo 46f999c582 * fpmake support 17 năm trước cách đây
restest.nl.po 46f999c582 * fpmake support 17 năm trước cách đây
restest.pb.mo 46f999c582 * fpmake support 17 năm trước cách đây
restest.pb.po 46f999c582 * fpmake support 17 năm trước cách đây
restest.ru.mo 46f999c582 * fpmake support 17 năm trước cách đây
restest.ru.po 46f999c582 * fpmake support 17 năm trước cách đây
resttest.po 46f999c582 * fpmake support 17 năm trước cách đây

README.txt

How to add a new language:

You have to know your language code. Currently, the gettext unit simply takes
the first and second character of the environment variable $LANG.
Examples for this 2-char language codes are
de for German
en for English
fr for Frensh

you can check the currently selected language with the command
echo $LANG

change this value using
(in bash)
export LANG=
(in csh)
setenv LANG

Then, make a copy of the file "restest.po", call the copy
restest..po
(Insert your language code for )

After this you can edit the created .po file using your favorite editor.
For each string, there is an "msgid" and an "msgstr" entry. msgid is the
original string, don't change its value. Just add the translated string to
the "msgstr" line. Please translate the strings carefully, especially some
special characters like "%" inserts or quotation marks have to be at exactly
the same semantic position as in the original string.

When you are finished with your translation, add the language code to
the variable DEMOLANGUAGES in the Makefile and do a 'make'. If all goes
well, a file
restest..mo
will be created. This file will be loaded by the restest example program.
if there weren't any errors in your input file, you're finished.

If you don't have 'make', you can make the .mo file with the following
command:

msgfmt -o restest..mo restest..po

If you add a new language, please send the .po file to the Free Pascal
developers.

Michael.