Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 24859:64e3f97bdf08 stable
i18n: extract doc string of each web commands as translatable one
Before this patch, doc string of each web commands isn't extracted as
translatable one, even though web commands are listed up in "hg help
hgweb".
This patch adds "mercurial/hgweb/webcommands.py" on to arguments of
"i18n/hggettext". "i18nfunctions" added into "webcommands.py" is used
by "i18n/hggettext" to get the list of functions having translatable
doc string.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 28 Apr 2015 00:38:16 +0900 |
parents | bbf1ae6b6a44 |
children | 6d97ca3f05ba |
comparison
equal
deleted
inserted
replaced
24858:a99931201d1b | 24859:64e3f97bdf08 |
---|---|
1316 try: | 1316 try: |
1317 doc = helpmod.help_(u, topicname) | 1317 doc = helpmod.help_(u, topicname) |
1318 except error.UnknownCommand: | 1318 except error.UnknownCommand: |
1319 raise ErrorResponse(HTTP_NOT_FOUND) | 1319 raise ErrorResponse(HTTP_NOT_FOUND) |
1320 return tmpl('help', topic=topicname, doc=doc) | 1320 return tmpl('help', topic=topicname, doc=doc) |
1321 | |
1322 # tell hggettext to extract docstrings from these functions: | |
1323 i18nfunctions = commands.values() |