--- a/controls/VariablePanel.py Thu Aug 17 10:12:04 2017 +0300
+++ b/controls/VariablePanel.py Thu Aug 17 11:39:10 2017 +0300
@@ -38,7 +38,7 @@
from LocationCellEditor import LocationCellEditor
from util.BitmapLibrary import GetBitmap
from PLCControler import _VariableInfos
-
+from util.TranslationCatalogs import NoTranslate
#-------------------------------------------------------------------------------
# Helpers
#-------------------------------------------------------------------------------
@@ -49,14 +49,14 @@
def GetVariableTableColnames(location):
- _ = lambda x: x
+ _ = NoTranslate
if location:
return ["#", _("Name"), _("Class"), _("Type"), _("Location"), _("Initial Value"), _("Option"), _("Documentation")]
return ["#", _("Name"), _("Class"), _("Type"), _("Initial Value"), _("Option"), _("Documentation")]
def GetOptions(constant=True, retain=True, non_retain=True):
- _ = lambda x: x
+ _ = NoTranslate
options = [""]
if constant:
options.append(_("Constant"))
@@ -71,7 +71,7 @@
def GetFilterChoiceTransfer():
- _ = lambda x: x
+ _ = NoTranslate
return {_("All"): _("All"), _("Interface"): _("Interface"),
_(" Input"): _("Input"), _(" Output"): _("Output"), _(" InOut"): _("InOut"),
_(" External"): _("External"), _("Variables"): _("Variables"), _(" Local"): _("Local"),