equal
deleted
inserted
replaced
89 text = "" |
89 text = "" |
90 for i, item in enumerate(error): |
90 for i, item in enumerate(error): |
91 if i == 0: |
91 if i == 0: |
92 text += item |
92 text += item |
93 elif i == len(error) - 1: |
93 elif i == len(error) - 1: |
94 text += _(" and %s")%item |
94 text += _(" and %s") % item |
95 else: |
95 else: |
96 text += _(", %s")%item |
96 text += _(", %s") % item |
97 message = _("Form isn't complete. %s must be filled!") % text |
97 message = _("Form isn't complete. %s must be filled!") % text |
98 elif not TestIdentifier(transition_name): |
98 elif not TestIdentifier(transition_name): |
99 message = _("\"%s\" is not a valid identifier!") % transition_name |
99 message = _("\"%s\" is not a valid identifier!") % transition_name |
100 elif transition_name.upper() in IEC_KEYWORDS: |
100 elif transition_name.upper() in IEC_KEYWORDS: |
101 message = _("\"%s\" is a keyword. It can't be used!") % transition_name |
101 message = _("\"%s\" is a keyword. It can't be used!") % transition_name |