diff --git a/Htmldocs/credits.html b/Htmldocs/credits.html index de706d00..6bae0936 100644 --- a/Htmldocs/credits.html +++ b/Htmldocs/credits.html @@ -8,7 +8,7 @@
- For other languages, go to:
+ This page in other languages:
http://www.apneaboard.com/wiki/index.php/OSCAR_Credits
- For other languages, go to:
+ This page in other languages:
http://www.apneaboard.com/wiki/index.php/OSCAR_Release_Notes
Changes and fixes in OSCAR v1.3.1-alpha.0 @@ -18,6 +18,7 @@
Changes and fixes in OSCAR v1.3.0 diff --git a/oscar/aboutdialog.cpp b/oscar/aboutdialog.cpp index 4f382f88..fe93bbae 100644 --- a/oscar/aboutdialog.cpp +++ b/oscar/aboutdialog.cpp @@ -2,6 +2,7 @@ * * Date created: 7/5/2018 * + * Copyright (c) 2019-2022 The OSCAR Team * Copyright (c) 2018 Mark Watkins * * This file is subject to the terms and conditions of the GNU General Public @@ -76,6 +77,10 @@ QString AboutDialog::getFilename(QString name) return filename; } +QString transLink (QString text) { + return text.replace("This page in other languages:", QObject::tr("This page in other languages:")); +} + QString AboutDialog::getAbout() { QString aboutFile = getFilename("about"); @@ -83,6 +88,7 @@ QString AboutDialog::getAbout() QString text = tr("Sorry, could not locate About file."); if (clfile.open(QIODevice::ReadOnly)) { text = clfile.readAll(); + text = transLink(text); } else qWarning() << "Could not open" << aboutFile << "for reading, error code" << clfile.error() << clfile.errorString(); // qDebug() << "Failed to open About file"; @@ -97,6 +103,7 @@ QString AboutDialog::getCredits() QString text = tr("Sorry, could not locate Credits file."); if (clfile.open(QIODevice::ReadOnly)) { text = clfile.readAll(); + text = transLink(text); } else { qWarning() << "Could not open" << creditsFile << "for reading, error code" << clfile.error() << clfile.errorString(); } @@ -128,6 +135,7 @@ QString AboutDialog::getRelnotes() } text += changeLog; text += "