comparison mercurial/hgweb.py @ 1400:cf9a1233738a

i18n first part: make '_' available for files who need it
author Benoit Boissinot <benoit.boissinot@ens-lyon.org
date Tue, 18 Oct 2005 18:37:48 -0700
parents b6d4ebebc35c
children 9d2c2e6b32b5
comparison
equal deleted inserted replaced
1399:9a70776e355e 1400:cf9a1233738a
9 import os, cgi, sys 9 import os, cgi, sys
10 from demandload import demandload 10 from demandload import demandload
11 demandload(globals(), "mdiff time re socket zlib errno ui hg ConfigParser") 11 demandload(globals(), "mdiff time re socket zlib errno ui hg ConfigParser")
12 demandload(globals(), "zipfile tempfile StringIO tarfile BaseHTTPServer util") 12 demandload(globals(), "zipfile tempfile StringIO tarfile BaseHTTPServer util")
13 from node import * 13 from node import *
14 from i18n import gettext as _
14 15
15 def templatepath(): 16 def templatepath():
16 for f in "templates", "../templates": 17 for f in "templates", "../templates":
17 p = os.path.join(os.path.dirname(__file__), f) 18 p = os.path.join(os.path.dirname(__file__), f)
18 if os.path.isdir(p): 19 if os.path.isdir(p):