mirror of https://github.com/python/cpython
bpo-44865: Fix yet one missing translations in argparse (GH-27668)
This commit is contained in:
parent
de2a73dc46
commit
6087315926
|
@ -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 = ''
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Add missing call to localization function in :mod:`argparse`.
|
Loading…
Reference in New Issue