[issue4391] optparse: use proper gettext plurals forms

2010-12-03 Thread Éric Araujo
Éric Araujo 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 review before the beta

[issue4391] optparse: use proper gettext plurals forms

2010-11-19 Thread Éric Araujo
Éric Araujo 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. Adding the “easy” keywo

[issue4391] optparse: use proper gettext plurals forms

2010-11-05 Thread Éric Araujo
Éric Araujo 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 ___

[issue4391] optparse: use proper gettext plurals forms

2010-08-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list ma

[issue4391] optparse: use proper gettext plurals forms

2010-06-11 Thread Éric Araujo
Éric Araujo 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 arg, the plural two

[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]> ___ ___ Python-bugs-list m

[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

[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]> __

[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 req