summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-06-25 23:41:16 +0200
committerPetr Mrázek <peterix@gmail.com>2019-06-25 23:41:16 +0200
commit34611c00e3f04b1791bff2b6df7c5ea14d403de4 (patch)
tree472e1da8e8151ccdfb9749c1e3e5a31f81a5e99b
parent44a7c5867b4172034e76bfb678c66c3bf7d81507 (diff)
parent320637e8dceb4be891fd0ff631804fe886751c41 (diff)
downloadMultiMC-34611c00e3f04b1791bff2b6df7c5ea14d403de4.tar
MultiMC-34611c00e3f04b1791bff2b6df7c5ea14d403de4.tar.gz
MultiMC-34611c00e3f04b1791bff2b6df7c5ea14d403de4.tar.lz
MultiMC-34611c00e3f04b1791bff2b6df7c5ea14d403de4.tar.xz
MultiMC-34611c00e3f04b1791bff2b6df7c5ea14d403de4.zip
Merge branch 'feature/update_translation_fix' into develop
-rw-r--r--api/logic/updater/DownloadTask.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/api/logic/updater/DownloadTask.cpp b/api/logic/updater/DownloadTask.cpp
index de83e769..dbd8c65a 100644
--- a/api/logic/updater/DownloadTask.cpp
+++ b/api/logic/updater/DownloadTask.cpp
@@ -131,7 +131,14 @@ void DownloadTask::processDownloadedVersionInfo()
QObject::connect(netJob.get(), &NetJob::progress, this, &DownloadTask::fileDownloadProgressChanged);
QObject::connect(netJob.get(), &NetJob::failed, this, &DownloadTask::fileDownloadFailed);
- setStatus(tr("Downloading %1 update files.").arg(QString::number(netJob->size())));
+ if(netJob->size() == 1) // Translation issues... see https://github.com/MultiMC/MultiMC5/issues/1701
+ {
+ setStatus(tr("Downloading one update file."));
+ }
+ else
+ {
+ setStatus(tr("Downloading %1 update files.").arg(QString::number(netJob->size())));
+ }
qDebug() << "Begin downloading update files to" << m_updateFilesDir.path();
m_filesNetJob = netJob;
m_filesNetJob->start();