Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 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 | e6b45e9a75dc |
children | e7bf09acd410 7bf48bc7de23 |
comparison
equal
deleted
inserted
replaced
16468:2fb521d75dc2 | 16469:dd68c972d089 |
---|---|
804 node=revnode_hex, changenav=changenav) | 804 node=revnode_hex, changenav=changenav) |
805 | 805 |
806 def _getdoc(e): | 806 def _getdoc(e): |
807 doc = e[0].__doc__ | 807 doc = e[0].__doc__ |
808 if doc: | 808 if doc: |
809 doc = doc.split('\n')[0] | 809 doc = _(doc).split('\n')[0] |
810 else: | 810 else: |
811 doc = _('(no help text available)') | 811 doc = _('(no help text available)') |
812 return doc | 812 return doc |
813 | 813 |
814 def help(web, req, tmpl): | 814 def help(web, req, tmpl): |