diff -r f37b88d3edc6 -r 2295fdc5c271 PLCControler.py --- a/PLCControler.py Mon Nov 28 16:27:24 2016 +0300 +++ b/PLCControler.py Mon Nov 28 16:47:01 2016 +0300 @@ -967,7 +967,8 @@ # programs cannot be pasted as functions or function blocks if orig_type == 'functionBlock' and pou_type == 'function' or \ orig_type == 'program' and pou_type in ['function', 'functionBlock']: - return _('''%s "%s" can't be pasted as a %s.''') % (orig_type, name, pou_type) + msg = _('''{a1} "{a2}" can't be pasted as a {a3}.''').format(a1 = orig_type, a2 = name, a3 = pou_type) + return msg new_pou.setpouType(pou_type)