##// END OF EJS Templates
i18n: import _ instead of gettext
Martin Geisler -
r7225:59b4ae21 default
parent child Browse files
Show More
@@ -11,7 +11,7 b''
11
11
12 # todo: socket permissions
12 # todo: socket permissions
13
13
14 from mercurial.i18n import gettext as _
14 from mercurial.i18n import _
15 from mercurial import cmdutil, util
15 from mercurial import cmdutil, util
16 import client, errno, os, server, socket
16 import client, errno, os, server, socket
17 from weakref import proxy
17 from weakref import proxy
@@ -6,7 +6,7 b''
6 # This software may be used and distributed according to the terms
6 # This software may be used and distributed according to the terms
7 # of the GNU General Public License, incorporated herein by reference.
7 # of the GNU General Public License, incorporated herein by reference.
8
8
9 from mercurial.i18n import gettext as _
9 from mercurial.i18n import _
10 from mercurial import ui
10 from mercurial import ui
11 import common
11 import common
12 import os, select, socket, stat, struct, sys
12 import os, select, socket, stat, struct, sys
@@ -27,7 +27,7 b''
27 # pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
27 # pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
28 # # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
28 # # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
29
29
30 from mercurial.i18n import gettext as _
30 from mercurial.i18n import _
31 from mercurial.node import bin, short
31 from mercurial.node import bin, short
32 from mercurial import util
32 from mercurial import util
33 import re
33 import re
@@ -7,7 +7,7 b''
7 # of the GNU General Public License, incorporated herein by reference.
7 # of the GNU General Public License, incorporated herein by reference.
8
8
9 import os
9 import os
10 from mercurial.i18n import gettext as _
10 from mercurial.i18n import _
11 from mercurial.repo import RepoError
11 from mercurial.repo import RepoError
12 from mercurial import ui, hg, util, templater, templatefilters
12 from mercurial import ui, hg, util, templater, templatefilters
13 from common import ErrorResponse, get_mtime, staticfile, style_map, paritygen,\
13 from common import ErrorResponse, get_mtime, staticfile, style_map, paritygen,\
@@ -11,7 +11,7 b' from mercurial import hg, util'
11 from mercurial.repo import RepoError
11 from mercurial.repo import RepoError
12 from hgweb_mod import hgweb
12 from hgweb_mod import hgweb
13 from hgwebdir_mod import hgwebdir
13 from hgwebdir_mod import hgwebdir
14 from mercurial.i18n import gettext as _
14 from mercurial.i18n import _
15
15
16 def _splitURI(uri):
16 def _splitURI(uri):
17 """ Return path and query splited from uri
17 """ Return path and query splited from uri
General Comments 0
You need to be logged in to leave comments. Login now