Fixed bug when printing program generating errors and warnings in PLCOpenEditor
authorLaurent Bessard
Tue, 10 Sep 2013 10:37:42 +0200
changeset 1312 250c3ae0787c
parent 1311 85ca4fa0720b
child 1313 85c167bfff93
Fixed bug when printing program generating errors and warnings in PLCOpenEditor
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Tue Sep 10 10:36:44 2013 +0200
+++ b/PLCOpenEditor.py	Tue Sep 10 10:37:42 2013 +0200
@@ -332,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: