From 6c27e6c97a4a58c50fe7a24f8454fbebc4183467 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Fri, 3 Apr 2015 21:36:39 +0900 Subject: [PATCH] templater: tell hggettext to collect help of template functions --- Makefile | 1 + mercurial/templater.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 7fd0923866..a23d5ecb85 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/mercurial/templater.py b/mercurial/templater.py index fc4873b208..ea65b0204d 100644 --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -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()