Mercurial > hg-stable
changeset 8007:a4defdc4f5dc
commands: enable 'hg help' translation of extensions
author | Tobias Bell <tobias.bell@gmail.com> |
---|---|
date | Sat, 04 Apr 2009 20:16:01 +0200 |
parents | 36a1219a13ab |
children | 36924a4711e9 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Apr 05 00:57:30 2009 +0200 +++ b/mercurial/commands.py Sat Apr 04 20:16:01 2009 +0200 @@ -1425,7 +1425,7 @@ 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()))