i18n: import _ instead of gettext
authorMartin Geisler <mg@daimi.au.dk>
Tue, 21 Oct 2008 17:47:49 +0200
changeset 7225 59b4ae211584
parent 7224 12a90281d83d
child 7226 b71a52f101dc
i18n: import _ instead of gettext
hgext/inotify/__init__.py
hgext/inotify/client.py
hgext/win32text.py
mercurial/hgweb/hgwebdir_mod.py
mercurial/hgweb/server.py
--- a/hgext/inotify/__init__.py	Thu Oct 23 19:27:25 2008 +0200
+++ b/hgext/inotify/__init__.py	Tue Oct 21 17:47:49 2008 +0200
@@ -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
--- a/hgext/inotify/client.py	Thu Oct 23 19:27:25 2008 +0200
+++ b/hgext/inotify/client.py	Tue Oct 21 17:47:49 2008 +0200
@@ -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
--- a/hgext/win32text.py	Thu Oct 23 19:27:25 2008 +0200
+++ b/hgext/win32text.py	Tue Oct 21 17:47:49 2008 +0200
@@ -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
--- a/mercurial/hgweb/hgwebdir_mod.py	Thu Oct 23 19:27:25 2008 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Tue Oct 21 17:47:49 2008 +0200
@@ -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,\
--- a/mercurial/hgweb/server.py	Thu Oct 23 19:27:25 2008 +0200
+++ b/mercurial/hgweb/server.py	Tue Oct 21 17:47:49 2008 +0200
@@ -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