Skip to content

Commit

Permalink
Mark the error strings for translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Apr 12, 2016
1 parent eb41be7 commit 47b45e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions OMEdit/OMEditGUI/Editors/MetaModelEditor.cpp
Expand Up @@ -766,8 +766,9 @@ bool MetaModelEditor::getPositionAndRotationVectors(QString interfacePoint, QGen

//Make sure that all vector strings are found in XML
if (cg_x_phi_cg_str.isEmpty() || cg_x_r_cg_str.isEmpty() || x_c_r_x_str.isEmpty() || x_c_phi_x_str.isEmpty()) {
QString msg = "Interface coordinates does not exist in xml";
mpMainWindow->getMessagesWidget()->addGUIMessage(MessageItem(MessageItem::MetaModel, "",false,0,0,0,0,msg,Helper::scriptingKind,Helper::errorLevel));
QString msg = tr("Interface coordinates does not exist in xml");
mpMainWindow->getMessagesWidget()->addGUIMessage(MessageItem(MessageItem::MetaModel, "", false, 0, 0, 0, 0, msg, Helper::scriptingKind,
Helper::errorLevel));
return false;
}

Expand Down Expand Up @@ -858,7 +859,8 @@ void MetaModelEditor::alignInterfaces(QString fromInterface, QString toInterface
if (!interfacesAligned(fromInterface, toInterface)) {
if (showError) {
mpMainWindow->getMessagesWidget()->addGUIMessage(MessageItem(MessageItem::MetaModel, "", false, 0, 0, 0, 0,
"Alignment operation failed.", Helper::scriptingKind,Helper::errorLevel));
tr("Alignment operation failed."), Helper::scriptingKind,
Helper::errorLevel));
}
}
}
Expand Down

0 comments on commit 47b45e5

Please sign in to comment.