24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
25 |
25 |
26 import wx |
26 import wx |
27 |
27 |
28 from plcopen.structures import TestIdentifier, IEC_KEYWORDS |
28 from plcopen.structures import TestIdentifier, IEC_KEYWORDS |
|
29 from util.TranslationCatalogs import NoTranslate |
29 |
30 |
30 |
31 |
31 def GetPouTypes(): |
32 def GetPouTypes(): |
32 _ = lambda x: x |
33 _ = NoTranslate |
33 return [_("function"), _("functionBlock"), _("program")] |
34 return [_("function"), _("functionBlock"), _("program")] |
34 |
35 |
35 |
36 |
36 POU_TYPES_DICT = dict([(_(pou_type), pou_type) for pou_type in GetPouTypes()]) |
37 POU_TYPES_DICT = dict([(_(pou_type), pou_type) for pou_type in GetPouTypes()]) |
37 |
38 |
38 |
39 |
39 def GetPouLanguages(): |
40 def GetPouLanguages(): |
40 _ = lambda x: x |
41 _ = NoTranslate |
41 return [_("IL"), _("ST"), _("LD"), _("FBD"), _("SFC")] |
42 return [_("IL"), _("ST"), _("LD"), _("FBD"), _("SFC")] |
42 |
43 |
43 |
44 |
44 class PouDialog(wx.Dialog): |
45 class PouDialog(wx.Dialog): |
45 |
46 |