commands: enable 'hg help' translation of extensions
authorTobias Bell <tobias.bell@gmail.com>
Sat, 04 Apr 2009 20:16:01 +0200
changeset 8007 a4defdc4f5dc
parent 8006 36a1219a13ab
child 8008 36924a4711e9
commands: enable 'hg help' translation of extensions
mercurial/commands.py
--- 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()))