Made Path objects properties translatable - fixes #2524

This commit is contained in:
Yorik van Havre
2016-10-07 22:21:02 -03:00
parent e284a00570
commit 4375299724
26 changed files with 175 additions and 180 deletions

View File

@@ -38,10 +38,10 @@ except AttributeError:
class ToolLenOffset:
def __init__(self,obj):
obj.addProperty("App::PropertyIntegerConstraint", "HeightNumber","HeightOffset","The Height offset number of the active tool")
obj.addProperty("App::PropertyIntegerConstraint", "HeightNumber","HeightOffset",QtCore.QT_TRANSLATE_NOOP("App::Property","The Height offset number of the active tool"))
obj.HeightNumber = (0,0,10000,1)
obj.addProperty("App::PropertyLength", "Height", "HeightOffset","The first height value in Z, to rapid to, before making a feed move in Z")
obj.addProperty("App::PropertyBool","Active","HeightOffset","Make False, to prevent operation from generating code")
obj.addProperty("App::PropertyLength", "Height", "HeightOffset",QtCore.QT_TRANSLATE_NOOP("App::Property","The first height value in Z, to rapid to, before making a feed move in Z"))
obj.addProperty("App::PropertyBool","Active","HeightOffset",QtCore.QT_TRANSLATE_NOOP("App::Property","Make False, to prevent operation from generating code"))
obj.Proxy = self
mode = 2
obj.setEditorMode('Placement',mode)