GUI: minor tweaks. Add tr().

This commit is contained in:
Daniel Marjamäki 2017-05-28 16:29:41 +02:00
parent 5338339c2c
commit 25e50e2a98
1 changed files with 15 additions and 16 deletions

View File

@ -98,29 +98,28 @@ void StatsDialog::PDFexport()
{ {
const QString Stat = QString( const QString Stat = QString(
"<center><h1>%1 %2</h1></center>\n" "<center><h1>%1 %2</h1></center>\n"
"<font color=\"red\"><h3>%3 : %4</h3></color>\n" "<font color=\"red\"><h3>%3 : %4</h3></font>\n"
"<font color=\"green\"><h3>%5 : %6</h3></color>\n" "<font color=\"green\"><h3>%5 : %6</h3></font>\n"
"<font color=\"orange\"><h3>%7 : %8</h3></color>\n" "<font color=\"orange\"><h3>%7 : %8</h3></font>\n"
"<font color=\"blue\"><h3>%9 : %10</h3></color>\n" "<font color=\"blue\"><h3>%9 : %10</h3></font>\n"
"<font color=\"blue\"><h3>%11 : %12</h3></color>\n" "<font color=\"blue\"><h3>%11 : %12</h3></font>\n"
"<font color=\"purple\"><h3>%13 : %14</h3></color>\n") "<font color=\"purple\"><h3>%13 : %14</h3></font>\n")
.arg("Statistics") .arg(tr("Statistics"))
.arg(QDate::currentDate().toString("dd.MM.yyyy")) .arg(QDate::currentDate().toString("dd.MM.yyyy"))
.arg("Errors") .arg(tr("Errors"))
.arg(mStatistics->GetCount(ShowTypes::ShowErrors)) .arg(mStatistics->GetCount(ShowTypes::ShowErrors))
.arg("Warnings") .arg(tr("Warnings"))
.arg(mStatistics->GetCount(ShowTypes::ShowWarnings)) .arg(mStatistics->GetCount(ShowTypes::ShowWarnings))
.arg("Style warnings") .arg(tr("Style warnings"))
.arg(mStatistics->GetCount(ShowTypes::ShowStyle)) .arg(mStatistics->GetCount(ShowTypes::ShowStyle))
.arg("Portability warnings") .arg(tr("Portability warnings"))
.arg(mStatistics->GetCount(ShowTypes::ShowPortability)) .arg(mStatistics->GetCount(ShowTypes::ShowPortability))
.arg("Performance warnings") .arg(tr("Performance warnings"))
.arg(mStatistics->GetCount(ShowTypes::ShowPerformance)) .arg(mStatistics->GetCount(ShowTypes::ShowPerformance))
.arg("Information messages") .arg(tr("Information messages"))
.arg(mStatistics->GetCount(ShowTypes::ShowInformation) .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()) { if (QFileInfo(fileName).suffix().isEmpty()) {
fileName.append(".pdf"); fileName.append(".pdf");
} }