From 8022425ced33ba88e6922601708d0cb824abdd37 Mon Sep 17 00:00:00 2001 From: MyLuxy <240354279+MyLuxy@users.noreply.github.com> Date: Sun, 18 Oct 2026 22:14:29 +0200 Subject: [PATCH] fix: say when there isn't enough space to extract a game --- app/downloads/errors.js | 2 ++ app/i18n/locales/ar.json | 2 ++ app/i18n/locales/bn.json | 2 ++ app/i18n/locales/de.json | 2 ++ app/i18n/locales/en.json | 2 ++ app/i18n/locales/es.json | 2 ++ app/i18n/locales/fa.json | 2 ++ app/i18n/locales/fr.json | 2 ++ app/i18n/locales/hi.json | 2 ++ app/i18n/locales/id.json | 2 ++ app/i18n/locales/it.json | 2 ++ app/i18n/locales/ja.json | 2 ++ app/i18n/locales/nl.json | 2 ++ app/i18n/locales/pt-BR.json | 2 ++ app/i18n/locales/ru.json | 2 ++ app/i18n/locales/ur.json | 2 ++ app/i18n/locales/zh-Hans.json | 2 ++ 17 files changed, 34 insertions(+) diff --git a/app/downloads/errors.js b/app/downloads/errors.js index 6317113..e6acedb 100644 --- a/app/downloads/errors.js +++ b/app/downloads/errors.js @@ -11,6 +11,8 @@ import { t } from '../i18n/core.js'; var CASES = [ // Before STALE_PARTIAL: a full disk fails "write partial file". [/no space left|ENOSPC/i, "noSpace", "freeThenResume"], + // An extraction is capped at the space free when it starts: its files outgrew it. + [/extraction size limit/i, "noSpaceExtract", "freeThenRetryExtract"], [/partial files were deleted/i, "partialDeleted", "restart"], [STALE_PARTIAL, "staleProgress", "restart"], [/file changed since this partial/i, "fileChanged", "restart"], diff --git a/app/i18n/locales/ar.json b/app/i18n/locales/ar.json index f03c7b1..d98d734 100644 --- a/app/i18n/locales/ar.json +++ b/app/i18n/locales/ar.json @@ -182,6 +182,8 @@ "errors.noConnection": "لا يوجد اتصال بالخادم", "errors.noMemory": "الذاكرة غير كافية للاستخراج", "errors.noSpace": "لا توجد مساحة حرة كافية", + "errors.noSpaceExtract": "لا توجد مساحة كافية لفك ضغط اللعبة", + "errors.action.freeThenRetryExtract": "حرّر مساحة على وحدة التخزين ثم أعد المحاولة. يبقى التنزيل محفوظًا.", "errors.noSpaceOn": "لا توجد مساحة كافية على {root}: يحتاج {need}، {free} خالية{queued, select, yes { بعد التحميلات المقررة} other {}}", "errors.partIncomplete": "يبدو أن الجزء {part} غير مكتمل", "errors.partialDeleted": "حُذفت الملفات التي تم تنزيلها", diff --git a/app/i18n/locales/bn.json b/app/i18n/locales/bn.json index 99545de..1529b27 100644 --- a/app/i18n/locales/bn.json +++ b/app/i18n/locales/bn.json @@ -182,6 +182,8 @@ "errors.noConnection": "সার্ভারের সাথে কোনো সংযোগ নেই", "errors.noMemory": "এক্সট্র্যাক্ট করার জন্য যথেষ্ট মেমরি নেই", "errors.noSpace": "পর্যাপ্ত খালি স্থান নেই", + "errors.noSpaceExtract": "গেমটি এক্সট্র্যাক্ট করার মতো যথেষ্ট খালি জায়গা নেই", + "errors.action.freeThenRetryExtract": "ড্রাইভে জায়গা খালি করুন, তারপর আবার চেষ্টা করুন। ডাউনলোড রাখা থাকবে।", "errors.noSpaceOn": "{root} এ পর্যাপ্ত স্থান নেই: {need} প্রয়োজন, {free} খালি{queued, select, yes { সারিবদ্ধ ডাউনলোডের পরে} other {}}", "errors.partIncomplete": "অংশ {part} অসম্পূর্ণ মনে হচ্ছে", "errors.partialDeleted": "ডাউনলোড করা ফাইলগুলি মুছে ফেলা হয়েছে", diff --git a/app/i18n/locales/de.json b/app/i18n/locales/de.json index 17ee612..4bdada7 100644 --- a/app/i18n/locales/de.json +++ b/app/i18n/locales/de.json @@ -182,6 +182,8 @@ "errors.noConnection": "Keine Verbindung zum Server", "errors.noMemory": "Nicht genug Speicher zum Entpacken", "errors.noSpace": "Nicht genug Speicherplatz", + "errors.noSpaceExtract": "Nicht genug freier Speicher zum Entpacken des Spiels", + "errors.action.freeThenRetryExtract": "Gib Speicher auf dem Laufwerk frei und tippe auf Erneut versuchen. Der Download bleibt erhalten.", "errors.noSpaceOn": "Nicht genug Platz auf {root}: benötigt {need}, {free} frei{queued, select, yes { nach anstehenden Downloads} other {}}", "errors.partIncomplete": "Teil {part} scheint unvollständig zu sein", "errors.partialDeleted": "Die heruntergeladenen Dateien wurden gelöscht", diff --git a/app/i18n/locales/en.json b/app/i18n/locales/en.json index 8ce48a9..fbd171f 100644 --- a/app/i18n/locales/en.json +++ b/app/i18n/locales/en.json @@ -185,6 +185,8 @@ "errors.noConnection": "No connection to the server", "errors.noMemory": "Not enough memory to extract", "errors.noSpace": "Not enough free space", + "errors.noSpaceExtract": "Not enough free space to extract this game", + "errors.action.freeThenRetryExtract": "Free up space on the drive, then Retry. The download is kept.", "errors.noSpaceOn": "Not enough space on {root}: needs {need}, {free} free{queued, select, yes { after queued downloads} other {}}", "errors.partIncomplete": "Part {part} looks incomplete", "errors.partialDeleted": "Its downloaded files were deleted", diff --git a/app/i18n/locales/es.json b/app/i18n/locales/es.json index b1147b8..d33b411 100644 --- a/app/i18n/locales/es.json +++ b/app/i18n/locales/es.json @@ -182,6 +182,8 @@ "errors.noConnection": "Sin conexión al servidor", "errors.noMemory": "No hay memoria suficiente para extraer", "errors.noSpace": "Espacio libre insuficiente", + "errors.noSpaceExtract": "No hay espacio libre suficiente para extraer el juego", + "errors.action.freeThenRetryExtract": "Libera espacio en la unidad y pulsa Reintentar. La descarga se conserva.", "errors.noSpaceOn": "Sin espacio en {root}: necesita {need}, {free} libre{queued, select, yes { después de descargas en cola} other {}}", "errors.partIncomplete": "La parte {part} parece incompleta", "errors.partialDeleted": "Se borraron sus archivos descargados", diff --git a/app/i18n/locales/fa.json b/app/i18n/locales/fa.json index 93567c2..8b680d3 100644 --- a/app/i18n/locales/fa.json +++ b/app/i18n/locales/fa.json @@ -183,6 +183,8 @@ "errors.noConnection": "اتصال به سرور برقرار نیست", "errors.noMemory": "حافظهٔ کافی برای استخراج نیست", "errors.noSpace": "فضای آزاد کافی نیست", + "errors.noSpaceExtract": "فضای خالی کافی برای استخراج بازی وجود ندارد", + "errors.action.freeThenRetryExtract": "روی درایو فضا آزاد کنید و دوباره تلاش کنید. دانلود حفظ می‌شود.", "errors.noSpaceOn": "فضای کافی روی {root} نیست: نیاز به {need}، {free} آزاد{queued, select, yes { بعد از دانلودهای در صف} other {}}", "errors.partIncomplete": "بخش {part} ناقص به نظر می‌رسد", "errors.partialDeleted": "فایل‌های دانلودشده‌اش حذف شدند", diff --git a/app/i18n/locales/fr.json b/app/i18n/locales/fr.json index 436cbd7..819d6b4 100644 --- a/app/i18n/locales/fr.json +++ b/app/i18n/locales/fr.json @@ -182,6 +182,8 @@ "errors.noConnection": "Pas de connexion au serveur", "errors.noMemory": "Mémoire insuffisante pour extraire", "errors.noSpace": "Espace libre insuffisant", + "errors.noSpaceExtract": "Pas assez d'espace libre pour extraire le jeu", + "errors.action.freeThenRetryExtract": "Libérez de l'espace sur le disque, puis Réessayez. Le téléchargement est conservé.", "errors.noSpaceOn": "Espace insuffisant sur {root} : nécessite {need}, {free} libre{queued, select, yes { après les téléchargements} other {}}", "errors.partIncomplete": "La partie {part} semble incomplète", "errors.partialDeleted": "Ses fichiers téléchargés ont été supprimés", diff --git a/app/i18n/locales/hi.json b/app/i18n/locales/hi.json index cbe39d4..7cb4ce1 100644 --- a/app/i18n/locales/hi.json +++ b/app/i18n/locales/hi.json @@ -182,6 +182,8 @@ "errors.noConnection": "सर्वर से कोई कनेक्शन नहीं", "errors.noMemory": "एक्सट्रैक्ट करने के लिए पर्याप्त मेमोरी नहीं है", "errors.noSpace": "पर्याप्त खाली स्थान नहीं", + "errors.noSpaceExtract": "गेम निकालने के लिए पर्याप्त खाली जगह नहीं है", + "errors.action.freeThenRetryExtract": "ड्राइव पर जगह खाली करें, फिर दोबारा कोशिश करें। डाउनलोड सुरक्षित रहता है।", "errors.noSpaceOn": "{root} पर पर्याप्त स्थान नहीं: {need} की आवश्यकता है, {free} खाली{queued, select, yes { कतार में डाउनलोड के बाद} other {}}", "errors.partIncomplete": "भाग {part} अधूरा लगता है", "errors.partialDeleted": "डाउनलोड की गई फ़ाइलें हटा दी गईं", diff --git a/app/i18n/locales/id.json b/app/i18n/locales/id.json index 082fa86..df9624c 100644 --- a/app/i18n/locales/id.json +++ b/app/i18n/locales/id.json @@ -182,6 +182,8 @@ "errors.noConnection": "Tidak ada koneksi ke server", "errors.noMemory": "Memori tidak cukup untuk mengekstrak", "errors.noSpace": "Ruang bebas tidak cukup", + "errors.noSpaceExtract": "Ruang kosong tidak cukup untuk mengekstrak game", + "errors.action.freeThenRetryExtract": "Kosongkan ruang di drive, lalu Coba lagi. Unduhan tetap disimpan.", "errors.noSpaceOn": "Ruang tidak cukup di {root}: memerlukan {need}, {free} gratis{queued, select, yes { setelah unduhan antrian} other {}}", "errors.partIncomplete": "Bagian {part} tampaknya tidak lengkap", "errors.partialDeleted": "File yang diunduh telah dihapus", diff --git a/app/i18n/locales/it.json b/app/i18n/locales/it.json index e0caab9..ce0848b 100644 --- a/app/i18n/locales/it.json +++ b/app/i18n/locales/it.json @@ -197,6 +197,8 @@ "errors.noConnection": "Nessuna connessione al server", "errors.noMemory": "Memoria insufficiente per l'estrazione", "errors.noSpace": "Spazio libero insufficiente", + "errors.noSpaceExtract": "Spazio libero insufficiente per estrarre il gioco", + "errors.action.freeThenRetryExtract": "Libera spazio sull'unità, poi Riprova. Il download resta salvato.", "errors.noSpaceOn": "Spazio insufficiente su {root}: servono {need}, liberi {free}{queued, select, yes { dopo i download in coda} other {}}", "errors.partIncomplete": "La parte {part} sembra incompleta", "errors.partialDeleted": "I file scaricati sono stati eliminati", diff --git a/app/i18n/locales/ja.json b/app/i18n/locales/ja.json index 785b2b7..2ceedb1 100644 --- a/app/i18n/locales/ja.json +++ b/app/i18n/locales/ja.json @@ -182,6 +182,8 @@ "errors.noConnection": "サーバーに接続できません", "errors.noMemory": "展開に必要なメモリが足りません", "errors.noSpace": "空き容量が足りません", + "errors.noSpaceExtract": "ゲームを展開する空き容量が足りません", + "errors.action.freeThenRetryExtract": "ドライブの空き容量を増やしてから再試行してください。ダウンロードは保持されます。", "errors.noSpaceOn": "{root}の容量が足りません:必要{need}、空き{free}{queued, select, yes {(待機中のダウンロード後)} other {}}", "errors.partIncomplete": "パート{part}が不完全なようです", "errors.partialDeleted": "ダウンロード済みのファイルが削除されました", diff --git a/app/i18n/locales/nl.json b/app/i18n/locales/nl.json index 9769e91..e2ff0df 100644 --- a/app/i18n/locales/nl.json +++ b/app/i18n/locales/nl.json @@ -185,6 +185,8 @@ "errors.noConnection": "Geen verbinding met de server", "errors.noMemory": "Onvoldoende geheugen om het archief uit te pakken", "errors.noSpace": "Onvoldoende vrije ruimte", + "errors.noSpaceExtract": "Niet genoeg vrije ruimte om het spel uit te pakken", + "errors.action.freeThenRetryExtract": "Maak ruimte vrij op de schijf en kies Opnieuw. De download blijft bewaard.", "errors.noSpaceOn": "Onvoldoende ruimte op {root}: {need} vereist, {free} vrij{queued, select, yes { na downloads in de wachtrij} other {}}", "errors.partIncomplete": "Deel {part} lijkt onvolledig", "errors.partialDeleted": "De gedownloade bestanden zijn verwijderd", diff --git a/app/i18n/locales/pt-BR.json b/app/i18n/locales/pt-BR.json index aee3ed8..8886c00 100644 --- a/app/i18n/locales/pt-BR.json +++ b/app/i18n/locales/pt-BR.json @@ -182,6 +182,8 @@ "errors.noConnection": "Sem conexão com o servidor", "errors.noMemory": "Memória insuficiente para extrair", "errors.noSpace": "Espaço livre insuficiente", + "errors.noSpaceExtract": "Espaço livre insuficiente para extrair o jogo", + "errors.action.freeThenRetryExtract": "Libere espaço na unidade e toque em Tentar novamente. O download é mantido.", "errors.noSpaceOn": "Sem espaço em {root}: precisa {need}, {free} livre{queued, select, yes { após downloads na fila} other {}}", "errors.partIncomplete": "A parte {part} parece incompleta", "errors.partialDeleted": "Os arquivos baixados foram apagados", diff --git a/app/i18n/locales/ru.json b/app/i18n/locales/ru.json index 1395b40..9e54751 100644 --- a/app/i18n/locales/ru.json +++ b/app/i18n/locales/ru.json @@ -183,6 +183,8 @@ "errors.noConnection": "Нет соединения с сервером", "errors.noMemory": "Недостаточно памяти для распаковки", "errors.noSpace": "Недостаточно свободного места", + "errors.noSpaceExtract": "Недостаточно свободного места для распаковки игры", + "errors.action.freeThenRetryExtract": "Освободите место на диске и нажмите «Повторить». Загрузка сохранится.", "errors.noSpaceOn": "Недостаточно места на {root}: требуется {need}, {free} свободно{queued, select, yes { после загрузок в очереди} other {}}", "errors.partIncomplete": "Часть {part}, похоже, загружена не полностью", "errors.partialDeleted": "Загруженные файлы были удалены", diff --git a/app/i18n/locales/ur.json b/app/i18n/locales/ur.json index a95d006..807e095 100644 --- a/app/i18n/locales/ur.json +++ b/app/i18n/locales/ur.json @@ -182,6 +182,8 @@ "errors.noConnection": "سرور سے کوئی رابطہ نہیں", "errors.noMemory": "ایکسٹریکٹ کرنے کے لیے کافی میموری نہیں ہے", "errors.noSpace": "کافی خالی جگہ نہیں", + "errors.noSpaceExtract": "گیم نکالنے کے لیے کافی خالی جگہ نہیں ہے", + "errors.action.freeThenRetryExtract": "ڈرائیو پر جگہ خالی کریں، پھر دوبارہ کوشش کریں۔ ڈاؤن لوڈ محفوظ رہتا ہے۔", "errors.noSpaceOn": "{root} پر کافی جگہ نہیں: {need} چاہیے، {free} خالی{queued, select, yes { قطار میں ڈاؤن لوڈ کے بعد} other {}}", "errors.partIncomplete": "حصہ {part} نامکمل لگتا ہے", "errors.partialDeleted": "ڈاؤن لوڈ کی گئی فائلیں حذف کر دی گئیں", diff --git a/app/i18n/locales/zh-Hans.json b/app/i18n/locales/zh-Hans.json index 8db47d5..ea0410f 100644 --- a/app/i18n/locales/zh-Hans.json +++ b/app/i18n/locales/zh-Hans.json @@ -182,6 +182,8 @@ "errors.noConnection": "无法连接到服务器", "errors.noMemory": "内存不足,无法解压", "errors.noSpace": "可用空间不足", + "errors.noSpaceExtract": "可用空间不足,无法解压游戏", + "errors.action.freeThenRetryExtract": "请释放驱动器空间后重试。已下载的文件会保留。", "errors.noSpaceOn": "{root} 空间不足:需要 {need},可用 {free}{queued, select, yes {(排队中的下载完成后)} other {}}", "errors.partIncomplete": "第 {part} 部分似乎不完整", "errors.partialDeleted": "已下载的文件已被删除",