Issue 10766: optparse uses %s in gettext calls (original ) (raw )Created on 2010-12-23 23:59 by eric.araujo , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (7)
msg124578 - (view)
Author: Éric Araujo (eric.araujo) *
Date: 2010-12-23 23:59
When you run xgettext other optparse.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 instead of a tuple for the arguments.” Attached patch fixes the incorrect calls (my patch for #4391 already fixes two of them). See similar bug and fix for argparse in #10528 . Georg, please tell if this can go into 3.2.
msg124774 - (view)
Author: Georg Brandl (georg.brandl) *
Date: 2010-12-28 09:38
Hmm, argparse is new, so that is a different story. Not so sure about optparse, so I would not put this into 3.2.
msg124817 - (view)
Author: Éric Araujo (eric.araujo) *
Date: 2010-12-28 21:05
argparse is not new if you consider that it’s present in 2.7.
msg189045 - (view)
Author: Mark Lawrence (BreamoreBoy) *
Date: 2013-05-12 16:36
I don't understand this. Fixes have already been committed via #4391 but this fix couldn't go ahead. Can somebody please clarify the situation.
msg189584 - (view)
Author: R. David Murray (r.david.murray) *
Date: 2013-05-19 12:51
The #4391 fixes were only applied to the development branch. So these could be applied to 3.4 at this point, but not 3.3.
msg222382 - (view)
Author: Mark Lawrence (BreamoreBoy) *
Date: 2014-07-05 23:56
I don't see much point doing any work with optparse as it's deprecated.
msg227736 - (view)
Author: R. David Murray (r.david.murray) *
Date: 2014-09-27 21:43
OK, since there seems to be some concern about backward compatibility (in the related argparse issue) and optparse is indeed no longer maintained, let's close this.
History
Date
User
Action
Args
2022-04-11 14:57:10
admin
set
github: 54975
2014-09-27 21:43:25
r.david.murray
set
status: open -> closedresolution: rejectedmessages: + stage: commit review -> resolved
2014-07-05 23:56:54
BreamoreBoy
set
nosy: + BreamoreBoy messages: +
2014-02-03 18:30:57
BreamoreBoy
set
nosy: - BreamoreBoy
2013-05-19 12:51:31
r.david.murray
set
status: openversions: + Python 3.4, - Python 3.3nosy: + r.david.murray messages: +
2013-05-12 16:36:37
BreamoreBoy
set
nosy: + BreamoreBoy messages: +
2011-05-26 16:43:07
eric.araujo
set
status: open -> (no value)versions: + Python 3.3, - Python 3.2
2010-12-28 21:05:09
eric.araujo
set
messages: +
2010-12-28 09:38:37
georg.brandl
set
messages: +
2010-12-23 23:59:22
eric.araujo
set
dependencies: + use proper gettext plurals forms in argparse and optparse
2010-12-23 23:59:08
eric.araujo
create