summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-07-25 18:35:07 +0200
committerGitHub <noreply@github.com>2019-07-25 18:35:07 +0200
commitccbc5549490de065fd989cd7f1025dba10cb0c32 (patch)
treed30cc4410dda64161e47bd6cd61b2e14092411ff /src
parentMerge pull request #2743 from FernandoS27/surpress-assert (diff)
parentyuzu/main: Make error messages within OnCoreError more localization-friendly (diff)
downloadyuzu-ccbc5549490de065fd989cd7f1025dba10cb0c32.tar
yuzu-ccbc5549490de065fd989cd7f1025dba10cb0c32.tar.gz
yuzu-ccbc5549490de065fd989cd7f1025dba10cb0c32.tar.bz2
yuzu-ccbc5549490de065fd989cd7f1025dba10cb0c32.tar.lz
yuzu-ccbc5549490de065fd989cd7f1025dba10cb0c32.tar.xz
yuzu-ccbc5549490de065fd989cd7f1025dba10cb0c32.tar.zst
yuzu-ccbc5549490de065fd989cd7f1025dba10cb0c32.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index ae21f4753..381644694 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1843,13 +1843,14 @@ void GMainWindow::OnCoreError(Core::System::ResultStatus result, std::string det
"data, or other bugs.");
switch (result) {
case Core::System::ResultStatus::ErrorSystemFiles: {
- QString message = tr("yuzu was unable to locate a Switch system archive");
- if (!details.empty()) {
- message.append(tr(": %1. ").arg(QString::fromStdString(details)));
+ QString message;
+ if (details.empty()) {
+ message =
+ tr("yuzu was unable to locate a Switch system archive. %1").arg(common_message);
} else {
- message.append(tr(". "));
+ message = tr("yuzu was unable to locate a Switch system archive: %1. %2")
+ .arg(QString::fromStdString(details), common_message);
}
- message.append(common_message);
answer = QMessageBox::question(this, tr("System Archive Not Found"), message,
QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
@@ -1858,8 +1859,8 @@ void GMainWindow::OnCoreError(Core::System::ResultStatus result, std::string det
}
case Core::System::ResultStatus::ErrorSharedFont: {
- QString message = tr("yuzu was unable to locate the Switch shared fonts. ");
- message.append(common_message);
+ const QString message =
+ tr("yuzu was unable to locate the Switch shared fonts. %1").arg(common_message);
answer = QMessageBox::question(this, tr("Shared Fonts Not Found"), message,
QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
status_message = tr("Shared Font Missing");