Mercurial > hg-stable
changeset 16469:dd68c972d089 stable
i18n: show localized messages for commands/extensions in hgweb help top (issue3383)
in hgweb help top page, help topics are localized, but abstracts of
commands and extensions are not, although these are already
translated.
it is because localized messages for them should be explicitly looked
up by original ones.
this patch looks localized messages up for each commands/extensions.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Thu, 19 Apr 2012 20:54:56 +0900 |
parents | 2fb521d75dc2 |
children | b2e1da5db6df |
files | mercurial/hgweb/webcommands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Thu Apr 19 23:36:42 2012 +0200 +++ b/mercurial/hgweb/webcommands.py Thu Apr 19 20:54:56 2012 +0900 @@ -806,7 +806,7 @@ def _getdoc(e): doc = e[0].__doc__ if doc: - doc = doc.split('\n')[0] + doc = _(doc).split('\n')[0] else: doc = _('(no help text available)') return doc