mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 04:28:39 +02:00
|
||
---|---|---|
.. | ||
lazaruside.ar.po | ||
lazaruside.ca.po | ||
lazaruside.de.po | ||
lazaruside.es.po | ||
lazaruside.fi.po | ||
lazaruside.fiwin.po | ||
lazaruside.fr.po | ||
lazaruside.he.po | ||
lazaruside.it.po | ||
lazaruside.itiso.po | ||
lazaruside.nl.po | ||
lazaruside.pb.po | ||
lazaruside.pl.po | ||
lazaruside.pliso.po | ||
lazaruside.plwin.po | ||
lazaruside.po | ||
lazaruside.ru.po | ||
lazaruside.ruutf.po | ||
lazaruside.ruwin.po | ||
objinspstrconsts.ca.po | ||
objinspstrconsts.de.po | ||
objinspstrconsts.es.po | ||
objinspstrconsts.fi.po | ||
objinspstrconsts.fiwin.po | ||
objinspstrconsts.fr.po | ||
objinspstrconsts.it.po | ||
objinspstrconsts.itiso.po | ||
objinspstrconsts.nl.po | ||
objinspstrconsts.pb.po | ||
objinspstrconsts.pl.po | ||
objinspstrconsts.pliso.po | ||
objinspstrconsts.plwin.po | ||
objinspstrconsts.po | ||
objinspstrconsts.ru.po | ||
objinspstrconsts.ruutf.po | ||
objinspstrconsts.ruwin.po | ||
README |
Quick Start for translators: For example finnish translation: Search for all *.fi.po files. They are simple text files, with an easy format. Edit them with programs like kbabel. Run 'sh localize.sh' to update translations. This will create the various .mo files. Send the updated xxx.fi.po files to patch@dommelstein.net. Do not send diffs for .po files. Now the background: The <lazarusdir>/languages directory contains all the stuff for internationalization of the lazarus IDE. There are a few other directories for the codetools and the lcl. They work all the same. All language files can easily be updated with the <lazarusdir>/localize.sh script. All text and messages used in the IDE (except the special designer units) should be placed into the unit lazarusidestrconsts.pas. This unit uses a resourcestring section, so that the compiler will create the <lazarusdir>/lazarusidestrconsts.rst file. Since this is a fpc-only format it must be converted with the rstconv program: cd <lazarusdir>/languages rstconv -i ../lazarusidestrconsts.rst -o lazaruside.po Hint: this is done by <lazarusdir>/localize.sh This will create the file lazaruside.po, which should be translated in all required languages to a lazaruside.xx.po file. For the xx see the gettext unit in the procedure TranslateResourceStrings. german: lazaruside.de.po russian (KOI8-R): lazaruside.ru.po spanish: lazaruside.es.po french: lazaruside.fr.po italian: lazaruside.it.po After the translation, the lazaruside.xx.po file is converted to an .mo file with the msgfmt program: msgfmt -v -o lazaruside.xx.mo lazaruside.xx.po where xx is the language id. Hint: this is done by <lazarusdir>/localize.sh too (The same for objinspstrconsts.xx.po, codetoolsstrconsts.xx.po, lcl.xx.po) Hint: this is also done by <lazarusdir>/localize.sh