[issue4391] use proper gettext plurals forms in argparse and optparse
Éric Araujo
report at bugs.python.org
Sat Dec 4 18:22:19 CET 2010
Éric Araujo <merwok at netwok.org> added the comment:
Attached patch fixes the two misuses I found in argparse.
I tried importing ngettext as _ngettext to comply with arpgarse’s crazy^Wpersonal <wink> import style (enforced in TestImportStar), but then I could not force xgettext to find all the strings. Rather than struggle longer with the program, I chose to add an exception for ngettext in the test. “from argparse import *” does not import ngettext, thanks to __all__, so I think my choice is simple and sensible.
----------
title: optparse: use proper gettext plurals forms -> use proper gettext plurals forms in argparse and optparse
Added file: http://bugs.python.org/file19941/fix-argparse-ngettext.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4391>
_______________________________________
More information about the Python-bugs-list
mailing list