Author franz_glasner
Recipients franz_glasner, genepi, loewis
Date 2008-04-15.20:17:15
SpamBayes Score 0.00319356
Marked as misclassified No
Message-id <1208290641.28.0.729393596794.issue2504@psf.upfronthosting.co.za>
In-reply-to
Content
I have written a patch against the current Python trunk's gettext to
add support for pgettext and friends (upgettext, npgettext, unpgettext,
...).

I have also changed Tools/i18n/msgfmt.py to recognize the "msgctxt" keyword.
Some new unittests for dgettext and lgettext and variants are also included.

If the patch will be accepted then someone should drop a message to the
maintainers of GNU gettext to add the new functions as default keywords
for xgettext. Right now you have to call xgettext with
"--keyword=pgettext:1c,2" to extract messages with context. 

Tools/i18n/pygettext.py does currently not handle context variants.
History
Date User Action Args
2008-04-15 20:17:21franz_glasnersetspambayes_score: 0.00319356 -> 0.00319356
recipients: + franz_glasner, loewis, genepi
2008-04-15 20:17:21franz_glasnersetspambayes_score: 0.00319356 -> 0.00319356
messageid: <1208290641.28.0.729393596794.issue2504@psf.upfronthosting.co.za>
2008-04-15 20:17:20franz_glasnerlinkissue2504 messages
2008-04-15 20:17:20franz_glasnercreate