etherlab/ConfigEditor.py
changeset 2375 cfa68a06a24d
parent 2371 f1f10ceb9341
child 2379 015b724c30a5
--- a/etherlab/ConfigEditor.py	Sat Sep 29 13:04:33 2018 +0300
+++ b/etherlab/ConfigEditor.py	Sat Sep 29 13:29:20 2018 +0300
@@ -26,6 +26,7 @@
 
 # -----------------------------------------------------------------------
 from EtherCATManagementEditor import EtherCATManagementTreebook, MasterStatePanelClass
+from util.TranslationCatalogs import NoTranslate
 # -----------------------------------------------------------------------
 
 [ETHERCAT_VENDOR, ETHERCAT_GROUP, ETHERCAT_DEVICE] = range(3)
@@ -39,7 +40,7 @@
 
 
 def GetVariablesTableColnames(position=False):
-    _ = lambda x : x
+    _ = NoTranslate
     colname = ["#"]
     if position:
         colname.append(_("Position"))
@@ -335,7 +336,7 @@
 
 
 def GetProcessVariablesTableColnames():
-    _ = lambda x : x
+    _ = NoTranslate
     return ["#", _("Name"),
             _("Read from (nodeid, index, subindex)"),
             _("Write to (nodeid, index, subindex)"),
@@ -457,7 +458,7 @@
 
 
 def GetStartupCommandsTableColnames():
-    _ = lambda x : x
+    _ = NoTranslate
     return [_("Position"), _("Index"), _("Subindex"), _("Value"), _("Description")]