templater: tell hggettext to collect help of template functions

This commit is contained in:
Yuya Nishihara 2015-04-03 21:36:39 +09:00
parent eeace59f46
commit 6c27e6c97a
2 changed files with 4 additions and 0 deletions

View File

@ -118,6 +118,7 @@ i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n/posplit i18n/hggettext
hgext/*.py hgext/*/__init__.py \
mercurial/fileset.py mercurial/revset.py \
mercurial/templatefilters.py mercurial/templatekw.py \
mercurial/templater.py \
mercurial/filemerge.py \
$(DOCFILES) > i18n/hg.pot.tmp
# All strings marked for translation in Mercurial contain

View File

@ -793,3 +793,6 @@ def stylemap(styles, paths=None):
return style, mapfile
raise RuntimeError("No hgweb templates found in %r" % paths)
# tell hggettext to extract docstrings from these functions:
i18nfunctions = funcs.values()