[PATCH] i18n, churn: mark string for translation

Martin Geisler mg at daimi.au.dk
Tue Sep 23 15:03:06 CDT 2008


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1222200100 -7200
# Node ID 5b321d3fd9bc347c5b3adc4e68c826ebdf3e4cad
# Parent  25961e53a07ff57a28b10a837aa8fb98c27617e3
i18n, churn: mark string for translation

diff --git a/hgext/churn.py b/hgext/churn.py
--- a/hgext/churn.py
+++ b/hgext/churn.py
@@ -6,7 +6,7 @@
 # of the GNU General Public License, incorporated herein by reference.
 '''allow graphing the number of lines changed per contributor'''
 
-from mercurial.i18n import gettext as _
+from mercurial.i18n import _
 from mercurial import patch, cmdutil, util, node
 import os, sys
 
@@ -115,5 +115,5 @@
      [('r', 'rev', [], _('limit statistics to the specified revisions')),
       ('', 'aliases', '', _('file with email aliases')),
       ('', 'progress', None, _('show progress'))],
-    'hg churn [-r REVISIONS] [--aliases FILE] [--progress]'),
+    _('hg churn [-r REVISIONS] [--aliases FILE] [--progress]')),
 }


More information about the Mercurial-devel mailing list