PLCOpenEditor.py
changeset 1329 9d0cb01312f0
parent 1312 250c3ae0787c
child 1330 96b242e4c59d
--- a/PLCOpenEditor.py	Thu Sep 26 20:47:36 2013 +0900
+++ b/PLCOpenEditor.py	Fri Sep 27 09:32:39 2013 +0900
@@ -276,6 +276,7 @@
             self.Controler = PLCControler()
             self.Controler.CreateNewProject(properties)
             self.LibraryPanel.SetController(self.Controler)
+            self.ProjectTree.Enable(True)
             self._Refresh(TITLE, FILEMENU, EDITMENU, PROJECTTREE, POUINSTANCEVARIABLESPANEL, 
                           LIBRARYTREE)
 
@@ -331,9 +332,9 @@
             header, icon = _("Done"), wx.ICON_INFORMATION
             if os.path.isdir(os.path.dirname(filepath)):
                 program, errors, warnings = self.Controler.GenerateProgram(filepath)
-                message_text += "".join([_("warning: %s\n") for warning in warnings])
+                message_text += "".join([_("warning: %s\n") % warning for warning in warnings])
                 if len(errors) > 0:
-                    message_text += "".join([_("error: %s\n") for error in errors])
+                    message_text += "".join([_("error: %s\n") % error for error in errors])
                     message_text += _("Can't generate program to file %s!")%filepath
                     header, icon = _("Error"), wx.ICON_ERROR
                 else: