mercurial/i18n.py
changeset 10455 40dfd46d098f
parent 10263 25e572394f5c
child 11390 11cd65611f3f
--- a/mercurial/i18n.py	Sat Feb 13 23:24:27 2010 -0600
+++ b/mercurial/i18n.py	Sun Feb 07 14:56:18 2010 +0100
@@ -48,5 +48,8 @@
         # An unknown encoding results in a LookupError.
         return message
 
-_ = gettext
+if 'HGPLAIN' in os.environ:
+    _ = lambda message: message
+else:
+    _ = gettext