[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: If I understand it right, before this patch, people couldn't really supply internationalizations for these calls - they would have had to have a translation for each possible value of, e.g. action.choices or parser.prefix_chars. So I

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Hmm. I see I confused this with Issue 10529, where there really was a bug in the gettext calls. Nonetheless, +1 for switching from %s to %(xxx)s in 3.2 - since that's the first release in Python 3 that has argparse, I think it's

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This bug is a warning, not a fatal error: “The translator cannot reorder the arguments.” Depending on the language, it may be a real pain. “Basically, we should use the name of an Action or ArgumentParser attribute whenever it makes sense.

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Committed in r86993. -- resolution: - fixed stage: commit review - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Georg, do I have to make a patch before beta1 for this to go in 3.2? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: That would be good. While you could argue it's a bug, the fix is also slightly incompatible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The incompatibility worries me a bit. A program compatible with Python 3.1 and 3.2 would have to support both sets of messages; I don’t know whether the i18n tools support having all the strings in one PO file, and how inconvenient it would be

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Éric Araujo
New submission from Éric Araujo mer...@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

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528 ___ ___ Python-bugs-list

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: I think it's fine to fix this in 3.2 by switching to mappings where necessary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - eric.araujo stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528 ___