Skip to content
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

Argparse missing translates #89162

Closed
softsolsolutions mannequin opened this issue Aug 25, 2021 · 2 comments
Closed

Argparse missing translates #89162

softsolsolutions mannequin opened this issue Aug 25, 2021 · 2 comments
Labels
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@softsolsolutions
Copy link
Mannequin

softsolsolutions mannequin commented Aug 25, 2021

BPO 44999
Nosy @softsol solutions

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2021-08-25.10:14:59.169>
labels = ['type-bug', '3.9', '3.10', '3.11']
title = 'Argparse missing translates'
updated_at = <Date 2021-12-15.19:50:28.261>
user = 'https://github.com/softsolsolutions'

bugs.python.org fields:

activity = <Date 2021-12-15.19:50:28.261>
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = []
creation = <Date 2021-08-25.10:14:59.169>
creator = 'santhu_reddy12'
dependencies = []
files = []
hgrepos = []
issue_num = 44999
keywords = []
message_count = 1.0
messages = ['400251']
nosy_count = 1.0
nosy_names = ['santhu_reddy12']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue44999'
versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

@softsolsolutions
Copy link
Mannequin Author

softsolsolutions mannequin commented Aug 25, 2021

Dear all,

There are a few strings in the argparse module which are not translatable through the gettext API.

Some have already been reported:

However, some others remain:

  • the "default" help text for BooleanOptionalAction at Lib/argparse.py:878 (which, incidentally, will be duplicated when used with ArgumentDefaultsHelpFormatter);
  • the "argument %(argument_name)s: %(message)s" error message at Lib/argparse.py:751;
  • the formatted section heading at 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.

Kind regards,
Santhosh

@softsolsolutions softsolsolutions mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) performance Performance or resource usage 3.9 only security fixes labels Aug 25, 2021
@pablogsal pablogsal removed the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Aug 25, 2021
@iritkatriel iritkatriel added 3.10 only security fixes 3.11 only security fixes type-bug An unexpected behavior, bug, or error and removed performance Performance or resource usage labels Dec 15, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@iritkatriel iritkatriel added the stdlib Python modules in the Lib dir label Nov 23, 2023
@savannahostrowski
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
Status: Doc issues
Status: Done
Development

No branches or pull requests

3 participants