summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Swift/QtUI/QtAboutWidget.cpp6
-rw-r--r--Swift/QtUI/QtStrings.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/Swift/QtUI/QtAboutWidget.cpp b/Swift/QtUI/QtAboutWidget.cpp
index 70efc02..90f04f2 100644
--- a/Swift/QtUI/QtAboutWidget.cpp
+++ b/Swift/QtUI/QtAboutWidget.cpp
@@ -39,12 +39,18 @@ QtAboutWidget::QtAboutWidget() : QDialog() {
QLabel* versionLabel = new QLabel(QString("<center><font size='-1'>") + tr("Version %1").arg(QCoreApplication::applicationVersion()) + "</font></center>", this);
mainLayout->addWidget(versionLabel);
+
QString buildString = QString("<center><font size='-1'>") + QString(tr("Built with Qt %1")).arg(QT_VERSION_STR);
buildString += QString("<br/>") + QString(tr("Running with Qt %1")).arg(qVersion());
buildString += "</font></center>";
QLabel* buildLabel = new QLabel(buildString, this);
mainLayout->addWidget(buildLabel);
+ if (QCoreApplication::translate("TRANSLATION_INFO", "TRANSLATION_AUTHOR") != "TRANSLATION_AUTHOR") {
+ mainLayout->addWidget(new QLabel(QString("<center><font size='-1'>") + QString(tr("Using the English translation by\n%1")).arg(QCoreApplication::translate("TRANSLATION_INFO", "TRANSLATION_AUTHOR")) + "</font></center>", this));
+ }
+ QCoreApplication::translate("TRANSLATION_INFO", "TRANSLATION_LICENSE", "Should be the following text: 'This translation is BSD-licensed. See http://www.opensource.org/licenses/bsd-license.php'");
+
QPushButton* licenseButton = new QPushButton(tr("View License"), this);
mainLayout->addWidget(licenseButton);
connect(licenseButton, SIGNAL(clicked()), this, SLOT(handleLicenseClicked()));
diff --git a/Swift/QtUI/QtStrings.h b/Swift/QtUI/QtStrings.h
index 6d31a93..13fdd73 100644
--- a/Swift/QtUI/QtStrings.h
+++ b/Swift/QtUI/QtStrings.h
@@ -31,3 +31,7 @@ QT_TRANSLATE_NOOP("QWizard", "&Next >");
QT_TRANSLATE_NOOP("QDialogButtonBox", "&Yes");
QT_TRANSLATE_NOOP("QDialogButtonBox", "&No");
+QT_TRANSLATE_NOOP("QDialogButtonBox", "&OK");
+QT_TRANSLATE_NOOP("QDialogButtonBox", "OK");
+QT_TRANSLATE_NOOP("QDialogButtonBox", "&Cancel");
+QT_TRANSLATE_NOOP("QDialogButtonBox", "Cancel");