Translate parser error message.

--HG--
branch : develop
This commit is contained in:
dismine 2014-12-04 13:35:29 +02:00
parent 2aaf530e85
commit e0c38e217a

View File

@ -535,8 +535,8 @@ qreal DialogTool::Eval(const QString &text, bool &flag, QLabel *label, const QSt
label->setText(tr("Error")); label->setText(tr("Error"));
flag = false; flag = false;
ChangeColor(labelEditFormula, Qt::red); ChangeColor(labelEditFormula, Qt::red);
emit ToolTip("Parser error: "+e.GetMsg()); emit ToolTip(tr("Parser error: %1").arg(e.GetMsg()));
label->setToolTip("Parser error: "+e.GetMsg()); label->setToolTip(tr("Parser error: %1").arg(e.GetMsg()));
qDebug() << "\nMath parser error:\n" qDebug() << "\nMath parser error:\n"
<< "--------------------------------------\n" << "--------------------------------------\n"
<< "Message: " << e.GetMsg() << "\n" << "Message: " << e.GetMsg() << "\n"