Merge branch 'tweak/unsupported-mc' into 'dev'

Add warning to wizard for unsupported mc

See merge request crafty-controller/crafty-4!701
This commit is contained in:
Iain Powrie 2024-02-02 18:00:25 +00:00
commit 6d29ee23d0
14 changed files with 29 additions and 1 deletions

View File

@ -16,6 +16,7 @@
### Tweaks
- Refactor Forge server initialisation flow for newer versions ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/687))
- Remove scroll bars from player management ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/693))
- Add warning to wizard for unsupported mc ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/701))
### Lang
- Update `zh_CN, pl_PL, nl_BE, lv_LV, he_IL, fr_FR, de_DE, lol_EN` translations for `4.2.3` ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/696))
- New `uk_UA, tr_TR, th_TH` translations for `4.2.3` ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/696))

View File

@ -107,7 +107,8 @@
</select>
</div>
</div>
<span data-html="true" class="version-hint text-center"
data-content="⚠️ {{ translate('serverWizard', 'unsupported', data['lang']) }} ⚠️" , data-placement="right"></span>
<div class="col-sm-12">
<div class="form-group">
<label for="server_name">{{ translate('serverWizard', 'serverName', data['lang']) }}</label>
@ -1233,6 +1234,20 @@
}
})
}
$("#server").change(function (){
let selected_version = $("#server :selected").text().split(".");
if(parseInt(selected_version[0]) === 1 && parseInt(selected_version[1]) < 8 ){
$('[data-toggle="popover"]').popover();
if ($(window).width() < 1000) {
$('.version-hint').attr("data-placement", "top")
} else {
$('.version-hint').attr("data-placement", "right")
}
$('.version-hint').popover("show");
}else{
$('.version-hint').popover("hide");
}
});
function serverJarChange(selectObj) {
const type_select = document.getElementById('server_jar')

View File

@ -579,6 +579,7 @@
"serverUpload": "Als Zip-Datei Gepackten Server hochladen",
"serverVersion": "Server Version",
"sizeInGB": "Größe in GB",
"unsupported": "Minecraft-Versionen vor 1.8 sind nicht vollständig auf Kompatibilität getestet. Bei einer Installation verhalten diese sich möglicherweise nicht wie erwartet.",
"uploadButton": "Hochladen",
"uploadZip": "Zip-Datei für Serverimport hochladen",
"zipPath": "Server Pfad"

View File

@ -578,6 +578,7 @@
"serverUpload": "Upload Zipped Server",
"serverVersion": "Server Version",
"sizeInGB": "Size in GB",
"unsupported": "Minecraft versions lower than 1.8 are not supported by Crafty. You may still install it. Results will vary.",
"uploadButton": "Upload",
"uploadZip": "Upload Zip File For Server Import",
"zipPath": "Server Path"

View File

@ -579,6 +579,7 @@
"serverUpload": "Charger le fichier Zippé",
"serverVersion": "Version du Serveur",
"sizeInGB": "Taille en GB",
"unsupported": "Les versions Minecraft inférieures à 1.8 ne sont pas supportées par Crafty. Elles peuvent être installées, mais leur fonctionnement peut varier.",
"uploadButton": "Chargement",
"uploadZip": "Charger le fichier pour l'importation du Serveur",
"zipPath": "Chemin du Serveur"

View File

@ -579,6 +579,7 @@
"serverUpload": "העלה שרת מכווץ",
"serverVersion": "גרסת השרת",
"sizeInGB": "גודל ב-GB",
"unsupported": "גרסאות מיינקראפט מתחת ל1.8 לא נתמכות על ידי קראפטי. אפשר להתקין אותם אבל הביצועים לא יהיו עקביים.",
"uploadButton": "העלה",
"uploadZip": "העלה קובץ Zip לייבוא שרת",
"zipPath": "נתיב שרת"

View File

@ -579,6 +579,7 @@
"serverUpload": "UPLOADZ ZIPPED SERVR",
"serverVersion": "SERVR VERZHUN",
"sizeInGB": "SIEZ IN GIGABITEZ",
"unsupported": "MINECRAFTZ OLDR THAN 1.8 NOT FRENDS WIF CWAFTY. U CAN STILL TRY INSTALLIN'. IT MIGHT WORKS, MIGHT NOT.",
"uploadButton": "UPLOADZ",
"uploadZip": "UPLOADZ ZIP FISH FOR SERVR BRING IN",
"zipPath": "WER IZ ZIP FISH (PETH)"

View File

@ -580,6 +580,7 @@
"serverUpload": "Augšupielādē Saspiestu (Zipotu) Serveri",
"serverVersion": "Servera Versija",
"sizeInGB": "lielums, GB",
"unsupported": "Minecraft versijas zem 1.8 netiek atbalstītas iekš Crafty. Jūs tāpat variet tās instalēt, bet rezultāti atškirsies.",
"uploadButton": "Augšupielādēt",
"uploadZip": "Augšupielādē Zip Failu Priekš Serveru Importa",
"zipPath": "Servera Ceļš"

View File

@ -579,6 +579,7 @@
"serverUpload": "Gezipt bestand uploaden",
"serverVersion": "Serverversie",
"sizeInGB": "Grootte in GB",
"unsupported": "Minecraft-versies lager dan 1.8 worden niet ondersteund door Crafty. Je kunt het nog steeds installeren. De resultaten kunnen variëren.",
"uploadButton": "Uploaden",
"uploadZip": "Upload zip-bestand voor serverimport",
"zipPath": "Serverpad"

View File

@ -578,6 +578,7 @@
"serverUpload": "Wgraj ZIP Serwera",
"serverVersion": "Wersja serwera",
"sizeInGB": "Wielkość w GB",
"unsupported": "Wersje Minecrafta poniżej 1.8 nie są wspierane przez Crafty. Mimo to możesz je zainstalować - jednakże nie jesteśmy w stanie zagwarantować ich działanie.",
"uploadButton": "Wgraj",
"uploadZip": "Wgraj plik Zip dla imprtowania serwera",
"zipPath": "Server Path"

View File

@ -578,6 +578,7 @@
"serverUpload": "อัปโหลดเซิร์ฟเวอร์ซิป",
"serverVersion": "เวอร์ชันเซิร์ฟเวอร์",
"sizeInGB": "ขนาดเป็นกิกะไบต์",
"unsupported": "Crafty ไม่รองรับ Minecraft เวอร์ชั่นต่ำกว่า 1.8 คุณยังสามารถติดตั้งได้ ผลลัพธ์จะแตกต่างกันออกไป",
"uploadButton": "อัปโหลด",
"uploadZip": "อัปโหลดไฟล์ซิปสำหรับการนำเข้าเซิร์ฟเวอร์",
"zipPath": "เส้นทางเซิร์ฟเวอร์"

View File

@ -578,6 +578,7 @@
"serverUpload": "Sıkıştırılmış Sunucu Yükle",
"serverVersion": "Sunucu Sürümü",
"sizeInGB": "GB cinsinden boyut",
"unsupported": "Minecraft'ın 1.8'den eski sürümleri Crafty tarafından desteklenmemektedir. Yine de yükleyebilirsiniz. Sonuçlar değişkenlik gösterecektir.",
"uploadButton": "Dosya Yükle",
"uploadZip": "Sunucu İçe Aktarımı İçin Zip Dosyası Yükle",
"zipPath": "Sunucu Konumu"

View File

@ -578,6 +578,7 @@
"serverUpload": "Вивантажити архівований сервер",
"serverVersion": "Версія сервера",
"sizeInGB": "Об'єм пам'яті в ГБ",
"unsupported": "Minecraft версії старіші ніж 1.8, не підтримуються Crafty. Ви все ще можете встановити їх, але результат буде непередбачуваний.",
"uploadButton": "Вивантажити",
"uploadZip": "Вивантажити архів(.zip) для імпорту сервера",
"zipPath": "Шлях архіву сервера"

View File

@ -579,6 +579,7 @@
"serverUpload": "上传打包为 Zip 文件的服务器",
"serverVersion": "服务器版本",
"sizeInGB": "大小(以 GB 为单位)",
"unsupported": "Crafty 不支持低于 1.8 的 Minecraft 版本。你仍可以安装,但结果无法保证。",
"uploadButton": "上传",
"uploadZip": "上传 Zip 文件以导入服务器",
"zipPath": "服务器路径"