diff -r 8c98bad90b8d -r fcc406143e5b editors/ResourceEditor.py --- a/editors/ResourceEditor.py Thu Aug 17 10:12:04 2017 +0300 +++ b/editors/ResourceEditor.py Thu Aug 17 11:39:10 2017 +0300 @@ -32,6 +32,7 @@ from EditorPanel import EditorPanel from util.BitmapLibrary import GetBitmap from plcopen.structures import LOCATIONDATATYPES, TestIdentifier, IEC_KEYWORDS, DefaultType +from util.TranslationCatalogs import NoTranslate #------------------------------------------------------------------------------- # Configuration Editor class #------------------------------------------------------------------------------- @@ -65,18 +66,20 @@ #------------------------------------------------------------------------------- def GetTasksTableColnames(): - _ = lambda x: x + _ = NoTranslate return [_("Name"), _("Triggering"), _("Single"), _("Interval"), _("Priority")] def GetTaskTriggeringOptions(): - _ = lambda x: x + _ = NoTranslate return [_("Interrupt"), _("Cyclic")] TASKTRIGGERINGOPTIONS_DICT = dict([(_(option), option) for option in GetTaskTriggeringOptions()]) -SingleCellEditor = lambda *x: wx.grid.GridCellChoiceEditor() + +def SingleCellEditor(*x): + return wx.grid.GridCellChoiceEditor() def CheckSingle(single, varlist): @@ -84,7 +87,7 @@ def GetInstancesTableColnames(): - _ = lambda x: x + _ = NoTranslate return [_("Name"), _("Type"), _("Task")]