Skip to content

Commit c562f5a

Browse files
[3.11] bpo-44865: Fix yet one missing translations in argparse (GH-27668) (GH-115975)
(cherry picked from commit 6087315) Co-authored-by: Jérémie Detrey <[email protected]>
1 parent f8a6a1c commit c562f5a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/argparse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ def format_help(self):
225225
# add the heading if the section was non-empty
226226
if self.heading is not SUPPRESS and self.heading is not None:
227227
current_indent = self.formatter._current_indent
228-
heading = '%*s%s:\n' % (current_indent, '', self.heading)
228+
heading_text = _('%(heading)s:') % dict(heading=self.heading)
229+
heading = '%*s%s\n' % (current_indent, '', heading_text)
229230
else:
230231
heading = ''
231232

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add missing call to localization function in :mod:`argparse`.

0 commit comments

Comments
 (0)