# HG changeset patch # User Patrick Mezard # Date 1300560655 -3600 # Node ID f30ce5983896a8b414a77d5153fd2ae7a980ca26 # Parent eaee75036725f1869ff272deb353505b696a5cdd i18n: register new template keywords for translation diff -r eaee75036725 -r f30ce5983896 hgext/convert/__init__.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] diff -r eaee75036725 -r f30ce5983896 hgext/transplant.py --- 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]