summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-14 18:56:51 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-14 18:58:17 (GMT)
commit90e773d9fb6ed8e80b502cc5d8f5763d94a41039 (patch)
tree105e0808ffe33b8928820559733c07dd847a6823 /Swift/QtUI
parent2f6fe2eb38dc4fa3911182b5e8cf813b4bb2a465 (diff)
downloadswift-90e773d9fb6ed8e80b502cc5d8f5763d94a41039.zip
swift-90e773d9fb6ed8e80b502cc5d8f5763d94a41039.tar.bz2
Mention translator in about dialog and record license in translation file.
Resolves: #786.
Diffstat (limited to 'Swift/QtUI')
-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");