Skip to content

Commit

Permalink
[3.11] bpo-44865: Fix yet one missing translations in argparse (GH-27668
Browse files Browse the repository at this point in the history
) (GH-115975)

(cherry picked from commit 6087315)

Co-authored-by: Jérémie Detrey <[email protected]>
  • Loading branch information
miss-islington and jdetrey authored Feb 26, 2024
1 parent f8a6a1c commit c562f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ def format_help(self):
# add the heading if the section was non-empty
if self.heading is not SUPPRESS and self.heading is not None:
current_indent = self.formatter._current_indent
heading = '%*s%s:\n' % (current_indent, '', self.heading)
heading_text = _('%(heading)s:') % dict(heading=self.heading)
heading = '%*s%s\n' % (current_indent, '', heading_text)
else:
heading = ''

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing call to localization function in :mod:`argparse`.

0 comments on commit c562f5a

Please sign in to comment.