diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-16 16:30:41 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-16 16:36:42 +0200 |
commit | 2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d (patch) | |
tree | 99ee0e756126dc9de9459dab4c6c1b5c0c226d95 | |
parent | qt/main: Get rid of compilation warnings (diff) | |
download | yuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.tar yuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.tar.gz yuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.tar.bz2 yuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.tar.lz yuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.tar.xz yuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.tar.zst yuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.zip |
-rw-r--r-- | src/yuzu/main.cpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 2e62135f4..b8fc7d514 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -637,8 +637,9 @@ void GMainWindow::OnMenuInstallToNAND() { std::array<u8, 0x1000> buffer{}; const int progress_maximum = static_cast<int>(src->GetSize() / buffer.size()); - QProgressDialog progress(fmt::format("Installing file \"{}\"...", src->GetName()).c_str(), - "Cancel", 0, progress_maximum, this); + QProgressDialog progress( + tr("Installing file \"%1\"...").arg(QString::fromStdString(src->GetName())), + tr("Cancel"), 0, progress_maximum, this); progress.setWindowModality(Qt::WindowModal); for (size_t i = 0; i < src->GetSize(); i += buffer.size()) { @@ -672,9 +673,9 @@ void GMainWindow::OnMenuInstallToNAND() { }; const auto overwrite = [this]() { - return QMessageBox::question(this, "Failed to Install", - "The file you are attempting to install already exists " - "in the cache. Would you like to overwrite it?") == + return QMessageBox::question(this, tr("Failed to Install"), + tr("The file you are attempting to install already exists " + "in the cache. Would you like to overwrite it?")) == QMessageBox::Yes; }; @@ -713,15 +714,15 @@ void GMainWindow::OnMenuInstallToNAND() { return; } - static const QStringList tt_options{"System Application", - "System Archive", - "System Application Update", - "Firmware Package (Type A)", - "Firmware Package (Type B)", - "Game", - "Game Update", - "Game DLC", - "Delta Title"}; + const QStringList tt_options{tr("System Application"), + tr("System Archive"), + tr("System Application Update"), + tr("Firmware Package (Type A)"), + tr("Firmware Package (Type B)"), + tr("Game"), + tr("Game Update"), + tr("Game DLC"), + tr("Delta Title")}; bool ok; const auto item = QInputDialog::getItem( this, tr("Select NCA Install Type..."), |