ClangTools: Remove HTML from translated string

Change-Id: I74ab16ebebd00354a0821853f5a061e97b0c4f8b
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Robert Loehning
2018-07-19 15:02:54 +02:00
parent 8654677015
commit aaec887b15

View File

@@ -145,16 +145,17 @@ private:
if (buildType == BuildConfiguration::Release) { if (buildType == BuildConfiguration::Release) {
const QString wrongMode = ClangToolRunControl::tr("Release"); const QString wrongMode = ClangToolRunControl::tr("Release");
const QString toolName = m_parent->tool()->name(); const QString toolName = m_parent->tool()->name();
const QString title = ClangToolRunControl::tr("Run %1 in %2 Mode?").arg(toolName) const QString title = ClangToolRunControl::tr("Run %1 in %2 Mode?").arg(toolName, wrongMode);
.arg(wrongMode); const QString problem = ClangToolRunControl::tr(
const QString message = ClangToolRunControl::tr( "You are trying to run the tool \"%1\" on an application in %2 mode. The tool is "
"<html><head/><body>"
"<p>You are trying to run the tool \"%1\" on an application in %2 mode. The tool is "
"designed to be used in Debug mode since enabled assertions can reduce the number of " "designed to be used in Debug mode since enabled assertions can reduce the number of "
"false positives.</p>" "false positives.").arg(toolName, wrongMode);
"<p>Do you want to continue and run the tool in %2 mode?</p>" const QString question = ClangToolRunControl::tr(
"</body></html>") "Do you want to continue and run the tool in %1 mode?").arg(wrongMode);
.arg(toolName).arg(wrongMode); const QString message = QString("<html><head/><body>"
"<p>%1</p>"
"<p>%2</p>"
"</body></html>").arg(problem, question);
if (Utils::CheckableMessageBox::doNotAskAgainQuestion(Core::ICore::mainWindow(), if (Utils::CheckableMessageBox::doNotAskAgainQuestion(Core::ICore::mainWindow(),
title, message, Core::ICore::settings(), title, message, Core::ICore::settings(),
"ClangToolsCorrectModeWarning") != QDialogButtonBox::Yes) "ClangToolsCorrectModeWarning") != QDialogButtonBox::Yes)