From 8956fc27cee35947052a2c9ff5b5e9e4d4f1faca Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 29 Jul 2020 02:35:24 +1000 Subject: [PATCH] Qt: Make about dialog more translation-friendly --- src/duckstation-qt/aboutdialog.cpp | 17 +++++++++++++++++ src/duckstation-qt/aboutdialog.ui | 11 ----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/duckstation-qt/aboutdialog.cpp b/src/duckstation-qt/aboutdialog.cpp index 2ab7b5538..98b74e39a 100644 --- a/src/duckstation-qt/aboutdialog.cpp +++ b/src/duckstation-qt/aboutdialog.cpp @@ -15,6 +15,23 @@ AboutDialog::AboutDialog(QWidget* parent /* = nullptr */) : QDialog(parent) m_ui.description->setTextInteractionFlags(Qt::TextBrowserInteraction); m_ui.description->setOpenExternalLinks(true); + m_ui.description->setText(QStringLiteral(R"( + + +

%1

+

%2:

+

Connor McLaughlin <stenzek@gmail.com>

+

%3 icons8

+

%4 | GitHub | Discord

+)") + .arg(tr("DuckStation is a free and open-source simulator/emulator of the Sony " + "PlayStationTM console, focusing on " + "playability, speed, and long-term maintainability.")) + .arg(tr("Authors")) + .arg(tr("Icon by")) + .arg(tr("License"))); } AboutDialog::~AboutDialog() = default; diff --git a/src/duckstation-qt/aboutdialog.ui b/src/duckstation-qt/aboutdialog.ui index d71b856be..ba663a6f1 100644 --- a/src/duckstation-qt/aboutdialog.ui +++ b/src/duckstation-qt/aboutdialog.ui @@ -111,17 +111,6 @@ - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-size:10pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">DuckStation is a free and open-source simulator/emulator of the Sony PlayStation<span style=" vertical-align:super;">TM</span> console, focusing on playability, speed, and long-term maintainability.</p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Authors</span>:</p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Connor McLaughlin &lt;stenzek@gmail.com&gt;</p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Duck icon by <a href="https://icons8.com/icon/74847/platforms.undefined.short-title"><span style=" text-decoration: underline; color:#0057ae;">icons8</span></a></p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://github.com/stenzek/duckstation/blob/master/LICENSE"><span style=" text-decoration: underline; color:#0057ae;">License</span></a> | <a href="https://github.com/stenzek/duckstation"><span style=" text-decoration: underline; color:#0057ae;">GitHub</span></a> | <a href="https://discord.gg/Buktv3t"><span style=" text-decoration: underline; color:#0057ae;">Discord</span></a></p></body></html> - true