Franz Glasner <[EMAIL PROTECTED]> added the comment: 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. ---------- components: +Library (Lib) -Extension Modules keywords: +patch nosy: +franz_glasner Added file: http://bugs.python.org/file10036/gettext-pgettext.patch __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2504> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com