diff gamelib/constants.py @ 782:6a3440c8be8d pyntnclick

The title needs to be lazily translated. It's evaluated before we set up gettext
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 19:13:07 +0200
parents 5fb962434159
children bdaffaa8b6bf
line wrap: on
line diff
--- a/gamelib/constants.py	Sat Jan 26 18:54:34 2013 +0200
+++ b/gamelib/constants.py	Sat Jan 26 19:13:07 2013 +0200
@@ -1,5 +1,8 @@
 from pyntnclick.constants import GameConstants
-from pyntnclick.i18n import _
+
+# Anything here has to be explicitly translated
+# This module is imported before we've set up i18n
+_ = lambda x: x
 
 
 class SSConstants(GameConstants):