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