[3.12] bpo-44865: Fix yet one missing translations in argparse (GH-27668) (GH-115974)

(cherry picked from commit 6087315926)

Co-authored-by: Jérémie Detrey <jdetrey@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-02-27 00:09:57 +01:00 committed by GitHub
parent f0c194ad15
commit 3185a1ba11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -225,7 +225,8 @@ class HelpFormatter(object):
# 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 = ''

View file

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