--- a/editors/Viewer.py Tue Aug 28 18:06:30 2018 +0300
+++ b/editors/Viewer.py Wed Aug 29 18:53:02 2018 +0300
@@ -470,7 +470,7 @@
class DebugInstanceName(DebugDataConsumer):
- VALUE_TRANSLATION = {True: _("Active"), False: _("Inactive")}
+ VALUE_TRANSLATION = None
def __init__(self, parent):
DebugDataConsumer.__init__(self)
@@ -480,6 +480,9 @@
self.x_offset = 2
self.y_offset = 2
+ if self.VALUE_TRANSLATION is None:
+ self.__class__.VALUE_TRANSLATION = {True: _("Active"), False: _("Inactive")}
+
def SetValue(self, value):
self.ActionState = value
if self.ActionState != self.ActionLastState: