Skip to content

Argparse missing translates #89162

Closed
Closed

Description

@softsolsolutions
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']

Activity

  1. softsolsolutions commented on Aug 25, 2021

    softsolsolutionsmannequin
    MannequinAuthor

    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

  2. added
    3.11only security fixes
    type-bugAn unexpected behavior, bug, or error
    and removed
    performancePerformance or resource usage
    on Dec 15, 2021
  3. transferred this issue fromon Apr 10, 2022
  4. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Nov 23, 2023
  5. savannahostrowski commented on Sep 21, 2024

    @savannahostrowski
    Member
  6. moved this from Bugs to Doc issues in Argparse issueson Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10 (EOL)end of life3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions