From 3e32ea5dd422eaecd415581d50a16af778334ef6 Mon Sep 17 00:00:00 2001 From: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com> Date: Mon, 7 Jul 2025 10:16:07 +0200 Subject: [PATCH] Sketcher: Update missed UI strings (#22363) --- .../Sketcher/Gui/CommandSketcherOverlay.cpp | 46 +++++++++---------- src/Mod/Sketcher/Gui/CommandSketcherTools.cpp | 2 +- src/Mod/Sketcher/Gui/Workbench.cpp | 4 +- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandSketcherOverlay.cpp b/src/Mod/Sketcher/Gui/CommandSketcherOverlay.cpp index a9c46f6582..98dc29f1ef 100644 --- a/src/Mod/Sketcher/Gui/CommandSketcherOverlay.cpp +++ b/src/Mod/Sketcher/Gui/CommandSketcherOverlay.cpp @@ -293,50 +293,50 @@ void CmdSketcherCompBSplineShowHideGeometryInformation::languageChange() QAction* c1 = a[0]; c1->setText(QApplication::translate("CmdSketcherCompBSplineShowHideGeometryInformation", - "Show/hide B-spline degree")); - c1->setToolTip(QApplication::translate( - "Sketcher_BSplineDegree", - "Switches between showing and hiding the degree for all B-splines")); - c1->setStatusTip(QApplication::translate( - "Sketcher_BSplineDegree", - "Switches between showing and hiding the degree for all B-splines")); + "Toggle B-Spline Degree")); + c1->setToolTip( + QApplication::translate("Sketcher_BSplineDegree", + "Toggles the visibility of the degree for all B-splines")); + c1->setStatusTip( + QApplication::translate("Sketcher_BSplineDegree", + "Toggles the visibility of the degree for all B-splines")); QAction* c2 = a[1]; c2->setText(QApplication::translate("CmdSketcherCompBSplineShowHideGeometryInformation", - "Show/hide B-spline control polygon")); + "Toggle B-Spline Control Polygon")); c2->setToolTip(QApplication::translate( "Sketcher_BSplinePolygon", - "Switches between showing and hiding the control polygons for all B-splines")); + "Toggles the visibility of the control polygons for all B-splines")); c2->setStatusTip(QApplication::translate( "Sketcher_BSplinePolygon", - "Switches between showing and hiding the control polygons for all B-splines")); + "Toggles the visibility of the control polygons for all B-splines")); QAction* c3 = a[2]; c3->setText(QApplication::translate("CmdSketcherCompBSplineShowHideGeometryInformation", - "Show/hide B-spline curvature comb")); - c3->setToolTip(QApplication::translate( - "Sketcher_BSplineComb", - "Switches between showing and hiding the curvature comb for all B-splines")); - c3->setStatusTip(QApplication::translate( - "Sketcher_BSplineComb", - "Switches between showing and hiding the curvature comb for all B-splines")); + "Toggle B-Spline Curvature Comb")); + c3->setToolTip( + QApplication::translate("Sketcher_BSplineComb", + "Toggles the visibility of the curvature comb for all B-splines")); + c3->setStatusTip( + QApplication::translate("Sketcher_BSplineComb", + "Toggles the visibility of the curvature comb for all B-splines")); QAction* c4 = a[3]; c4->setText(QApplication::translate("CmdSketcherCompBSplineShowHideGeometryInformation", - "Show/hide B-spline knot multiplicity")); + "Toggle B-Spline Knot Multiplicity")); c4->setToolTip(QApplication::translate( "Sketcher_BSplineKnotMultiplicity", - "Switches between showing and hiding the knot multiplicity for all B-splines")); + "Toggles the visibility of the knot multiplicity for all B-splines")); c4->setStatusTip(QApplication::translate( "Sketcher_BSplineKnotMultiplicity", - "Switches between showing and hiding the knot multiplicity for all B-splines")); + "Toggles the visibility of the knot multiplicity for all B-splines")); QAction* c5 = a[4]; c5->setText(QApplication::translate("CmdSketcherCompBSplineShowHideGeometryInformation", - "Show/hide B-spline control point weight")); + "Toggle B-Spline Control Point Weight")); c5->setToolTip(QApplication::translate( "Sketcher_BSplinePoleWeight", - "Switches between showing and hiding the control point weight for all B-splines")); + "Toggles the visibility of the control point weight for all B-splines")); c5->setStatusTip(QApplication::translate( "Sketcher_BSplinePoleWeight", - "Switches between showing and hiding the control point weight for all B-splines")); + "Toggles the visibility of the control point weight for all B-splines")); } void CmdSketcherCompBSplineShowHideGeometryInformation::updateAction(int /*mode*/) diff --git a/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp b/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp index 554c87eb35..72535b7191 100644 --- a/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp +++ b/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp @@ -2406,7 +2406,7 @@ CmdSketcherRotate::CmdSketcherRotate() { sAppModule = "Sketcher"; sGroup = "Sketcher"; - sMenuText = QT_TR_NOOP("Rotate/Polar Transform"); + sMenuText = QT_TR_NOOP("Rotate / Polar Transform"); sToolTipText = QT_TR_NOOP("Rotates the selected geometry by creating 'n' copies, enabling circular pattern creation"); sWhatsThis = "Sketcher_Rotate"; sStatusTip = sToolTipText; diff --git a/src/Mod/Sketcher/Gui/Workbench.cpp b/src/Mod/Sketcher/Gui/Workbench.cpp index 27f4760869..6ee89c8fb1 100644 --- a/src/Mod/Sketcher/Gui/Workbench.cpp +++ b/src/Mod/Sketcher/Gui/Workbench.cpp @@ -37,7 +37,7 @@ using namespace SketcherGui; qApp->translate("Workbench","P&rofiles"); qApp->translate("Workbench","S&ketch"); qApp->translate("Workbench", "Sketcher"); - qApp->translate("Workbench", "Sketcher Edit Mode"); + qApp->translate("Workbench", "Edit Mode"); qApp->translate("Workbench", "Geometries"); qApp->translate("Workbench", "Constraints"); @@ -113,7 +113,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const Gui::ToolBarItem* sketcherEditMode = new Gui::ToolBarItem(root, Gui::ToolBarItem::DefaultVisibility::Unavailable); - sketcherEditMode->setCommand("Sketcher Edit Mode"); + sketcherEditMode->setCommand("Edit Mode"); addSketcherWorkbenchSketchEditModeActions(*sketcherEditMode); Gui::ToolBarItem* geom =