[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Éric Araujo
Éric Araujo added the comment: Committed in r86993. -- resolution: -> fixed stage: commit review -> committed/rejected status: pending -> closed ___ Python tracker ___

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Éric Araujo
Éric Araujo 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. Hopefully that will m

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Steven Bethard
Steven Bethard 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 really okay to do this. -

[issue10528] argparse uses %s in gettext calls

2010-12-03 Thread Steven Bethard
Steven Bethard 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 think there's pretty mini

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Éric Araujo
Éric Araujo 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 for translators.

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Georg Brandl
Georg Brandl added the comment: That would be good. While you could argue it's a bug, the fix is also slightly incompatible. -- ___ Python tracker ___

[issue10528] argparse uses %s in gettext calls

2010-12-02 Thread Éric Araujo
Éric Araujo 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 ___ ___

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> eric.araujo stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Steven Bethard
Steven Bethard added the comment: I think it's fine to fix this in 3.2 by switching to mappings where necessary. -- ___ Python tracker ___ __

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Éric Araujo
New submission from Éric Araujo : 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 in