Sketcher: Translate the menu entries in attach dialog
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user