X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59e9bd3e24966f680ce9bcd0060a8315f03d922a..b15579781935495ff2a126b4ffac81f2cb51b99d:/samples/internat/readme.txt?ds=sidebyside diff --git a/samples/internat/readme.txt b/samples/internat/readme.txt index 1e5f58b0e3..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