[New-bugs-announce] [issue10766] optparse uses %s in gettext calls
Éric Araujo
report at bugs.python.org
Fri Dec 24 00:59:13 CET 2010
New submission from Éric Araujo <merwok at netwok.org>:
When you run xgettext other optparse.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.”
Attached patch fixes the incorrect calls (my patch for #4391 already fixes two of them).
See similar bug and fix for argparse in #10528. Georg, please tell if this can go into 3.2.
----------
assignee: eric.araujo
components: Library (Lib)
files: fix-gettext-positionals.diff
keywords: patch
messages: 124578
nosy: eric.araujo, georg.brandl, gward
priority: normal
severity: normal
stage: commit review
status: open
title: optparse uses %s in gettext calls
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file20153/fix-gettext-positionals.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10766>
_______________________________________
More information about the New-bugs-announce
mailing list