[New-bugs-announce] [issue37785] argparse uses %s in gettext calls

Jakub Kulik report at bugs.python.org
Wed Aug 7 08:49:16 EDT 2019


New submission from Jakub Kulik <kulikjak at 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 <report at bugs.python.org>
<https://bugs.python.org/issue37785>
_______________________________________


More information about the New-bugs-announce mailing list