summaryrefslogtreecommitdiffstats
path: root/logic/tasks
diff options
context:
space:
mode:
authorStiepen22 <stiepen22@gmx.de>2013-09-08 18:13:09 +0200
committerStiepen22 <stiepen22@gmx.de>2013-09-08 18:13:09 +0200
commit31e5a0fe6d75e124bc772faafcef2618e16c3dbf (patch)
treea49f2cd2669423fb185baaa6fed78370c3ae3e45 /logic/tasks
parentcbf3238f0e4d761ff34c9469f1ec88bd937152a5 (diff)
downloadMultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.tar
MultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.tar.gz
MultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.tar.lz
MultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.tar.xz
MultiMC-31e5a0fe6d75e124bc772faafcef2618e16c3dbf.zip
Changed all strings displayed to end user to use qts localization system
Diffstat (limited to 'logic/tasks')
-rw-r--r--logic/tasks/LoginTask.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/logic/tasks/LoginTask.cpp b/logic/tasks/LoginTask.cpp
index ad9de7f5..859827bc 100644
--- a/logic/tasks/LoginTask.cpp
+++ b/logic/tasks/LoginTask.cpp
@@ -28,7 +28,7 @@ LoginTask::LoginTask( const UserInfo& uInfo, QObject* parent ) : Task(parent), u
void LoginTask::executeTask()
{
- setStatus("Logging in...");
+ setStatus(tr("Logging in..."));
auto worker = MMC->qnam();
connect(worker, SIGNAL(finished(QNetworkReply*)), this, SLOT(processNetReply(QNetworkReply*)));
@@ -76,36 +76,36 @@ void LoginTask::processNetReply(QNetworkReply *reply)
}
else
{
- emitFailed("Failed to parse Minecraft version string.");
+ emitFailed(tr("Failed to parse Minecraft version string."));
}
}
else
{
if (responseStr.toLower() == "bad login")
- emitFailed("Invalid username or password.");
+ emitFailed(tr("Invalid username or password."));
else if (responseStr.toLower() == "old version")
- emitFailed("Launcher outdated, please update.");
+ emitFailed(tr("Launcher outdated, please update."));
else
- emitFailed("Login failed: " + responseStr);
+ emitFailed(tr("Login failed: %1").arg(responseStr));
}
}
else if (responseCode == 503)
{
- emitFailed("The login servers are currently unavailable. Check http://help.mojang.com/ for more info.");
+ emitFailed(tr("The login servers are currently unavailable. Check http://help.mojang.com/ for more info."));
}
else
{
- emitFailed(QString("Login failed: Unknown HTTP error %1 occurred.").arg(QString::number(responseCode)));
+ emitFailed(tr("Login failed: Unknown HTTP error %1 occurred.").arg(QString::number(responseCode)));
}
break;
}
case QNetworkReply::OperationCanceledError:
- emitFailed("Login canceled.");
+ emitFailed(tr("Login canceled."));
break;
default:
- emitFailed("Login failed: " + reply->errorString());
+ emitFailed(tr("Login failed: %1").arg(reply->errorString()));
break;
}
}