]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/internat/readme.txt
Make height of red square depend on value in the model
[wxWidgets.git] / samples / internat / readme.txt
index 1e5f58b0e388c6cb88b2aecd96e3cb0b15dd9e10..c2330b670779aa54aa9c546c9f601c807bb1f805 100644 (file)
@@ -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!
 
    # 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/<language>.po ./wxstd.pot
+   - or -
+   cp ../../locale/wxstd.pot .
 
    # now edit the files and do translate strings (this isn't done by gettext)
 
    # 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
 
    # 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 ..
 
    # run the sample to test it
    cd ..
-   ./$OSTYPE/internat <language> <langid>
+   ./internat <language> 
 
 Q. How to get the gettext tools?
 A. For Unix, you should be able to get the source distribution of any GNU mirror
 
 Q. How to get the gettext tools?
 A. For Unix, you should be able to get the source distribution of any GNU mirror