From e0c38e217aeb9d89815f30f33ef60b69b264a022 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 4 Dec 2014 13:35:29 +0200 Subject: [PATCH] Translate parser error message. --HG-- branch : develop --- src/app/dialogs/tools/dialogtool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/dialogs/tools/dialogtool.cpp b/src/app/dialogs/tools/dialogtool.cpp index ce3216f85..beb8b405a 100644 --- a/src/app/dialogs/tools/dialogtool.cpp +++ b/src/app/dialogs/tools/dialogtool.cpp @@ -535,8 +535,8 @@ qreal DialogTool::Eval(const QString &text, bool &flag, QLabel *label, const QSt label->setText(tr("Error")); flag = false; ChangeColor(labelEditFormula, Qt::red); - emit ToolTip("Parser error: "+e.GetMsg()); - label->setToolTip("Parser error: "+e.GetMsg()); + emit ToolTip(tr("Parser error: %1").arg(e.GetMsg())); + label->setToolTip(tr("Parser error: %1").arg(e.GetMsg())); qDebug() << "\nMath parser error:\n" << "--------------------------------------\n" << "Message: " << e.GetMsg() << "\n"