Sketcher: Update missed UI strings (#22363)

This commit is contained in:
Max Wilfinger
2025-07-07 10:16:07 +02:00
committed by GitHub
parent 86eea6af0f
commit 3e32ea5dd4
3 changed files with 26 additions and 26 deletions

View File

@@ -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*/)

View File

@@ -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;

View File

@@ -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 =