From ba57b420d1f1928d2f903a08cf4fa6a7192baddd Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Fri, 21 Apr 2023 14:41:07 -0500 Subject: [PATCH] Sketcher: Translate the attacher GUI dropdown --- src/Mod/Sketcher/Gui/Command.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/Command.cpp b/src/Mod/Sketcher/Gui/Command.cpp index 15d5731413..b7360e9009 100644 --- a/src/Mod/Sketcher/Gui/Command.cpp +++ b/src/Mod/Sketcher/Gui/Command.cpp @@ -49,6 +49,7 @@ #include #include #include +#include #include #include "SketchMirrorDialog.h" @@ -584,7 +585,10 @@ void CmdSketcherMapSketch::activated(int iMsg) int iSugg = 0; //index of the auto-suggested mode in the list of valid modes int iCurr = 0; //index of current mode in the list of valid modes for (size_t i = 0; i < validModes.size(); ++i) { - items.push_back(QString::fromLatin1(AttachEngine::getModeName(validModes[i]).c_str())); + // Get the 2-element vector of caption, tooltip -- this class cannot use the tooltip, + // so it is just ignored. + auto uiStrings = AttacherGui::getUIStrings(AttachEnginePlane::getClassTypeId(), validModes[i]); + items.push_back(uiStrings[0]); if (validModes[i] == curMapMode) { iCurr = items.size() - 1; items.back().append(bCurIncompatible?