diff mercurial/templater.py @ 24601:d80819f67d59

templater: tell hggettext to collect help of template functions
author Yuya Nishihara <yuya@tcha.org>
date Fri, 03 Apr 2015 21:36:39 +0900
parents 90e3f5d22dad
children 10a13da8840d
line wrap: on
line diff
--- 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()