cwconfig.py
brancholdstable
changeset 6729 1a423eaee782
parent 6659 6205927e927a
child 6741 b9ffecd0316a
--- a/cwconfig.py	Fri Dec 03 11:24:48 2010 +0000
+++ b/cwconfig.py	Tue Nov 09 17:17:45 2010 +0100
@@ -947,6 +947,9 @@
     def __init__(self, appid, debugmode=False):
         self.appid = appid
         CubicWebNoAppConfiguration.__init__(self, debugmode)
+        fake_gettext = (unicode, lambda ctx, msgid: unicode(msgid))
+        for lang in self.available_languages():
+            self.translations[lang] = fake_gettext
         self._cubes = None
         self.load_file_configuration(self.main_config_file())