summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2021-07-08 15:06:14 -0400
committerGravatar Lioncash2021-07-08 15:06:16 -0400
commit5c541b0b423e7a289623ed2b8f13747f03f05af2 (patch)
tree740af4bcbef97c1d239281321065df08a61aee6b /src
parentMerge pull request #6539 from lat9nq/default-setting (diff)
downloadyuzu-5c541b0b423e7a289623ed2b8f13747f03f05af2.tar.gz
yuzu-5c541b0b423e7a289623ed2b8f13747f03f05af2.tar.xz
yuzu-5c541b0b423e7a289623ed2b8f13747f03f05af2.zip
qt/main: Make title string more i18n-friendly
Currently, whether or not the title is 32-bit or 64-bit was being appended as a suffix to the title, which is fine for left-to-right languages, but may not always fly so smoothly with some right-to-left languages. We also weren't marking that portion of the string as translatable, which prevents translators from translating part of the title string.
Diffstat (limited to '')
-rw-r--r--src/yuzu/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 5ed3b90b8..567e06099 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1428,8 +1428,10 @@ void GMainWindow::BootGame(const QString& filename, std::size_t program_index, S
1428 std::filesystem::path{filename.toStdU16String()}.filename()); 1428 std::filesystem::path{filename.toStdU16String()}.filename());
1429 } 1429 }
1430 const bool is_64bit = system.Kernel().CurrentProcess()->Is64BitProcess(); 1430 const bool is_64bit = system.Kernel().CurrentProcess()->Is64BitProcess();
1431 const auto instruction_set_suffix = is_64bit ? " (64-bit)" : " (32-bit)"; 1431 const auto instruction_set_suffix = is_64bit ? tr("(64-bit)") : tr("(32-bit)");
1432 title_name += instruction_set_suffix; 1432 title_name = tr("%1 %2", "%1 is the title name. %2 indicates if the title is 64-bit or 32-bit")
1433 .arg(QString::fromStdString(title_name), instruction_set_suffix)
1434 .toStdString();
1433 LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version); 1435 LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version);
1434 const auto gpu_vendor = system.GPU().Renderer().GetDeviceVendor(); 1436 const auto gpu_vendor = system.GPU().Renderer().GetDeviceVendor();
1435 UpdateWindowTitle(title_name, title_version, gpu_vendor); 1437 UpdateWindowTitle(title_name, title_version, gpu_vendor);