From 90e773d9fb6ed8e80b502cc5d8f5763d94a41039 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Mon, 14 Mar 2011 19:56:51 +0100
Subject: Mention translator in about dialog and record license in translation
 file.

Resolves: #786.

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");
-- 
cgit v0.10.2-6-g49f6