diff options
| author | 2021-07-12 22:12:09 -0700 | |
|---|---|---|
| committer | 2021-07-12 22:12:09 -0700 | |
| commit | 00ce8eff65190d2049e25665fe0b3f99f716a99f (patch) | |
| tree | b36c78d4168e1258e8b7b0722afbb96746dd3e48 /src | |
| parent | Merge pull request #6593 from german77/no_sdl (diff) | |
| parent | qt/main: Make title string more i18n-friendly (diff) | |
| download | yuzu-00ce8eff65190d2049e25665fe0b3f99f716a99f.tar.gz yuzu-00ce8eff65190d2049e25665fe0b3f99f716a99f.tar.xz yuzu-00ce8eff65190d2049e25665fe0b3f99f716a99f.zip | |
Merge pull request #6574 from lioncash/i18n
qt/main: Make title string more i18n-friendly
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index cb9c01154..fbd5001e9 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1431,8 +1431,10 @@ void GMainWindow::BootGame(const QString& filename, std::size_t program_index, S | |||
| 1431 | std::filesystem::path{filename.toStdU16String()}.filename()); | 1431 | std::filesystem::path{filename.toStdU16String()}.filename()); |
| 1432 | } | 1432 | } |
| 1433 | const bool is_64bit = system.Kernel().CurrentProcess()->Is64BitProcess(); | 1433 | const bool is_64bit = system.Kernel().CurrentProcess()->Is64BitProcess(); |
| 1434 | const auto instruction_set_suffix = is_64bit ? " (64-bit)" : " (32-bit)"; | 1434 | const auto instruction_set_suffix = is_64bit ? tr("(64-bit)") : tr("(32-bit)"); |
| 1435 | title_name += instruction_set_suffix; | 1435 | title_name = tr("%1 %2", "%1 is the title name. %2 indicates if the title is 64-bit or 32-bit") |
| 1436 | .arg(QString::fromStdString(title_name), instruction_set_suffix) | ||
| 1437 | .toStdString(); | ||
| 1436 | LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version); | 1438 | LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version); |
| 1437 | const auto gpu_vendor = system.GPU().Renderer().GetDeviceVendor(); | 1439 | const auto gpu_vendor = system.GPU().Renderer().GetDeviceVendor(); |
| 1438 | UpdateWindowTitle(title_name, title_version, gpu_vendor); | 1440 | UpdateWindowTitle(title_name, title_version, gpu_vendor); |