From 6614e385811d440c09874eb69a6496f996e94a12 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 1 Oct 2015 16:17:20 +0300 Subject: [PATCH] printoptions.cpp: add missing tr() calls Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/printoptions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp index f97656789..79bcee158 100644 --- a/qt-ui/printoptions.cpp +++ b/qt-ui/printoptions.cpp @@ -171,8 +171,8 @@ void PrintOptions::on_deleteButton_clicked() { QString templateName = getSelectedTemplate(); QMessageBox msgBox; - msgBox.setText("This action cannot be undone!"); - msgBox.setInformativeText("Delete '" + templateName + "' template?"); + msgBox.setText(tr("This action cannot be undone!")); + msgBox.setInformativeText(tr("Delete template: %1?").arg(templateName)); msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); msgBox.setDefaultButton(QMessageBox::Cancel); if (msgBox.exec() == QMessageBox::Ok) {