From c8bde5bc452aaf68e88424bc448f86a16b282ffc Mon Sep 17 00:00:00 2001 From: sudden6 Date: Thu, 6 Oct 2016 22:37:50 +0200 Subject: [PATCH] fix(i18n): remove HTML from translations fixes #3781 --- src/widget/tool/screenshotgrabber.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/widget/tool/screenshotgrabber.cpp b/src/widget/tool/screenshotgrabber.cpp index 1a6636b0b..2cc362699 100644 --- a/src/widget/tool/screenshotgrabber.cpp +++ b/src/widget/tool/screenshotgrabber.cpp @@ -167,8 +167,10 @@ void ScreenshotGrabber::setupScene() void ScreenshotGrabber::useNothingSelectedTooltip() { - helperTooltip->setHtml(tr("Click and drag to select a region. Press Space to hide/show qTox window, or Escape to cancel.", - "Help text shown when no region has been selected yet")); + helperTooltip->setHtml(tr("Click and drag to select a region. Press %1 to hide/show qTox window, or %2 to cancel.", + "Help text shown when no region has been selected yet") + .arg(QString("%1").arg(tr("Space", "[Space] key on the keyboard")), + QString("%1").arg(tr("Escape", "[Escape] key on the keyboard")))); adjustTooltipPosition(); }