Merge pull request #9434 from chennes/sketcherTranslateAttachmentDialogTake2

Sketcher: Translate the menu entries in attach dialog
This commit is contained in:
Chris Hennes
2023-05-02 10:24:36 -05:00
committed by GitHub

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