X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd323a5e230f2b08227b307ff900698fb85d5519..05e0b047d879cdbfade7f2ab346c0acdf3e29f96:/samples/internat/readme.txt diff --git a/samples/internat/readme.txt b/samples/internat/readme.txt index 11eb77f465..c2330b6707 100644 --- a/samples/internat/readme.txt +++ b/samples/internat/readme.txt @@ -44,23 +44,27 @@ A. First of all, you will need the GNU gettext tools (see the next question). # generate the .po file for the program itself # see `xgettext --help' for options, "-C" is important! - xgettext -C -o internat.po ../internat.cpp + xgettext -C -n -k_ -kwxPLURAL:1,2 -kwxTRANSLATE -o internat.po ../internat.cpp - # .po file for wxWindows might be generated in the same way, but for now just - # take this one... - cp ../wxstd.po . + # .po file for wxWindows might be generated in the same way. An already + # generated wxstd.pot as well as translations for some languages can be + # found in the locale directory. + cp ../../locale/.po ./wxstd.pot + - or - + cp ../../locale/wxstd.pot . # now edit the files and do translate strings (this isn't done by gettext) - # you can use another editor if you wish :-) - vi internat.po wxstd.po + # you can use another editor if you wish :-) No need to edit wxstd.pot if you + # already got a translated one. + vi internat.po wxstd.pot # create the message catalog files msgfmt -o internat.mo internat.po - msgfmt -o wxstd.mo wxstd.po + msgfmt -o wxstd.mo wxstd.pot # run the sample to test it cd .. - ./$OSTYPE/internat + ./internat Q. How to get the gettext tools? A. For Unix, you should be able to get the source distribution of any GNU mirror @@ -79,4 +83,4 @@ Q. Where to send comments, A. To Vadim Zeitlin , wxWindows list , /dev/null (platform-dependent), - wxWindows dev team Suiss banc account. + wxWindows dev team Swiss bank account.