[PATCH] i18n: import _ instead of gettext
Martin Geisler
mg at daimi.au.dk
Tue Oct 21 11:16:31 CDT 2008
# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1224604069 -7200
# Node ID decdcb7d890642a72704443b8bb7cc215162901f
# Parent f60730693efc7ab107b666394015818b8f4d3022
i18n: import _ instead of gettext
diff --git a/hgext/inotify/__init__.py b/hgext/inotify/__init__.py
--- a/hgext/inotify/__init__.py
+++ b/hgext/inotify/__init__.py
@@ -11,7 +11,7 @@
# todo: socket permissions
-from mercurial.i18n import gettext as _
+from mercurial.i18n import _
from mercurial import cmdutil, util
import client, errno, os, server, socket
from weakref import proxy
diff --git a/hgext/inotify/client.py b/hgext/inotify/client.py
--- a/hgext/inotify/client.py
+++ b/hgext/inotify/client.py
@@ -6,7 +6,7 @@
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.
-from mercurial.i18n import gettext as _
+from mercurial.i18n import _
from mercurial import ui
import common
import os, select, socket, stat, struct, sys
diff --git a/hgext/win32text.py b/hgext/win32text.py
--- a/hgext/win32text.py
+++ b/hgext/win32text.py
@@ -27,7 +27,7 @@
# pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
# # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
-from mercurial.i18n import gettext as _
+from mercurial.i18n import _
from mercurial.node import bin, short
from mercurial import util
import re
diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py
+++ b/mercurial/hgweb/hgwebdir_mod.py
@@ -7,7 +7,7 @@
# of the GNU General Public License, incorporated herein by reference.
import os
-from mercurial.i18n import gettext as _
+from mercurial.i18n import _
from mercurial.repo import RepoError
from mercurial import ui, hg, util, templater, templatefilters
from common import ErrorResponse, get_mtime, staticfile, style_map, paritygen,\
diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -11,7 +11,7 @@
from mercurial.repo import RepoError
from hgweb_mod import hgweb
from hgwebdir_mod import hgwebdir
-from mercurial.i18n import gettext as _
+from mercurial.i18n import _
def _splitURI(uri):
""" Return path and query splited from uri
More information about the Mercurial-devel
mailing list