translation of all project, and new translation mechanism

This commit is contained in:
2026-09-03 09:18:48 +03:00
parent 00e7c957e4
commit 01af372ef2
32 changed files with 2813 additions and 537 deletions
+3 -2
View File
@@ -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;
}