Skip to content

Commit

Permalink
fixes 0003756: Tooltips should not start with the internal name of th…
Browse files Browse the repository at this point in the history
…e tool
  • Loading branch information
wwmayer committed Jan 1, 2019
1 parent 47fc808 commit 70aaf3e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Part/BOPTools/JoinFeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def GetResources(self):
return {'Pixmap' : getIconPath("Part_JoinConnect.svg"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("Part_JoinConnect","Connect objects"),
'Accel': "",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_JoinConnect","Part_JoinConnect: Fuses objects, taking care to preserve voids.")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_JoinConnect","Fuses objects, taking care to preserve voids.")}

def Activated(self):
if len(FreeCADGui.Selection.getSelectionEx()) >= 1 :
Expand Down
8 changes: 4 additions & 4 deletions src/Mod/Part/BOPTools/SplitFeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def GetResources(self):
return {'Pixmap' : getIconPath("Part_BooleanFragments.svg"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Boolean Fragments"),
'Accel': "",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Part_BooleanFragments: split objects where they intersect")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Split objects where they intersect")}

def Activated(self):
if len(FreeCADGui.Selection.getSelectionEx()) >= 1 :
Expand Down Expand Up @@ -309,7 +309,7 @@ def GetResources(self):
return {'Pixmap' : getIconPath("Part_Slice.svg"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Slice to compound"),
'Accel': "",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Part_Slice: split object by intersections with other objects, and pack the pieces into a compound.")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Split object by intersections with other objects, and pack the pieces into a compound.")}

def Activated(self):
if len(FreeCADGui.Selection.getSelectionEx()) > 1 :
Expand All @@ -333,7 +333,7 @@ def GetResources(self):
return {'Pixmap' : getIconPath("Part_SliceApart.svg"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Slice apart"),
'Accel': "",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Part_SliceApart: split object by intersections with other objects.")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Split object by intersections with other objects.")}

def Activated(self):
if len(FreeCADGui.Selection.getSelectionEx()) > 1 :
Expand Down Expand Up @@ -467,7 +467,7 @@ def GetResources(self):
return {'Pixmap' : getIconPath("Part_XOR.svg"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Boolean XOR"),
'Accel': "",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Part_XOR: remove intersection fragments")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Remove intersection fragments")}

def Activated(self):
if len(FreeCADGui.Selection.getSelectionEx()) >= 1 :
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Part/Gui/Command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ CmdPartMakeFace::CmdPartMakeFace()
sAppModule = "Part";
sGroup = QT_TR_NOOP("Part");
sMenuText = QT_TR_NOOP("Make face from wires");
sToolTipText = QT_TR_NOOP("Part_MakeFace: Make face from set of wires (e.g. from a sketch)");
sToolTipText = QT_TR_NOOP("Make face from set of wires (e.g. from a sketch)");
sWhatsThis = "Part_MakeFace";
sStatusTip = sToolTipText;
}
Expand Down Expand Up @@ -1621,7 +1621,7 @@ CmdPartOffset::CmdPartOffset()
sAppModule = "Part";
sGroup = QT_TR_NOOP("Part");
sMenuText = QT_TR_NOOP("3D Offset...");
sToolTipText = QT_TR_NOOP("Part_Offset: Utility to offset in 3D");
sToolTipText = QT_TR_NOOP("Utility to offset in 3D");
sWhatsThis = "Part_Offset";
sStatusTip = sToolTipText;
sPixmap = "Part_Offset";
Expand Down Expand Up @@ -1671,7 +1671,7 @@ CmdPartOffset2D::CmdPartOffset2D()
sAppModule = "Part";
sGroup = QT_TR_NOOP("Part");
sMenuText = QT_TR_NOOP("2D Offset...");
sToolTipText = QT_TR_NOOP("Part_Offset2D: Utility to offset planar shapes");
sToolTipText = QT_TR_NOOP("Utility to offset planar shapes");
sWhatsThis = "Part_Offset2D";
sStatusTip = sToolTipText;
sPixmap = "Part_Offset2D";
Expand Down

0 comments on commit 70aaf3e

Please sign in to comment.