From aaec887b155d46d5b51ec33a5a216199cc2ab560 Mon Sep 17 00:00:00 2001
From: Robert Loehning
Date: Thu, 19 Jul 2018 15:02:54 +0200
Subject: [PATCH] ClangTools: Remove HTML from translated string
Change-Id: I74ab16ebebd00354a0821853f5a061e97b0c4f8b
Reviewed-by: Ivan Donchevskii
---
.../clangtools/clangtoolruncontrol.cpp | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/plugins/clangtools/clangtoolruncontrol.cpp b/src/plugins/clangtools/clangtoolruncontrol.cpp
index 6b8dcd2b382..8b35d5e3527 100644
--- a/src/plugins/clangtools/clangtoolruncontrol.cpp
+++ b/src/plugins/clangtools/clangtoolruncontrol.cpp
@@ -145,16 +145,17 @@ private:
if (buildType == BuildConfiguration::Release) {
const QString wrongMode = ClangToolRunControl::tr("Release");
const QString toolName = m_parent->tool()->name();
- const QString title = ClangToolRunControl::tr("Run %1 in %2 Mode?").arg(toolName)
- .arg(wrongMode);
- const QString message = ClangToolRunControl::tr(
- ""
- "You are trying to run the tool \"%1\" on an application in %2 mode. The tool is "
+ const QString title = ClangToolRunControl::tr("Run %1 in %2 Mode?").arg(toolName, wrongMode);
+ const QString problem = ClangToolRunControl::tr(
+ "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 "
- "false positives.
"
- "Do you want to continue and run the tool in %2 mode?
"
- "")
- .arg(toolName).arg(wrongMode);
+ "false positives.").arg(toolName, wrongMode);
+ const QString question = ClangToolRunControl::tr(
+ "Do you want to continue and run the tool in %1 mode?").arg(wrongMode);
+ const QString message = QString("
"
+ "%1
"
+ "%2
"
+ "").arg(problem, question);
if (Utils::CheckableMessageBox::doNotAskAgainQuestion(Core::ICore::mainWindow(),
title, message, Core::ICore::settings(),
"ClangToolsCorrectModeWarning") != QDialogButtonBox::Yes)