[PATCH] i18n: remove translation of debug messages
dsp at php.net
dsp at php.net
Tue Jun 21 16:35:17 UTC 2011
# HG changeset patch
# User David Soria Parra <dsp at php.net>
# Date 1308674113 -7200
# Branch stable
# Node ID f503e243511fdfc742a1d845d3d5d4830b58c18a
# Parent b24d596fcd252f28a55e9dc58311e1de84f80796
i18n: remove translation of debug messages
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4552,7 +4552,7 @@
"""
for f in scmutil.rcpath():
- ui.debug(_('read config from: %s\n') % f)
+ ui.debug('read config from: %s\n' % f)
untrusted = bool(opts.get('untrusted'))
if values:
sections = [v for v in values if '.' not in v]
diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -267,8 +267,8 @@
elif int(m.groups()[0]) <= len(args):
return m.group()
else:
- ui.debug(_("No argument found for substitution "
- "of %i variable in alias '%s' definition.")
+ ui.debug("No argument found for substitution "
+ "of %i variable in alias '%s' definition."
% (int(m.groups()[0]), self.name))
return ''
cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:])
diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -159,8 +159,8 @@
if self.debugflag and not untrusted and self._reportuntrusted:
uvalue = self._ucfg.get(section, name)
if uvalue is not None and uvalue != value:
- self.debug(_("ignoring untrusted configuration option "
- "%s.%s = %s\n") % (section, name, uvalue))
+ self.debug("ignoring untrusted configuration option "
+ "%s.%s = %s\n" % (section, name, uvalue))
return value
def configpath(self, section, name, default=None, untrusted=False):
@@ -330,8 +330,8 @@
if self.debugflag and not untrusted and self._reportuntrusted:
for k, v in self._ucfg.items(section):
if self._tcfg.get(section, k) != v:
- self.debug(_("ignoring untrusted configuration option "
- "%s.%s = %s\n") % (section, k, v))
+ self.debug("ignoring untrusted configuration option "
+ "%s.%s = %s\n" % (section, k, v))
return items
def walkconfig(self, untrusted=False):
More information about the Mercurial-devel
mailing list