templater: tell hggettext to collect help of template functions
authorYuya Nishihara <yuya@tcha.org>
Fri, 03 Apr 2015 21:36:39 +0900
changeset 24601 d80819f67d59
parent 24600 ea24cf92557a
child 24602 201caa10536b
templater: tell hggettext to collect help of template functions
Makefile
mercurial/templater.py
--- a/Makefile	Tue Mar 10 09:57:42 2015 -0700
+++ b/Makefile	Fri Apr 03 21:36:39 2015 +0900
@@ -118,6 +118,7 @@
 	  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
--- a/mercurial/templater.py	Tue Mar 10 09:57:42 2015 -0700
+++ b/mercurial/templater.py	Fri Apr 03 21:36:39 2015 +0900
@@ -793,3 +793,6 @@
                     return style, mapfile
 
     raise RuntimeError("No hgweb templates found in %r" % paths)
+
+# tell hggettext to extract docstrings from these functions:
+i18nfunctions = funcs.values()