diff --git a/Source/Core/DolphinQt/AboutDialog.cpp b/Source/Core/DolphinQt/AboutDialog.cpp index 84f12ab408..c092c618e1 100644 --- a/Source/Core/DolphinQt/AboutDialog.cpp +++ b/Source/Core/DolphinQt/AboutDialog.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include "Common/Version.h" @@ -16,56 +17,70 @@ AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent) setWindowTitle(tr("About Dolphin")); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); - const QString small = - QStringLiteral("

"); - const QString medium = QStringLiteral("

"); + const QString text = + QStringLiteral(R"( +

Dolphin

- QString text; - text.append(QStringLiteral("

") + - tr("Dolphin") + QStringLiteral("

")); - text.append(QStringLiteral("

%1

") - .arg(QString::fromUtf8(Common::scm_desc_str.c_str()))); +

%VERSION_STRING%

- text.append(small + tr("Branch: ") + QString::fromUtf8(Common::scm_branch_str.c_str()) + - QStringLiteral("

")); - text.append(small + tr("Revision: ") + QString::fromUtf8(Common::scm_rev_git_str.c_str()) + - QStringLiteral("

")); +

+%BRANCH%:
+%REVISION%

+%QT_VERSION% +

- text.append(medium + tr("Check for updates: ") + - QStringLiteral( - "dolphin-emu.org/download

")); - // i18n: The word "free" in the standard phrase "free and open source" - // is "free" as in "freedom" - it refers to certain properties of the - // software's license, not the software's price. (It is true that Dolphin - // can be downloaded at no cost, but that's not what this message says.) - text.append(medium + tr("Dolphin is a free and open-source GameCube and Wii emulator.") + - QStringLiteral("

")); - text.append(medium + - tr("This software should not be used to play games you do not legally own.") + - QStringLiteral("

")); - text.append( - medium + - QStringLiteral( - "%1 | " - "%2 | " - "%3

") - .arg(tr("License")) - .arg(tr("Authors")) - .arg(tr("Support"))); +

+%CHECK_FOR_UPDATES%: dolphin-emu.org/download +

+ +

+%ABOUT_DOLPHIN% +

+ +

+%GAMES_YOU_OWN% +

+ +

+%LICENSE% | +%AUTHORS% | +%SUPPORT% +)") + .replace(QStringLiteral("%VERSION_STRING%"), + QString::fromUtf8(Common::scm_desc_str.c_str())) + .replace(QStringLiteral("%BRANCH%"), + // i18n: "Branch" means the version control term, not a literal tree branch. + tr("Branch: %1").arg(QString::fromUtf8(Common::scm_branch_str.c_str()))) + .replace(QStringLiteral("%REVISION%"), + tr("Revision: %1").arg(QString::fromUtf8(Common::scm_rev_git_str.c_str()))) + .replace(QStringLiteral("%QT_VERSION%"), + tr("Using Qt %1").arg(QStringLiteral(QT_VERSION_STR))) + .replace(QStringLiteral("%CHECK_FOR_UPDATES%"), tr("Check for updates")) + .replace(QStringLiteral("%ABOUT_DOLPHIN%"), + // i18n: The word "free" in the standard phrase "free and open source" + // is "free" as in "freedom" - it refers to certain properties of the + // software's license, not the software's price. (It is true that Dolphin + // can be downloaded at no cost, but that's not what this message says.) + tr("Dolphin is a free and open-source GameCube and Wii emulator.")) + .replace(QStringLiteral("%GAMES_YOU_OWN%"), + tr("This software should not be used to play games you do not legally own.")) + .replace(QStringLiteral("%LICENSE%"), tr("License")) + .replace(QStringLiteral("%AUTHORS%"), tr("Authors")) + .replace(QStringLiteral("%SUPPORT%"), tr("Support")); QLabel* text_label = new QLabel(text); text_label->setTextInteractionFlags(Qt::TextBrowserInteraction); text_label->setOpenExternalLinks(true); - QLabel* copyright = - new QLabel(small + - // i18n: This message uses curly quotes in English. If you want to use curly quotes - // in your translation, please use the type of curly quotes that's appropriate for - // your language. If you aren't sure which type is appropriate, see - // https://en.wikipedia.org/wiki/Quotation_mark#Specific_language_features - tr("\u00A9 2003-2015+ Dolphin Team. \u201cGameCube\u201d and \u201cWii\u201d are " - "trademarks of Nintendo. Dolphin is not affiliated with Nintendo in any way.") + - QStringLiteral("

")); + QLabel* copyright = new QLabel( + QStringLiteral("%1") + .arg( + // i18n: This message uses curly quotes in English. If you want to use curly quotes + // in your translation, please use the type of curly quotes that's appropriate for + // your language. If you aren't sure which type is appropriate, see + // https://en.wikipedia.org/wiki/Quotation_mark#Specific_language_features + tr("\u00A9 2003-2015+ Dolphin Team. \u201cGameCube\u201d and \u201cWii\u201d are " + "trademarks of Nintendo. Dolphin is not affiliated with Nintendo in any way."))); QLabel* logo = new QLabel(); logo->setPixmap(Resources::GetMisc(Resources::MiscID::LogoLarge));