i18n: register new template keywords for translation
authorPatrick Mezard <pmezard@gmail.com>
Sat, 19 Mar 2011 19:50:55 +0100
changeset 13698 f30ce5983896
parent 13697 eaee75036725
child 13699 d3c0e0033f13
i18n: register new template keywords for translation
hgext/convert/__init__.py
hgext/transplant.py
--- a/hgext/convert/__init__.py	Sat Mar 19 01:34:49 2011 -0500
+++ b/hgext/convert/__init__.py	Sat Mar 19 19:50:55 2011 +0100
@@ -362,3 +362,6 @@
     templatekw.keywords['svnrev'] = kwsvnrev
     templatekw.keywords['svnpath'] = kwsvnpath
     templatekw.keywords['svnuuid'] = kwsvnuuid
+
+# tell hggettext to extract docstrings from these functions:
+i18nfunctions = [kwsvnrev, kwsvnpath, kwsvnuuid]
--- a/hgext/transplant.py	Sat Mar 19 01:34:49 2011 -0500
+++ b/hgext/transplant.py	Sat Mar 19 19:50:55 2011 +0100
@@ -640,4 +640,4 @@
 }
 
 # tell hggettext to extract docstrings from these functions:
-i18nfunctions = [revsettransplanted]
+i18nfunctions = [revsettransplanted, kwtransplanted]