summaryrefslogtreecommitdiffstats
path: root/Lib/argparse.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-02-26 23:09:57 (GMT)
committerGitHub <noreply@github.com>2024-02-26 23:09:57 (GMT)
commit3185a1ba117631aaf6886f87892045f89cebddbe (patch)
tree8365d4f7f04a02b5569bdba4e94d27558c0075d5 /Lib/argparse.py
parentf0c194ad156f7b8056f23ca3ce60d580f19537d7 (diff)
downloadcpython-3185a1ba117631aaf6886f87892045f89cebddbe.zip
cpython-3185a1ba117631aaf6886f87892045f89cebddbe.tar.gz
cpython-3185a1ba117631aaf6886f87892045f89cebddbe.tar.bz2
[3.12] bpo-44865: Fix yet one missing translations in argparse (GH-27668) (GH-115974)
(cherry picked from commit 6087315926fb185847a52559af063cc7d337d978) Co-authored-by: Jérémie Detrey <jdetrey@users.noreply.github.com>
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r--Lib/argparse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py
index f23e2a4..120cb6c 100644
--- a/Lib/argparse.py
+++ b/Lib/argparse.py
@@ -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 = ''