From patchwork Sat Aug 6 04:50:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3,of,4] extdiff: export __doc__ of saved command for translation From: Yuya Nishihara X-Patchwork-Id: 16150 Message-Id: <99a275727f2eb0a69dd9.1470459014@mimosa> To: mercurial-devel@mercurial-scm.org Date: Sat, 06 Aug 2016 13:50:14 +0900 # HG changeset patch # User Yuya Nishihara # Date 1469623344 -32400 # Wed Jul 27 21:42:24 2016 +0900 # Node ID 99a275727f2eb0a69dd9dcd322584b824a5a22af # Parent 0ef9fb589b62779866851c40366a061a8a840106 extdiff: export __doc__ of saved command for translation diff --git a/hgext/extdiff.py b/hgext/extdiff.py --- a/hgext/extdiff.py +++ b/hgext/extdiff.py @@ -385,3 +385,6 @@ def uisetup(ui): 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]