changeset 13698:f30ce5983896

i18n: register new template keywords for translation
author Patrick Mezard <pmezard@gmail.com>
date Sat, 19 Mar 2011 19:50:55 +0100
parents eaee75036725
children d3c0e0033f13
files hgext/convert/__init__.py hgext/transplant.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]