Skip to content

Commit

Permalink
bpo-44865: Fix yet one missing translations in argparse (GH-27668)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdetrey authored Feb 26, 2024
1 parent de2a73d commit 6087315
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 @@ -223,7 +223,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 6087315

Please sign in to comment.