From 98500bf4531f9f83762b3277fa0b03571887f0ef Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Sun, 27 Nov 2022 16:29:51 +0100 Subject: [PATCH] Sketcher: settings in Task Constraint are translatable --- src/Mod/Sketcher/Gui/TaskSketcherConstraints.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Mod/Sketcher/Gui/TaskSketcherConstraints.cpp b/src/Mod/Sketcher/Gui/TaskSketcherConstraints.cpp index 9fcb173a6f..0c595b5eec 100644 --- a/src/Mod/Sketcher/Gui/TaskSketcherConstraints.cpp +++ b/src/Mod/Sketcher/Gui/TaskSketcherConstraints.cpp @@ -759,11 +759,12 @@ TaskSketcherConstraints::TaskSketcherConstraints(ViewProviderSketch *sketchView) // Create local settings menu // FIXME there is probably a smarter way to handle this menu - QAction* action1 = new QAction(QString::fromLatin1("Auto constraints"), this); - QAction* action2 = new QAction(QString::fromLatin1("Auto remove redundants"), this); - QAction* action3 = new QAction(QString::fromLatin1("Show only filtered Constraints"), this); - QAction* action4 = new QAction(QString::fromLatin1("Extended information (in widget)"), this); - QAction* action5 = new QAction(QString::fromLatin1("Hide internal alignment (in widget)"), this); + // FIXME translations aren't updated automatically at language change + QAction* action1 = new QAction(tr("Auto constraints"), this); + QAction* action2 = new QAction(tr("Auto remove redundants"), this); + QAction* action3 = new QAction(tr("Show only filtered Constraints"), this); + QAction* action4 = new QAction(tr("Extended information (in widget)"), this); + QAction* action5 = new QAction(tr("Hide internal alignment (in widget)"), this); action1->setCheckable(true); action2->setCheckable(true);