[issue4391] optparse: use proper gettext plurals forms

2010-12-03 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I just checked argparse and there are similar non-optimal calls. Not all languages can use “string(s)” to express with 0, 1 or more, that’s why we have ngettext. Georg: This is a string change similar to #10528. Does it need a patch and

[issue4391] optparse: use proper gettext plurals forms

2010-11-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: optparse is widely used, so the answer to my question is: yes, it is worth fixing. Checking argparse for the same errors is also a good idea. Dwayne: can you update your patch to address my remarks? If not, someone else or I may do it.

[issue4391] optparse: use proper gettext plurals forms

2010-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Now that argparse has been included in the standard library to supersede optparse, I’m not sure there is still value in fixing this bug. -- ___ Python tracker rep...@bugs.python.org

[issue4391] optparse: use proper gettext plurals forms

2010-08-04 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4391 ___

[issue4391] optparse: use proper gettext plurals forms

2010-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for your patch. I have some remarks: 1) please produce a patch from the top level of a Python checkout (cf. http://www.python.org/dev/patches/); 2) wrap lines under 80 characters; 3) bug with %-formatting: the singular message takes one

[issue4391] optparse: use proper gettext plurals forms

2008-11-23 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- priority: - low ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4391 ___ ___ Python-bugs-list mailing

[issue4391] optparse: use proper gettext plurals forms

2008-11-22 Thread Dwayne Bailey
New submission from Dwayne Bailey [EMAIL PROTECTED]: The following code in optparse: if len(rargs) nargs: if nargs == 1: self.error(_(%s option requires an argument) % opt) else: self.error(_(%s option requires

[issue4391] optparse: use proper gettext plurals forms

2008-11-22 Thread David W. Lambert
David W. Lambert [EMAIL PROTECTED] added the comment: And while at it, replace usage with Use. Usage isn't a word. -- nosy: +LambertDW ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4391 ___

[issue4391] optparse: use proper gettext plurals forms

2008-11-22 Thread Dwayne Bailey
Dwayne Bailey [EMAIL PROTECTED] added the comment: Mmm some problems with my head late at night. This patch sorts things out and makes sure strings can be extracted by xgettext Added file: http://bugs.python.org/file12108/optparse_proper_gettext_plurals.diff