issue #0002524: Make property docstrings translatable

This commit is contained in:
wmayer
2016-09-08 18:29:27 +02:00
parent e7338ee425
commit af6f4704c9
4 changed files with 10 additions and 7 deletions

View File

@@ -118,8 +118,8 @@ class _ViewProviderMachine:
def __init__(self, vobj):
vobj.Proxy = self
vobj.addProperty("App::PropertyBool", "ShowLimits", "Path", translate(
"ShowMinMaxTravel", "Switch the machine max and minimum travel bounding box on/off"))
vobj.addProperty("App::PropertyBool", "ShowLimits", "Path",
QtCore.QT_TRANSLATE_NOOP("App::Property", "Switch the machine max and minimum travel bounding box on/off"))
mode = 2
vobj.setEditorMode('LineWidth', mode)
vobj.setEditorMode('MarkerColor', mode)