Sketcher: Translate the menu entries in attach dialog

This commit is contained in:
Chris Hennes
2023-04-28 19:09:45 -05:00
parent 4d076a7056
commit 6d01ff73fb

View File

@@ -178,7 +178,8 @@ void CmdSketcherNewSketch::activated(int iMsg)
items.push_back(QObject::tr("Don't attach"));
int iSugg = 0;//index of the auto-suggested 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()));
auto uiStrings = AttacherGui::getUIStrings(AttachEnginePlane::getClassTypeId(), validModes[i]);
items.push_back(uiStrings[0]);
if (validModes[i] == mapmode)
iSugg = items.size()-1;
}