Browse Source

Merge pull request #6574 from lioncash/i18n

qt/main: Make title string more i18n-friendly
nce_cpp
bunnei 5 years ago
committed by GitHub
parent
commit
55c63836b2
  1. 6
      src/yuzu/main.cpp

6
src/yuzu/main.cpp

@ -1431,8 +1431,10 @@ void GMainWindow::BootGame(const QString& filename, std::size_t program_index, S
std::filesystem::path{filename.toStdU16String()}.filename()); std::filesystem::path{filename.toStdU16String()}.filename());
} }
const bool is_64bit = system.Kernel().CurrentProcess()->Is64BitProcess(); const bool is_64bit = system.Kernel().CurrentProcess()->Is64BitProcess();
const auto instruction_set_suffix = is_64bit ? " (64-bit)" : " (32-bit)";
title_name += instruction_set_suffix;
const auto instruction_set_suffix = is_64bit ? tr("(64-bit)") : tr("(32-bit)");
title_name = tr("%1 %2", "%1 is the title name. %2 indicates if the title is 64-bit or 32-bit")
.arg(QString::fromStdString(title_name), instruction_set_suffix)
.toStdString();
LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version); LOG_INFO(Frontend, "Booting game: {:016X} | {} | {}", title_id, title_name, title_version);
const auto gpu_vendor = system.GPU().Renderer().GetDeviceVendor(); const auto gpu_vendor = system.GPU().Renderer().GetDeviceVendor();
UpdateWindowTitle(title_name, title_version, gpu_vendor); UpdateWindowTitle(title_name, title_version, gpu_vendor);

Loading…
Cancel
Save