mercurial/i18n.py
author Ali Gholami Rudi <aligrudi@users.sourceforge.net>
Wed, 16 Jan 2008 19:14:54 +0330
changeset 5929 e160f2312815
parent 3888 660504812daf
child 7650 85ae7aaf08e9
permissions -rw-r--r--
demandimport: handling new relative imports Mercurial does not work on python2.6 because __import__ takes an additional argument called level. This patch merely calls the built-in __import__ when level is passed.

"""
i18n.py - internationalization support for mercurial

Copyright 2005, 2006 Matt Mackall <mpm@selenic.com>

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', fallback=1)
gettext = t.gettext
_ = gettext