mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-27 23:16:33 +02:00
CodeTools: cleaned up outdated codetools/languages/README.txt contents
git-svn-id: trunk@63340 -
This commit is contained in:
parent
0891d7a200
commit
1db124462b
@ -1,32 +1,5 @@
|
|||||||
The <lazarusdir>/components/codetools/languages directory contains all the stuff
|
The <lazarusdir>/components/codetools/languages directory contains all the stuff
|
||||||
for internationalization of the codetools.
|
for CodeTools internationalization.
|
||||||
|
|
||||||
All text and messages used in the codetools should be placed into the unit
|
|
||||||
codetoolsstrconsts.pas. This unit uses a resourcestring section, so that the
|
|
||||||
compiler will create the
|
|
||||||
<lazarusdir>/components/units/codetoolsstrconsts.rst file.
|
|
||||||
|
|
||||||
The following is a in detail description of updating the language files for
|
|
||||||
the codetools. Normally you can just execute the <lazarusdir>/localize.sh
|
|
||||||
script.
|
|
||||||
|
|
||||||
Since this is a fpc-only format it must be converted with the rstconv program:
|
|
||||||
|
|
||||||
cd <lazarusdir>/components/codetools/languages
|
|
||||||
rstconv -i ../../units/codetoolsstrconsts.rst -o codetools.po
|
|
||||||
|
|
||||||
This will create the file codetools.po, which should be translated in all
|
|
||||||
required languages to a codetools.xx.po file. For the xx see the gettext unit
|
|
||||||
in the procedure TranslateResourceStrings.
|
|
||||||
|
|
||||||
german: codetools.de.po
|
|
||||||
|
|
||||||
|
|
||||||
After the translation, the codetools.xx.po file is converted to an .mo file
|
|
||||||
with the msgfmt program:
|
|
||||||
|
|
||||||
msgfmt -v -o codetools.xx.mo codetools.xx.po
|
|
||||||
|
|
||||||
where xx is the language id.
|
|
||||||
|
|
||||||
|
|
||||||
|
All text and messages used in the CodeTools should be placed into the
|
||||||
|
codetoolsstrconsts.pas unit.
|
Loading…
Reference in New Issue
Block a user