New submission from Jakub Kulik <kulik...@gmail.com>:

Running xgettext on argparse.py (of any currently supported Python 3.x) return 
following warning:

./Lib/argparse.py: 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.

Same problem was already partially fixed here: 
https://bugs.python.org/issue10528. I guess that this occurrence was either 
missed or is new since.

It would be nice to have this backported to all supported releases but 
considering incompatibility worries in issue linked above, it may be fixed only 
in 3.8+ (which is still nice).

----------
components: Library (Lib)
messages: 349166
nosy: kulikjak
priority: normal
severity: normal
status: open
title: argparse uses %s in gettext calls
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37785>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to