editors/Viewer.py
changeset 2308 4d7cee25a474
parent 2301 5b8a7dd43f9f
child 2341 210cddfa16cf
--- a/editors/Viewer.py	Tue Oct 02 15:56:09 2018 +0200
+++ b/editors/Viewer.py	Tue Oct 02 15:57:26 2018 +0200
@@ -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: