summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-16 10:30:41 -0400
committerGravatar Lioncash2018-08-16 10:36:42 -0400
commit2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d (patch)
tree99ee0e756126dc9de9459dab4c6c1b5c0c226d95 /src
parentqt/main: Get rid of compilation warnings (diff)
downloadyuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.tar.gz
yuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.tar.xz
yuzu-2a3d7128d14133e8a2ae7f4559ed97bc7c843b8d.zip
qt/main: Make installation dialog text within OnMenuInstallToNAND() translatable
This is user-facing text, so it should be marked as translatable by Qt.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp29
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() {
637 std::array<u8, 0x1000> buffer{}; 637 std::array<u8, 0x1000> buffer{};
638 const int progress_maximum = static_cast<int>(src->GetSize() / buffer.size()); 638 const int progress_maximum = static_cast<int>(src->GetSize() / buffer.size());
639 639
640 QProgressDialog progress(fmt::format("Installing file \"{}\"...", src->GetName()).c_str(), 640 QProgressDialog progress(
641 "Cancel", 0, progress_maximum, this); 641 tr("Installing file \"%1\"...").arg(QString::fromStdString(src->GetName())),
642 tr("Cancel"), 0, progress_maximum, this);
642 progress.setWindowModality(Qt::WindowModal); 643 progress.setWindowModality(Qt::WindowModal);
643 644
644 for (size_t i = 0; i < src->GetSize(); i += buffer.size()) { 645 for (size_t i = 0; i < src->GetSize(); i += buffer.size()) {
@@ -672,9 +673,9 @@ void GMainWindow::OnMenuInstallToNAND() {
672 }; 673 };
673 674
674 const auto overwrite = [this]() { 675 const auto overwrite = [this]() {
675 return QMessageBox::question(this, "Failed to Install", 676 return QMessageBox::question(this, tr("Failed to Install"),
676 "The file you are attempting to install already exists " 677 tr("The file you are attempting to install already exists "
677 "in the cache. Would you like to overwrite it?") == 678 "in the cache. Would you like to overwrite it?")) ==
678 QMessageBox::Yes; 679 QMessageBox::Yes;
679 }; 680 };
680 681
@@ -713,15 +714,15 @@ void GMainWindow::OnMenuInstallToNAND() {
713 return; 714 return;
714 } 715 }
715 716
716 static const QStringList tt_options{"System Application", 717 const QStringList tt_options{tr("System Application"),
717 "System Archive", 718 tr("System Archive"),
718 "System Application Update", 719 tr("System Application Update"),
719 "Firmware Package (Type A)", 720 tr("Firmware Package (Type A)"),
720 "Firmware Package (Type B)", 721 tr("Firmware Package (Type B)"),
721 "Game", 722 tr("Game"),
722 "Game Update", 723 tr("Game Update"),
723 "Game DLC", 724 tr("Game DLC"),
724 "Delta Title"}; 725 tr("Delta Title")};
725 bool ok; 726 bool ok;
726 const auto item = QInputDialog::getItem( 727 const auto item = QInputDialog::getItem(
727 this, tr("Select NCA Install Type..."), 728 this, tr("Select NCA Install Type..."),