bpo-44865: Fix yet one missing translations in argparse (GH-27668)

This commit is contained in:
Jérémie Detrey 2024-02-26 23:05:01 +01:00 committed by GitHub
parent de2a73dc46
commit 6087315926
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -223,7 +223,8 @@ class HelpFormatter(object):
# add the heading if the section was non-empty # add the heading if the section was non-empty
if self.heading is not SUPPRESS and self.heading is not None: if self.heading is not SUPPRESS and self.heading is not None:
current_indent = self.formatter._current_indent 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: else:
heading = '' heading = ''

View File

@ -0,0 +1 @@
Add missing call to localization function in :mod:`argparse`.