-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-37785: argparse uses %s in gettext calls causing xgettext warnings #15161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-37785: argparse uses %s in gettext calls causing xgettext warnings #15161
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor comment.
Overall looks good.
Co-Authored-By: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
Misc/NEWS.d/next/Library/2019-08-07-14-49-22.bpo-37785.y7OlT8.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just modify the NEWS entry. Overall looks good!
Co-Authored-By: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🌮
Thanks! |
Thanks @kulikjak for the PR, and @JulienPalard for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
GH-16080 is a backport of this pull request to the 3.8 branch. |
GH-16081 is a backport of this pull request to the 3.7 branch. |
(cherry picked from commit 42671ae) Co-authored-by: Jakub Kulík <Kulikjak@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.
https://bugs.python.org/issue37785