Re: pygettext question

Barry Warsaw <[email protected]> Sun, 06 Jun 2004 21:36:46 -0400
Newsgroups gmane.comp.python.internationalization
Organization Damned Crazy Followers of the Horn
Message-ID <[email protected]>
On Sun, 2004-06-06 at 18:13, Greg Ward wrote:

> But when I change messages in the code and re-run pygettext, that block
> is clobbered with the default version.  ;-(
> 
> How do I get pygettext to preserve my existing value here?  (Likewise
> for the leading comment block, which has a copyright statement?)

You don't actually.  You're supposed to use msgmerge to combine the
output of successive pygettext runs with your existing message catalogs.

For an example of how I use it, look at MM2.1's messages/Makefile.in. 
We use pygettext to generate a new mailman.pot file, and then msgmerge
those into all the language-specific mailman.po files.  It's those .po
files that contain all the translations.  If you really want those
header block changes to persist, you'll need to edit the pot_header
variable in the pygettext.py file.

-Barry

_______________________________________________
I18n-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/i18n-sig
signature.asc (application/pgp-signature, 307 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iQCVAwUAQMPGrnEjvBPtnXfVAQLP1QP+Ot43ohyD1y29kJWJnC63ENiYw+zJFOyQ
/QVXqgJR9VRftY/QW3KI6QMWCsbZNmyUE3BZzNDYrYiBRpnYvrQ5OCmMsnzLjwew
n6aHCcIn/9V+Bcvdp5p814hHRzZPKzNZX98VEnN0lI7ScYvaydidD4VYev+DEew9
2B/KkP3uVgY=
=fEK3
-----END PGP SIGNATURE-----