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

Pavel Roskin report at bugs.python.org
Sat Feb 21 05:30:53 CET 2015


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 translating strings found in argparse.py. They would lose the translation for the "--version" help without any warning. 
Debugging and fixing that would take some effort.

----------
nosy: +proski

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16786>
_______________________________________


More information about the Python-bugs-list mailing list