mercurial/i18n.py
author Matt Mackall <mpm@selenic.com>
Mon, 24 Sep 2007 12:41:54 -0500
changeset 5327 f46ab9cacd3c
parent 3890 660504812daf
permissions -rw-r--r--
dirstate: speed up read and write read: - single call to len(st) - fewer assignments for position tracking - don't split apart tuple from unpack - use a literal for the unpack spec write: - localize variables and functions - avoid copied function call - use % for string concatenation

"""
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