Made Path objects properties translatable - fixes #2524

This commit is contained in:
Yorik van Havre
2016-10-07 22:21:02 -03:00
parent 17a24a4b27
commit a50bd5dc88
26 changed files with 175 additions and 180 deletions
+3 -5
View File
@@ -43,10 +43,8 @@ except AttributeError:
class ObjectHop:
def __init__(self, obj):
obj.addProperty("App::PropertyLink", "NextObject",
"Path", "The object to be reached by this hop")
obj.addProperty("App::PropertyDistance", "HopHeight",
"Path", "The Z height of the hop")
obj.addProperty("App::PropertyLink", "NextObject", "Path", QtCore.QT_TRANSLATE_NOOP("App::Property","The object to be reached by this hop"))
obj.addProperty("App::PropertyDistance", "HopHeight", "Path", QtCore.QT_TRANSLATE_NOOP("App::Property","The Z height of the hop"))
obj.Proxy = self
def __getstate__(self):
@@ -123,7 +121,7 @@ class CommandPathHop:
return
FreeCAD.ActiveDocument.openTransaction(
translate("Pat_hHop", "Create Hop"))
translate("Path_Hop", "Create Hop"))
FreeCADGui.addModule("PathScripts.PathHop")
FreeCADGui.addModule("PathScripts.PathUtils")
FreeCADGui.doCommand(