mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[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:
parent
f0c194ad15
commit
3185a1ba11
2 changed files with 3 additions and 1 deletions
|
@ -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 = ''
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Add missing call to localization function in :mod:`argparse`.
|
Loading…
Add table
Add a link
Reference in a new issue