[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2021-08-08 Thread Jérémie Detrey
Change by Jérémie Detrey : -- versions: +Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.9 ___ Python tracker ___ ___

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +12636 stage: -> patch review ___ Python tracker ___ ___

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread paul j3
paul j3 added the comment: https://bugs.python.org/issue16786 points out that the 'version' action isn't localizable either. -- ___ Python tracker ___

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread paul j3
paul j3 added the comment: 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

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @paul.j3 I assume this is an easy issue of wrapping "default" with _() at [0]. There doesn't seem to be any tests for localization in argparse. https://github.com/python/cpython/blob/2ea8099523581cf2ecc060831a53debb57ff98ee/Lib/argparse.py#L682

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2018-06-05 Thread woutgg
woutgg added the comment: Note: the line number in the link is not correct anymore, I'm not sure how to link to a specific commit so here is the source line: `help += ' (default: %(default)s)'`. -- ___ Python tracker

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2018-06-05 Thread woutgg
New submission from woutgg : The word 'default', used to indicate default arguments in the help text (found here: Lib/argparse.py:681) is missing the gettext wrapper, causing it to be untranslatable. -- messages: 318784 nosy: woutgg priority: normal severity: normal status: open