From 25e50e2a98b641fd65ceea2b94c2435bb34256f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 28 May 2017 16:29:41 +0200 Subject: [PATCH] GUI: minor tweaks. Add tr(). --- gui/statsdialog.cpp | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/gui/statsdialog.cpp b/gui/statsdialog.cpp index 56f7af54a..ee1f6e225 100644 --- a/gui/statsdialog.cpp +++ b/gui/statsdialog.cpp @@ -98,29 +98,28 @@ void StatsDialog::PDFexport() { const QString Stat = QString( "

%1 %2

\n" - "

%3 : %4

\n" - "

%5 : %6

\n" - "

%7 : %8

\n" - "

%9 : %10

\n" - "

%11 : %12

\n" - "

%13 : %14

\n") - .arg("Statistics") + "

%3 : %4

\n" + "

%5 : %6

\n" + "

%7 : %8

\n" + "

%9 : %10

\n" + "

%11 : %12

\n" + "

%13 : %14

\n") + .arg(tr("Statistics")) .arg(QDate::currentDate().toString("dd.MM.yyyy")) - .arg("Errors") + .arg(tr("Errors")) .arg(mStatistics->GetCount(ShowTypes::ShowErrors)) - .arg("Warnings") + .arg(tr("Warnings")) .arg(mStatistics->GetCount(ShowTypes::ShowWarnings)) - .arg("Style warnings") + .arg(tr("Style warnings")) .arg(mStatistics->GetCount(ShowTypes::ShowStyle)) - .arg("Portability warnings") + .arg(tr("Portability warnings")) .arg(mStatistics->GetCount(ShowTypes::ShowPortability)) - .arg("Performance warnings") + .arg(tr("Performance warnings")) .arg(mStatistics->GetCount(ShowTypes::ShowPerformance)) - .arg("Information messages") - .arg(mStatistics->GetCount(ShowTypes::ShowInformation) - ); + .arg(tr("Information messages")) + .arg(mStatistics->GetCount(ShowTypes::ShowInformation)); - QString fileName = QFileDialog::getSaveFileName((QWidget*)0, "Export PDF", QString(), "*.pdf"); + QString fileName = QFileDialog::getSaveFileName((QWidget*)0, tr("Export PDF"), QString(), "*.pdf"); if (QFileInfo(fileName).suffix().isEmpty()) { fileName.append(".pdf"); }