translation of all project, and new translation mechanism
This commit is contained in:
+22
-22
@@ -39,11 +39,11 @@ Dialog {
|
||||
}
|
||||
|
||||
readonly property var categories: [
|
||||
{ key: "release", title: qsTr("Релизы") },
|
||||
{ key: "snapshot", title: qsTr("Снапшоты") },
|
||||
{ key: "old_beta", title: qsTr("Беты") },
|
||||
{ key: "old_alpha", title: qsTr("Альфы") },
|
||||
{ key: "other", title: qsTr("Прочие") }
|
||||
{ key: "release", title: Loc.t.version.filter.releases },
|
||||
{ key: "snapshot", title: Loc.t.version.filter.snapshots },
|
||||
{ key: "old_beta", title: Loc.t.version.filter.betas },
|
||||
{ key: "old_alpha", title: Loc.t.version.filter.alphas },
|
||||
{ key: "other", title: Loc.t.version.filter.other }
|
||||
]
|
||||
|
||||
// Каталог приходит из C++ уже отсортированным (новые сверху), поэтому здесь
|
||||
@@ -167,7 +167,7 @@ Dialog {
|
||||
implicitHeight: 52
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: qsTr("Удалить версию?")
|
||||
text: Loc.t.version.title.removeConfirm
|
||||
color: "#ffffff"
|
||||
font.pixelSize: 17
|
||||
font.bold: true
|
||||
@@ -192,9 +192,9 @@ Dialog {
|
||||
color: "#ffffff"
|
||||
font.pixelSize: 13
|
||||
text: removeConfirm.sizeMb > 0
|
||||
? qsTr("Файлы версии «%1» будут удалены из versions/ — освободится около %2 МБ. Скачать её заново можно в любой момент.")
|
||||
? Loc.t.version.hint.removeWithSize
|
||||
.arg(removeConfirm.versionId).arg(removeConfirm.sizeMb)
|
||||
: qsTr("Файлы версии «%1» будут удалены из versions/. Скачать её заново можно в любой момент.")
|
||||
: Loc.t.version.hint.remove
|
||||
.arg(removeConfirm.versionId)
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ Dialog {
|
||||
wrapMode: Text.Wrap
|
||||
color: "#cc6666"
|
||||
font.pixelSize: 12
|
||||
text: qsTr("На эту версию опираются установленные профили модлоадеров: %1. Без неё они не запустятся — их придётся переустановить.")
|
||||
text: Loc.t.version.warning.loaderProfilesDepend
|
||||
.arg(removeConfirm.dependents.join(", "))
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ Dialog {
|
||||
wrapMode: Text.Wrap
|
||||
color: "#cc6666"
|
||||
font.pixelSize: 12
|
||||
text: qsTr("Версию используют сборки: %1. Файлы понадобится скачать заново кнопкой «Установить».")
|
||||
text: Loc.t.version.warning.buildsDepend
|
||||
.arg(removeConfirm.builds.join(", "))
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ Dialog {
|
||||
wrapMode: Text.Wrap
|
||||
color: "#888888"
|
||||
font.pixelSize: 12
|
||||
text: qsTr("Библиотеки и ресурсы в libraries/ и assets/ общие для всех версий и остаются на месте.")
|
||||
text: Loc.t.version.hint.sharedFilesStay
|
||||
}
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ Dialog {
|
||||
spacing: 12
|
||||
|
||||
Button {
|
||||
text: qsTr("Отмена")
|
||||
text: Loc.t.common.button.cancel
|
||||
width: 130; height: 36
|
||||
contentItem: Text {
|
||||
text: parent.text
|
||||
@@ -259,7 +259,7 @@ Dialog {
|
||||
}
|
||||
|
||||
Button {
|
||||
text: qsTr("Удалить")
|
||||
text: Loc.t.common.button.remove
|
||||
width: 130; height: 36
|
||||
contentItem: Text {
|
||||
text: parent.text
|
||||
@@ -289,7 +289,7 @@ Dialog {
|
||||
implicitHeight: 52
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: qsTr("Версия Minecraft")
|
||||
text: Loc.t.common.label.minecraftVersion
|
||||
color: "#ffffff"
|
||||
font.pixelSize: 17
|
||||
font.bold: true
|
||||
@@ -370,7 +370,7 @@ Dialog {
|
||||
anchors.right: parent.right
|
||||
anchors.margins: 8
|
||||
height: 32
|
||||
placeholderText: qsTr("Поиск версии…")
|
||||
placeholderText: Loc.t.common.placeholder.searchVersion
|
||||
color: "#ffffff"
|
||||
placeholderTextColor: "#666666"
|
||||
background: Rectangle {
|
||||
@@ -424,7 +424,7 @@ Dialog {
|
||||
}
|
||||
contentItem: Text {
|
||||
leftPadding: installedOnlyBox.indicator.width + 8
|
||||
text: qsTr("Только установленные")
|
||||
text: Loc.t.version.filter.installedOnly
|
||||
color: "#aaaaaa"
|
||||
font.pixelSize: 11
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
@@ -542,10 +542,10 @@ Dialog {
|
||||
font.pixelSize: 12
|
||||
font.italic: true
|
||||
text: picker.backend.catalogLoading
|
||||
? qsTr("Загрузка списка версий…")
|
||||
? Loc.t.version.progress.loadingList
|
||||
: picker.backend.versionCatalog.length === 0
|
||||
? qsTr("Список версий недоступен — проверьте соединение")
|
||||
: qsTr("Ничего не найдено")
|
||||
? Loc.t.version.error.listUnreachable
|
||||
: Loc.t.common.status.nothingFound
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -567,7 +567,7 @@ Dialog {
|
||||
elide: Text.ElideRight
|
||||
color: picker.selectedId === "" ? "#666666" : "#91B315"
|
||||
font.pixelSize: 13
|
||||
text: picker.selectedId === "" ? qsTr("Версия не выбрана") : picker.selectedId
|
||||
text: picker.selectedId === "" ? Loc.t.version.status.notSelected : picker.selectedId
|
||||
}
|
||||
|
||||
Row {
|
||||
@@ -577,7 +577,7 @@ Dialog {
|
||||
spacing: 12
|
||||
|
||||
Button {
|
||||
text: qsTr("Отмена")
|
||||
text: Loc.t.common.button.cancel
|
||||
width: 110; height: 36
|
||||
contentItem: Text {
|
||||
text: parent.text
|
||||
@@ -593,7 +593,7 @@ Dialog {
|
||||
}
|
||||
|
||||
Button {
|
||||
text: qsTr("Выбрать")
|
||||
text: Loc.t.common.button.select
|
||||
width: 110; height: 36
|
||||
enabled: picker.selectedId !== ""
|
||||
opacity: enabled ? 1.0 : 0.45
|
||||
|
||||
Reference in New Issue
Block a user