michael 1ba2224a3e * Russian translation by Maxim Ganetsky 18 years ago
..
Makefile 2d2469c45e * Added brazilian translation by Antonio Galvao 18 years ago
README 5b8dd4c004 * move fcl sources to separate packages 18 years ago
restest.de.mo 2d2469c45e * Added brazilian translation by Antonio Galvao 18 years ago
restest.de.po 5b8dd4c004 * move fcl sources to separate packages 18 years ago
restest.fr.mo 2d2469c45e * Added brazilian translation by Antonio Galvao 18 years ago
restest.fr.po 5b8dd4c004 * move fcl sources to separate packages 18 years ago
restest.nl.mo 2d2469c45e * Added brazilian translation by Antonio Galvao 18 years ago
restest.nl.po 5b8dd4c004 * move fcl sources to separate packages 18 years ago
restest.pb.mo 2d2469c45e * Added brazilian translation by Antonio Galvao 18 years ago
restest.pb.po 2d2469c45e * Added brazilian translation by Antonio Galvao 18 years ago
restest.ru.mo 1ba2224a3e * Russian translation by Maxim Ganetsky 18 years ago
restest.ru.po 1ba2224a3e * Russian translation by Maxim Ganetsky 18 years ago
resttest.po 5b8dd4c004 * move fcl sources to separate packages 18 years ago

README

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.