Skip to content

Commit 6087315

Browse files
authored
bpo-44865: Fix yet one missing translations in argparse (GH-27668)
1 parent de2a73d commit 6087315

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/argparse.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ def format_help(self):
223223
# add the heading if the section was non-empty
224224
if self.heading is not SUPPRESS and self.heading is not None:
225225
current_indent = self.formatter._current_indent
226-
heading = '%*s%s:\n' % (current_indent, '', self.heading)
226+
heading_text = _('%(heading)s:') % dict(heading=self.heading)
227+
heading = '%*s%s\n' % (current_indent, '', heading_text)
227228
else:
228229
heading = ''
229230

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)