# HG changeset patch # User Tobias Bell # Date 2009-04-04 18:16:01 # Node ID a4defdc4f5dc2d28eebaf39e9fd17ec4312611f7 # Parent 36a1219a13ab1371a86f181722f566f93bc98087 commands: enable 'hg help' translation of extensions diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1425,7 +1425,7 @@ def help_(ui, name=None, with_version=Fa maxlength = 0 exthelps = [] for ename, ext in exts: - doc = (ext.__doc__ or _('(no help text available)')) + doc = (gettext(ext.__doc__) or _('(no help text available)')) ename = ename.split('.')[-1] maxlength = max(len(ename), maxlength) exthelps.append((ename, doc.splitlines(0)[0].strip()))