summaryrefslogtreecommitdiffstats
path: root/logic/OneSixUpdate.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-03-23 19:07:13 +0100
committerPetr Mrázek <peterix@gmail.com>2014-03-23 19:07:13 +0100
commit4a24ea6c38015a1a1d937c85b9caedaf5ce251d8 (patch)
tree4c628e713593b2d3ec416fe1decdcb1b8cc14b87 /logic/OneSixUpdate.cpp
parenta01b1707deee6ee1a8e5102ad991368da3312259 (diff)
downloadMultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar
MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar.gz
MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar.lz
MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.tar.xz
MultiMC-4a24ea6c38015a1a1d937c85b9caedaf5ce251d8.zip
Make some more error messages translateable.
Diffstat (limited to 'logic/OneSixUpdate.cpp')
-rw-r--r--logic/OneSixUpdate.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/logic/OneSixUpdate.cpp b/logic/OneSixUpdate.cpp
index 65f30cda..cddd0def 100644
--- a/logic/OneSixUpdate.cpp
+++ b/logic/OneSixUpdate.cpp
@@ -96,7 +96,6 @@ void OneSixUpdate::versionFileStart()
void OneSixUpdate::versionFileFinished()
{
NetActionPtr DlJob = specificVersionDownloadJob->first();
- OneSixInstance *inst = (OneSixInstance *)m_inst;
QString version_id = targetVersion->descriptor();
QString inst_dir = m_inst->instanceRoot();
@@ -152,7 +151,7 @@ void OneSixUpdate::assetIndexStart()
QString assetName = version->assets;
QUrl indexUrl = "http://" + URLConstants::AWS_DOWNLOAD_INDEXES + assetName + ".json";
QString localPath = assetName + ".json";
- auto job = new NetJob("Asset index for " + inst->name());
+ auto job = new NetJob(tr("Asset index for %1").arg(inst->name()));
auto metacache = MMC->metacache();
auto entry = metacache->resolveEntry("asset_indexes", localPath);
@@ -198,7 +197,7 @@ void OneSixUpdate::assetIndexFinished()
if (dls.size())
{
setStatus(tr("Getting the assets files from Mojang..."));
- auto job = new NetJob("Assets for " + inst->name());
+ auto job = new NetJob(tr("Assets for %1").arg(inst->name()));
for (auto dl : dls)
job->addNetAction(dl);
jarlibDownloadJob.reset(job);
@@ -255,7 +254,7 @@ void OneSixUpdate::jarlibStart()
QString localPath = version_id + "/" + version_id + ".jar";
QString urlstr = "http://" + URLConstants::AWS_DOWNLOAD_VERSIONS + localPath;
- auto job = new NetJob("Libraries for instance " + inst->name());
+ auto job = new NetJob(tr("Libraries for instance %1").arg(inst->name()));
auto metacache = MMC->metacache();
auto entry = metacache->resolveEntry("versions", localPath);