This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dwayne
Recipients dwayne
Date 2008-11-22.21:44:26
SpamBayes Score 2.2543929e-05
Marked as misclassified No
Message-id <1227390268.91.0.0525140101381.issue4391@psf.upfronthosting.co.za>
In-reply-to
Content
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 %d arguments")
                               % (opt, nargs))

works for languages with plurals of n!=1 but will not work for many
others that have more sophisticated plurals.

I've created a patch that handles missing gettext and implements it
correctly if it is available. Be aware that I have not been able to test
the patch.
History
Date User Action Args
2008-11-22 21:44:28dwaynesetrecipients: + dwayne
2008-11-22 21:44:28dwaynesetmessageid: <1227390268.91.0.0525140101381.issue4391@psf.upfronthosting.co.za>
2008-11-22 21:44:27dwaynelinkissue4391 messages
2008-11-22 21:44:27dwaynecreate