[issue2504] Add gettext.pgettext() and variants support
Bernie H. Innocenti
report at bugs.python.org
Thu May 20 02:07:18 CEST 2010
Bernie H. Innocenti <bernie at codewiz.org> added the comment:
While we're waiting for this patch to be upstreamed, what's the best way to emulate this functionality with the current gettext module?
I'm looking at the patch and it seems that code similar to this might work?
def pgettext(ctx, msg):
return gettext(ctx + "\x04" + msg)
----------
nosy: +bernie
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2504>
_______________________________________
More information about the Python-bugs-list
mailing list