--- a/TextViewer.py Mon Oct 12 10:20:09 2009 +0200
+++ b/TextViewer.py Mon Oct 19 15:58:20 2009 +0200
@@ -226,9 +226,9 @@
if len(values) > 2 and pou_type == "program":
var_name = values[3]
if var_name.upper() in [name.upper() for name in self.Controler.GetProjectPouNames(self.Debug)]:
- message = _("\"%s\" pou already exists!")%blockname
+ message = _("\"%s\" pou already exists!")%var_name
elif var_name.upper() in [name.upper() for name in self.Controler.GetEditedElementVariables(self.TagName, self.Debug)]:
- message = _("\"%s\" element for this pou already exists!")%blockname
+ message = _("\"%s\" element for this pou already exists!")%var_name
else:
if values[2] is not None:
var_type = values[2]