# HG changeset patch # User Patrick Mezard # Date 2011-03-19 18:50:55 # Node ID f30ce5983896a8b414a77d5153fd2ae7a980ca26 # Parent eaee75036725f1869ff272deb353505b696a5cdd i18n: register new template keywords for translation diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py --- a/hgext/convert/__init__.py +++ b/hgext/convert/__init__.py @@ -362,3 +362,6 @@ def extsetup(ui): 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 --git a/hgext/transplant.py b/hgext/transplant.py --- a/hgext/transplant.py +++ b/hgext/transplant.py @@ -640,4 +640,4 @@ cmdtable = { } # tell hggettext to extract docstrings from these functions: -i18nfunctions = [revsettransplanted] +i18nfunctions = [revsettransplanted, kwtransplanted]