[issue16786] argparse doesn't offer localization interface for "version" action

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.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue16786] argparse doesn't offer localization interface for "version" action

2021-08-08 Thread Jérémie Detrey
Jérémie Detrey added the comment: Dear all, As commented on PR 12711 (https://github.com/python/cpython/pull/12711#pullrequestreview-724899323), there is a slight issue with the proposed patch, as it translates the `--version` help string as soon as the `argparse` module is imported (at whic

[issue16786] argparse doesn't offer localization interface for "version" action

2019-04-06 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +12637 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16786] argparse doesn't offer localization interface for "version" action

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16786] argparse doesn't offer localization interface for "version" action

2015-02-20 Thread Pavel Roskin
Pavel Roskin added the comment: I have tested the patch. It fixes the problem for me. You are right, new programs would just supply translated help to the version action. No effort would be saved. But the programs updated from the deprecated syntax may rely on a separate string list for trans

[issue16786] argparse doesn't offer localization interface for "version" action

2014-07-13 Thread paul j3
paul j3 added the comment: In this patch I added the '_()' localization to the '_VersionAction' default 'help'. While this is a straight forward change, I haven't tested it. It does run test_argparse.py, but that doesn't have any tests for localization. According to the discussion here: http

[issue16786] argparse doesn't offer localization interface for "version" action

2014-07-13 Thread Mark Lawrence
Mark Lawrence added the comment: @Thorsten sorry about the delay involved here. -- nosy: +BreamoreBoy, paul.j3 versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker __

[issue16786] argparse doesn't offer localization interface for "version" action

2012-12-26 Thread R. David Murray
Changes by R. David Murray : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16786] argparse doesn't offer localization interface for "version" action

2012-12-26 Thread Thorsten Kampe
New submission from Thorsten Kampe: The - deprecated - "version" keyword for argparse.ArgumentParser allowed for localization of the "show program's version number and exit" help text for -v/--version (output of "-h"/"--help") The new version action for add_argument does not allow this - resul