You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the "default" help text for BooleanOptionalAction at 3.9/Lib/argparse.py:878 (which, incidentally, will be duplicated when used with ArgumentDefaultsHelpFormatter);
the formatted section heading at 3.9/Lib/argparse.py:225: if the heading itself is translatable, the string "%(heading)s:" is not. More precisely, the colon right after the heading might also require localization, as some languages (e.g., French) typeset colons with a preceding non-breaking space (i.e., "%(heading)s :"). (Okay, I'll admit that this is nitpicking!)
I'll submit a pull request with proposed fixes for these strings.
As for bpo-44864, I've just added a short blurb to the PR.
The fact that a few strings are missing calls to the localization function (whereas most of the other strings in argparse are already localized) might push this issue toward the bug-fix side, but, as for bpo-44864, this is very minor and I really don't mind if it only gets merged into future releases.
Activity
jdetrey commentedon Aug 8, 2021
Dear all,
There are a few strings in the
argparsemodule which are not translatable through thegettextAPI.Some have already been reported:
However, some others remain:
BooleanOptionalActionat 3.9/Lib/argparse.py:878 (which, incidentally, will be duplicated when used withArgumentDefaultsHelpFormatter);I'll submit a pull request with proposed fixes for these strings.
Kind regards,
Jérémie.
2 remaining items
jdetrey commentedon Aug 24, 2021
Hi again!
As for bpo-44864, I've just added a short blurb to the PR.
The fact that a few strings are missing calls to the localization function (whereas most of the other strings in
argparseare already localized) might push this issue toward the bug-fix side, but, as for bpo-44864, this is very minor and I really don't mind if it only gets merged into future releases.Thanks!
Kind regards,
Jérémie.