translation of all project, and new translation mechanism
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "versionmanifestservice.h"
|
||||
#include "localization.h"
|
||||
|
||||
#include "launcherpaths.h"
|
||||
|
||||
@@ -126,7 +127,7 @@ void VersionManifestService::startRefresh()
|
||||
|
||||
if (reply->error() != QNetworkReply::NoError) {
|
||||
finishRefresh(false,
|
||||
tr("Не удалось обновить список версий: %1").arg(reply->errorString()));
|
||||
Loc::text("version.error.manifestFetchFailed").arg(reply->errorString()));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -134,7 +135,7 @@ void VersionManifestService::startRefresh()
|
||||
parseManifest(QJsonDocument::fromJson(reply->readAll()).object());
|
||||
// Пустой разбор — испорченный ответ; хороший кэш им не затираем.
|
||||
if (parsed.isEmpty()) {
|
||||
finishRefresh(false, tr("Манифест версий Mojang не удалось разобрать"));
|
||||
finishRefresh(false, Loc::text("version.error.manifestUnparsable"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user