LPCManager.py
changeset 18 17e6293e9191
parent 17 7228610e2273
child 19 1ef6f6fddaa8
--- a/LPCManager.py	Fri Sep 07 18:32:41 2012 +0200
+++ b/LPCManager.py	Fri Sep 07 20:11:05 2012 +0200
@@ -52,11 +52,18 @@
 app.SetAppName('beremiz')
 wx.InitAllImageHandlers()
 
-# Import module for internationalization
-import gettext
+_base_folder = os.path.split(sys.path[0])[0]
+sys.path.append(os.path.join(_base_folder, "beremiz"))
+
+from util.TranslationCatalogs import AddCatalog, locale
+AddCatalog(os.path.join(CWD, "locale"))
 
 if __name__ == '__main__':
-    __builtin__.__dict__['_'] = wx.GetTranslation#unicode_translation
+    # Import module for internationalization
+    import gettext
+    
+    __builtin__.__dict__['loc'] = locale
+    __builtin__.__dict__['_'] = wx.GetTranslation
 
 _base_path = os.path.split(__file__)[0]
 import features