New submission from Éric Araujo <mer...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10766>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to