update italian translation; add a Q+A for updating an existing internat translation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-02-08 15:33:18 +00:00
parent 0c54505687
commit ce0aa4ba1b
3 changed files with 88 additions and 48 deletions

View File

@@ -33,7 +33,7 @@ A. Please write them - see the next question. French is chosen by default
the language name if only 1 argument is given).
Q. How to do translations to other language?
A. First of all, you will need the GNU gettext tools (see the next question).
A. First of all, you will need the GNU gettext tools (see the next questions).
After you've probably installed them, type the following (example is for Unix
and you should do exactly the same under Windows).
@@ -66,6 +66,23 @@ A. First of all, you will need the GNU gettext tools (see the next question).
cd ..
./internat <language>
Q. How to do update the translation of 'internat' sample for a language?
A. First of all, you will need the GNU gettext tools (see the next question).
After you've probably installed them, type the following (example is for Unix
and you should do exactly the same under Windows).
# enter the directory of an already-existing translations which needs to be updated
cd <language>
# the -j flag tells xgettext to merge and not simply overwrite the output file
xgettext -j -C -n -k_ -kwxPLURAL:1,2 -kwxTRANSLATE -o internat.po ../internat.cpp
# now edit the files and do translate the new strings (this isn't done by gettext)
vi internat.po
# update the message catalog:
msgfmt -o internat.mo internat.po
Q. How to get the gettext tools?
A. For Unix, you should be able to get the source distribution of any GNU mirror
(see www.gnu.org for a start). gettext() version 0.10 is buggy, try to get at