Draft: fixed wrong QT_TRANSLATE_NOOP usage in Draft Objects

.
This commit is contained in:
carlopav
2020-06-07 20:56:48 +02:00
committed by Yorik van Havre
parent c0971eb5c1
commit 904f3408bc
22 changed files with 361 additions and 440 deletions

View File

@@ -41,18 +41,21 @@ class Clone(DraftObject):
def __init__(self,obj):
super(Clone, self).__init__(obj, "Clone")
_tip = "The objects included in this clone"
_tip = QT_TRANSLATE_NOOP("App::Property",
"The objects included in this clone")
obj.addProperty("App::PropertyLinkListGlobal", "Objects",
"Draft", QT_TRANSLATE_NOOP("App::Property", _tip))
"Draft", _tip)
_tip = "The scale factor of this clone"
_tip = QT_TRANSLATE_NOOP("App::Property",
"The scale factor of this clone")
obj.addProperty("App::PropertyVector", "Scale",
"Draft", QT_TRANSLATE_NOOP("App::Property", _tip))
"Draft", _tip)
_tip = "If Clones includes several objects,\n\
set True for fusion or False for compound"
_tip = QT_TRANSLATE_NOOP("App::Property",
"If Clones includes several objects,\n"
"set True for fusion or False for compound")
obj.addProperty("App::PropertyBool", "Fuse",
"Draft", QT_TRANSLATE_NOOP("App::Property", _tip))
"Draft", _tip)
obj.Scale = App.Vector(1,1,1)