# HG changeset patch
# User Laurent Bessard
# Date 1378802262 -7200
# Node ID 250c3ae0787c16b208c19429a44262c5a7db93c2
# Parent  85ca4fa0720bf2e66194bb94af72e47d8a8175cc
Fixed bug when printing program generating errors and warnings in PLCOpenEditor

diff -r 85ca4fa0720b -r 250c3ae0787c 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: