[PATCH 3 of 4] extdiff: export __doc__ of saved command for translation

Yuya Nishihara yuya at tcha.org
Sat Aug 6 00:50:14 EDT 2016


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# 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]


More information about the Mercurial-devel mailing list