summaryrefslogtreecommitdiffstats
path: root/Lib/argparse.py
diff options
context:
space:
mode:
authorJérémie Detrey <jdetrey@users.noreply.github.com>2024-02-26 22:05:01 (GMT)
committerGitHub <noreply@github.com>2024-02-26 22:05:01 (GMT)
commit6087315926fb185847a52559af063cc7d337d978 (patch)
tree47c489ef199fb092e69b9bd81c6fcbae7e5b0d70 /Lib/argparse.py
parentde2a73dc4649b110351fce789de0abb14c460b97 (diff)
downloadcpython-6087315926fb185847a52559af063cc7d337d978.zip
cpython-6087315926fb185847a52559af063cc7d337d978.tar.gz
cpython-6087315926fb185847a52559af063cc7d337d978.tar.bz2
bpo-44865: Fix yet one missing translations in argparse (GH-27668)
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 c16f538..4200dd5 100644
--- a/Lib/argparse.py
+++ b/Lib/argparse.py
@@ -223,7 +223,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 = ''