Draft: Update UI strings for consistency (#22331)
* Draft: Update UI strings for consistency * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Ryan K <114723629+ryankembrey@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Ryan K <114723629+ryankembrey@users.noreply.github.com> * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com> * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com> * Apply suggestions from code review --------- Co-authored-by: Ryan K <114723629+ryankembrey@users.noreply.github.com> Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>
This commit is contained in:
@@ -49,14 +49,14 @@ class Split(gui_base_original.Modifier):
|
||||
return {"Pixmap": "Draft_Split",
|
||||
"Accel": "S, P",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Draft_Split", "Split"),
|
||||
"ToolTip": QT_TRANSLATE_NOOP("Draft_Split", "Splits the selected line or polyline into two independent lines\nor polylines by clicking anywhere along the original object.\nIt works best when choosing a point on a straight segment and not a corner vertex.")}
|
||||
"ToolTip": QT_TRANSLATE_NOOP("Draft_Split", "Splits the selected line or polyline at a specified point")}
|
||||
|
||||
def Activated(self):
|
||||
"""Execute when the command is called."""
|
||||
super().Activated(name="Split")
|
||||
if not self.ui:
|
||||
return
|
||||
_toolmsg(translate("draft", "Click anywhere on a line to split it."))
|
||||
_toolmsg(translate("draft", "Click anywhere on a line to split it"))
|
||||
self.view.graphicsView().setFocus() # Make sure using Esc works.
|
||||
self.call = self.view.addEventCallback("SoEvent", self.action)
|
||||
|
||||
@@ -98,7 +98,7 @@ class Split(gui_base_original.Modifier):
|
||||
"FreeCAD.ActiveDocument.recompute()"
|
||||
]
|
||||
|
||||
self.commit(translate("draft", "Split line"), cmd_list)
|
||||
self.commit(translate("draft", "Split Line"), cmd_list)
|
||||
self.finish()
|
||||
|
||||
def finish(self, cont=False):
|
||||
|
||||
Reference in New Issue
Block a user