From f5f7b5abba756860e3c2e3949b92f6abafc0c3aa Mon Sep 17 00:00:00 2001 From: Diadlo Date: Sat, 8 Oct 2016 22:42:00 +0300 Subject: [PATCH] fix(i18n): Remove HTML tags from translation --- src/widget/tool/screenshotgrabber.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/widget/tool/screenshotgrabber.cpp b/src/widget/tool/screenshotgrabber.cpp index 2cc362699..d80f914fd 100644 --- a/src/widget/tool/screenshotgrabber.cpp +++ b/src/widget/tool/screenshotgrabber.cpp @@ -167,17 +167,24 @@ void ScreenshotGrabber::setupScene() void ScreenshotGrabber::useNothingSelectedTooltip() { - helperTooltip->setHtml(tr("Click and drag to select a region. Press %1 to hide/show qTox window, or %2 to cancel.", + 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")))); + QString("%1").arg(tr("Escape", "[Escape] key on the keyboard"))) + ); adjustTooltipPosition(); } void ScreenshotGrabber::useRegionSelectedTooltip() { - helperTooltip->setHtml(tr("Press Enter to send a screenshot of the selection, Space to hide/show qTox window, or Escape to cancel.", - "Help text shown when a region has been selected")); + helperTooltip->setHtml(tr("Press %1 to send a screenshot of the selection, " + "%2 to hide/show qTox window, or %3 to cancel.", + "Help text shown when a region has been selected") + .arg(QString("%1").arg(tr("Enter", "[Enter] key on the keyboard")), + QString("%1").arg(tr("Space", "[Space] key on the keyboard")), + QString("%1").arg(tr("Escape", "[Escape] key on the keyboard"))) + ); adjustTooltipPosition(); }