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 paul.j3
Recipients paul.j3, woutgg, xtreak
Date 2019-04-06.21:35:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554586544.96.0.280222516236.issue33775@roundup.psfhosted.org>
In-reply-to
Content
I haven't paid much attention to the localization issues in `argparse`.  

The issue is with the help modification done by the:

class ArgumentDefaultsHelpFormatter

    help += ' (default: %(default)s)'

This formatter is a convenience, not something critical.  The programmer could always include that 'default' string in the help line with their preferred terminology.  They don't have to use this formatter to show the default values in their help lines.

_() is used mostly for error messages with the format 

    msg = _('message %(value)s')
    raise Error( msg % args)

So the following change might work:

    help += _(' (default: %(default)s)')

But I'm not in a position to test it or evaluate its usefulness.
History
Date User Action Args
2019-04-06 21:35:44paul.j3setrecipients: + paul.j3, woutgg, xtreak
2019-04-06 21:35:44paul.j3setmessageid: <1554586544.96.0.280222516236.issue33775@roundup.psfhosted.org>
2019-04-06 21:35:44paul.j3linkissue33775 messages
2019-04-06 21:35:44paul.j3create