這是轉錄自 gnome-i18n mailing list 的信, 希望對有興趣的人有點幫助
Date: Fri, 11 Aug 2000 11:31:22 +0000 (GMT)
From: root <root(a)pc96.ma.rhbnc.ac.uk>
To: zhaoway <zw(a)zhaoway.com>
Subject: Re: howto get pot files
On Fri, 11 Aug 2000, zhaoway wrote:
> please how can i get pot files in a
> easy way? i want to help the zh_CN
> pot translation.
Afaik, currently you need to download (CVS) the whole source tree of
the application you need to translate and create an updated .po to check
For example, for gnome-core
1. setenv CVSROOT ':pserver:email@example.com:/cvs/gnome'
2. cvs login (press enter for password)
3a. cvs -z3 checkout gnome-core (if it's the first time you grab
[SEVERAL MBs downloaded]
3b. cvs -z3 update -Pd gnome-core (if you have already an older
[SEVERAL MBs downloaded]
4. cd gnome-core/po
5. ./update.sh (this creates an updated
6. ./update.sh zh_CN (this creates an updated zh_CN.po,
you use this for translations)
On (6), if there is no already a zh_CN.po file, it does not work. You
to copy gnome-core.pot to zh_CN.po, set the fields of the header and
Suppose that there was a cron application that every day went to each
gnome-PACKAGE/po/ and updated at least the gnome-PACKAGE.pot.
just gnome-PACKAGE.pot and the previous translation of zh_CN.po, you
do the updates with just those two files.
You would then do:
(suppose you already logged on CVS)
% cvs -z3 checkout gnome-core/po/gnome-core.pot
% cvs -z3 checkout gnome-core/po/zh_CN.po
% cd gnome-core/po
% msgmerge --strict --verbose -o `date "+%d%h%y-"`zh_CN.po zh_CN.po
In this case, you update the 11Aug2000-zh_CN.po file and submit it.
To be extra cool with the "version" field of the .po file you just
translated, you would also need to do:
% cvs -z3 checkout gnome-core/configure.in
In this file, it says the exact new version of the gnome package. (It is
not updated automatically from the update procedure).
Alternatively, the cron daemon could run the "update.sh" script for all
languages and all packages every day so that you would just need to
download one file per package, namely zh_CN.po. Even better, since the
file is then available, one could link it to
http://www.gnome.org/i18n/release/status.shtml, so that with just the
browser you could download, update and submit.
All these are nice with two gotchas:
a. You need a lot of experience to be able to translate the messages
without having access to the program/source code. Brings down quality?
b. Automatic updates could possibly make translations a moving target.
The msgmerge program could destroy some .po files. This needs some
gnome-i18n mailing list