[New-bugs-announce] [issue10528] argparse uses %s in gettext calls

Éric Araujo report at bugs.python.org
Thu Nov 25 13:25:39 CET 2010

New submission from Éric Araujo <merwok at netwok.org>:

When you run xgettext other argparse.py, you get this warning:
“'msgid' format string with unnamed arguments cannot be properly localized: The translator cannot reorder the arguments.  Please consider using a format string with named arguments, and a mapping instead of a tuple for the arguments.”

I don’t know if people already rely on strings from argparse, but for safety I think we should change them only in 3.2, if Steven agrees.

(I have to check other stdlib modules.)

components: Library (Lib)
messages: 122357
nosy: belopolsky, bethard, eric.araujo
priority: normal
severity: normal
status: open
title: argparse uses %s in gettext calls
type: behavior
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list