aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs/ResourceDownloadDialog.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2023-01-08 12:28:55 -0300
committerflow <flowlnlnln@gmail.com>2023-01-13 16:23:09 -0300
commitbd36f8e220fb3019b0a9588b21ed1cbce5afbf93 (patch)
treebdf3f7d8149fe9aa291dc30732222f1f18c2d755 /launcher/ui/dialogs/ResourceDownloadDialog.cpp
parent3a168ba6dd3ea0fecce1e88a1d7538647b350c28 (diff)
downloadPrismLauncher-bd36f8e220fb3019b0a9588b21ed1cbce5afbf93.tar.gz
PrismLauncher-bd36f8e220fb3019b0a9588b21ed1cbce5afbf93.tar.bz2
PrismLauncher-bd36f8e220fb3019b0a9588b21ed1cbce5afbf93.zip
fix(RD): set resource strings for ReviewMessageBox too
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui/dialogs/ResourceDownloadDialog.cpp')
-rw-r--r--launcher/ui/dialogs/ResourceDownloadDialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/launcher/ui/dialogs/ResourceDownloadDialog.cpp b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
index fa3352b3..147373c9 100644
--- a/launcher/ui/dialogs/ResourceDownloadDialog.cpp
+++ b/launcher/ui/dialogs/ResourceDownloadDialog.cpp
@@ -99,7 +99,7 @@ void ResourceDownloadDialog::initializeContainer()
void ResourceDownloadDialog::connectButtons()
{
auto OkButton = m_buttons.button(QDialogButtonBox::Ok);
- OkButton->setToolTip(tr("Opens a new popup to review your selected %1 and confirm your selection. Shortcut: Ctrl+Return").arg(resourceString()));
+ OkButton->setToolTip(tr("Opens a new popup to review your selected %1 and confirm your selection. Shortcut: Ctrl+Return").arg(resourcesString()));
connect(OkButton, &QPushButton::clicked, this, &ResourceDownloadDialog::confirm);
auto CancelButton = m_buttons.button(QDialogButtonBox::Cancel);
@@ -114,7 +114,8 @@ void ResourceDownloadDialog::confirm()
auto keys = m_selected.keys();
keys.sort(Qt::CaseInsensitive);
- auto confirm_dialog = ReviewMessageBox::create(this, tr("Confirm %1 to download").arg(resourceString()));
+ auto confirm_dialog = ReviewMessageBox::create(this, tr("Confirm %1 to download").arg(resourcesString()));
+ confirm_dialog->retranslateUi(resourcesString());
for (auto& task : keys) {
confirm_dialog->appendResource({ task, m_selected.find(task).value()->getFilename() });