# HG changeset patch # User Yuya Nishihara # Date 1469623344 -32400 # Node ID 14c3afcb1c26354f4ad184dcd5ddd541837eb8bf # Parent 479076db51be9ad5275dc2b257939cc26cab7cd3 extdiff: export __doc__ of saved command for translation diff -r 479076db51be -r 14c3afcb1c26 hgext/extdiff.py --- a/hgext/extdiff.py Wed Jul 27 21:40:42 2016 +0900 +++ b/hgext/extdiff.py Wed Jul 27 21:42:24 2016 +0900 @@ -385,3 +385,6 @@ cmdline += ' ' + args command(cmd, extdiffopts[:], _('hg %s [OPTION]... [FILE]...') % cmd, inferrepo=True)(savedcmd(path, cmdline)) + +# tell hggettext to extract docstrings from these functions: +i18nfunctions = [savedcmd]