Draft: menu texts to sentence case

This commit is contained in:
Roy-043
2023-12-03 21:31:46 +01:00
committed by Yorik van Havre
parent 5677f93236
commit 652c0fb752
6 changed files with 6 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ class Draft2Sketch(gui_base_original.Modifier):
"""Set icon, menu and tooltip."""
return {'Pixmap': 'Draft_Draft2Sketch',
'MenuText': QT_TRANSLATE_NOOP("Draft_Draft2Sketch", "Draft to Sketch"),
'MenuText': QT_TRANSLATE_NOOP("Draft_Draft2Sketch", "Draft to sketch"),
'ToolTip': QT_TRANSLATE_NOOP("Draft_Draft2Sketch", "Convert bidirectionally between Draft objects and Sketches.\nMany Draft objects will be converted into a single non-constrained Sketch.\nHowever, a single sketch with disconnected traces will be converted into several individual Draft objects.")}
def Activated(self):

View File

@@ -306,7 +306,7 @@ class AddToConstruction(gui_base.GuiCommandNeedsSelection):
def GetResources(self):
"""Set icon, menu and tooltip."""
return {'Pixmap': 'Draft_AddConstruction',
'MenuText': QT_TRANSLATE_NOOP("Draft_AddConstruction", "Add to Construction group"),
'MenuText': QT_TRANSLATE_NOOP("Draft_AddConstruction", "Add to construction group"),
'ToolTip': QT_TRANSLATE_NOOP("Draft_AddConstruction", "Adds the selected objects to the construction group,\nand changes their appearance to the construction style.\nIt creates a construction group if it doesn't exist.")}
def Activated(self):

View File

@@ -164,7 +164,7 @@ class PathLinkArray(PathArray):
"""Set icon, menu and tooltip."""
return {'Pixmap': 'Draft_PathLinkArray',
'MenuText': QT_TRANSLATE_NOOP("Draft_PathLinkArray", "Path Link array"),
'MenuText': QT_TRANSLATE_NOOP("Draft_PathLinkArray", "Path link array"),
'ToolTip': QT_TRANSLATE_NOOP("Draft_PathLinkArray", "Like the PathArray tool, but creates a 'Link array' instead.\nA 'Link array' is more efficient when handling many copies but the 'Fuse' option cannot be used.")}
def Activated(self):

View File

@@ -118,7 +118,7 @@ class PathTwistedLinkArray(PathTwistedArray):
"""Set icon, menu and tooltip."""
return {'Pixmap': 'Draft_PathTwistedLinkArray',
'MenuText': QT_TRANSLATE_NOOP("Draft_PathTwistedLinkArray","Path twisted Link array"),
'MenuText': QT_TRANSLATE_NOOP("Draft_PathTwistedLinkArray","Path twisted link array"),
'ToolTip': QT_TRANSLATE_NOOP("Draft_PathTwistedLinkArray","Like the PathTwistedArray tool, but creates a 'Link array' instead.\nA 'Link array' is more efficient when handling many copies but the 'Fuse' option cannot be used.")}
def Activated(self):

View File

@@ -129,7 +129,7 @@ class PointLinkArray(PointArray):
"""Set icon, menu and tooltip."""
return {'Pixmap': 'Draft_PointLinkArray',
'MenuText': QT_TRANSLATE_NOOP("Draft_PointLinkArray", "PointLinkArray"),
'MenuText': QT_TRANSLATE_NOOP("Draft_PointLinkArray", "Point link array"),
'ToolTip': QT_TRANSLATE_NOOP("Draft_PointLinkArray", "Like the PointArray tool, but creates a 'Point link array' instead.\nA 'Point link array' is more efficient when handling many copies.")}
def Activated(self):

View File

@@ -56,7 +56,7 @@ class Draft_SelectPlane:
"""Set icon, menu and tooltip."""
return {"Pixmap": "Draft_SelectPlane",
"Accel": "W, P",
"MenuText": QT_TRANSLATE_NOOP("Draft_SelectPlane", "Select Plane"),
"MenuText": QT_TRANSLATE_NOOP("Draft_SelectPlane", "Select plane"),
"ToolTip": QT_TRANSLATE_NOOP("Draft_SelectPlane", "Select 3 vertices, one or more shapes or an object to define a working plane.")}
def IsActive(self):