dialogs/PouDialog.py
changeset 1734 750eeb7230a1
parent 1708 24416137cda7
child 1736 7e61baa047f0
equal deleted inserted replaced
1733:dea107dce0c4 1734:750eeb7230a1
   109             text = ""
   109             text = ""
   110             for i, item in enumerate(error):
   110             for i, item in enumerate(error):
   111                 if i == 0:
   111                 if i == 0:
   112                     text += item
   112                     text += item
   113                 elif i == len(error) - 1:
   113                 elif i == len(error) - 1:
   114                     text += _(" and %s")%item
   114                     text += _(" and %s") % item
   115                 else:
   115                 else:
   116                     text += _(", %s")%item
   116                     text += _(", %s") % item
   117             message = _("Form isn't complete. %s must be filled!") % text
   117             message = _("Form isn't complete. %s must be filled!") % text
   118         elif not TestIdentifier(pou_name):
   118         elif not TestIdentifier(pou_name):
   119             message = _("\"%s\" is not a valid identifier!") % pou_name
   119             message = _("\"%s\" is not a valid identifier!") % pou_name
   120         elif pou_name.upper() in IEC_KEYWORDS:
   120         elif pou_name.upper() in IEC_KEYWORDS:
   121             message = _("\"%s\" is a keyword. It can't be used!") % pou_name
   121             message = _("\"%s\" is a keyword. It can't be used!") % pou_name