# HG changeset patch # User Benoit Boissinot + +This software may be used and distributed according to the terms +of the GNU General Public License, incorporated herein by reference. +""" + +import gettext +t = gettext.translation('hg', '/usr/share/locale', fallback=1) +gettext = t.gettext diff -r 9a70776e355e -r cf9a1233738a mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Oct 18 17:57:27 2005 -0700 +++ b/mercurial/localrepo.py Tue Oct 18 18:37:48 2005 -0700 @@ -8,6 +8,7 @@ import struct, os, util import filelog, manifest, changelog, dirstate, repo from node import * +from i18n import gettext as _ from demandload import * demandload(globals(), "re lock transaction tempfile stat mdiff errno") diff -r 9a70776e355e -r cf9a1233738a mercurial/manifest.py --- a/mercurial/manifest.py Tue Oct 18 17:57:27 2005 -0700 +++ b/mercurial/manifest.py Tue Oct 18 18:37:48 2005 -0700 @@ -7,6 +7,7 @@ import sys, struct from revlog import * +from i18n import gettext as _ from demandload import * demandload(globals(), "bisect") diff -r 9a70776e355e -r cf9a1233738a mercurial/revlog.py --- a/mercurial/revlog.py Tue Oct 18 17:57:27 2005 -0700 +++ b/mercurial/revlog.py Tue Oct 18 18:37:48 2005 -0700 @@ -11,6 +11,7 @@ """ from node import * +from i18n import gettext as _ from demandload import demandload demandload(globals(), "binascii errno heapq mdiff sha struct zlib") diff -r 9a70776e355e -r cf9a1233738a mercurial/sshrepo.py --- a/mercurial/sshrepo.py Tue Oct 18 17:57:27 2005 -0700 +++ b/mercurial/sshrepo.py Tue Oct 18 18:37:48 2005 -0700 @@ -7,6 +7,7 @@ from node import * from remoterepo import * +from i18n import gettext as _ from demandload import * demandload(globals(), "hg os re stat") diff -r 9a70776e355e -r cf9a1233738a mercurial/transaction.py --- a/mercurial/transaction.py Tue Oct 18 17:57:27 2005 -0700 +++ b/mercurial/transaction.py Tue Oct 18 18:37:48 2005 -0700 @@ -13,6 +13,7 @@ import os import util +from i18n import gettext as _ class transaction: def __init__(self, report, opener, journal, after=None): diff -r 9a70776e355e -r cf9a1233738a mercurial/ui.py --- a/mercurial/ui.py Tue Oct 18 17:57:27 2005 -0700 +++ b/mercurial/ui.py Tue Oct 18 18:37:48 2005 -0700 @@ -6,6 +6,7 @@ # of the GNU General Public License, incorporated herein by reference. import os, ConfigParser +from i18n import gettext as _ from demandload import * demandload(globals(), "re socket sys util") diff -r 9a70776e355e -r cf9a1233738a mercurial/util.py --- a/mercurial/util.py Tue Oct 18 17:57:27 2005 -0700 +++ b/mercurial/util.py Tue Oct 18 18:37:48 2005 -0700 @@ -11,6 +11,7 @@ """ import os, errno +from i18n import gettext as _ from demandload import * demandload(globals(), "re cStringIO shutil popen2 tempfile threading time")