diff mercurial/i18n.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
children fbf2b10011aa
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/i18n.py	Tue Oct 18 18:37:48 2005 -0700
@@ -0,0 +1,12 @@
+"""
+i18n.py - internationalization support for mercurial
+
+Copyright 2005 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', '/usr/share/locale', fallback=1)
+gettext = t.gettext