diff --git a/Cargo.lock b/Cargo.lock index 1600f6e..b9faf12 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1327,9 +1327,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -4828,9 +4828,9 @@ dependencies = [ [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/LICENSE b/LICENSE index e9e93fd..99f3bae 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,8 @@ MIT License Copyright (c) 2026 Reclaim contributors +Country flag icons from flag-icons (https://github.com/lipis/flag-icons): +Copyright (c) 2013 Panayiotis Lipiridis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c9170a6..8462711 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ No. Everything stays on your computer. Reclaim only contacts GitHub to check for | **Scan finished with unreadable areas, or the drive stopped responding** | Check the cable and try once more. If it happens again, the drive may be failing: recover the files already found and stop using it. | | **A recovered file won't open** | It may be incomplete or overwritten. Try other results of the same type. | | **Windows: Reclaim won't start** | An error message explains why. A log is saved at `%LOCALAPPDATA%\Reclaim\logs\reclaim.log`; attach it when you [report a problem](https://github.com/sudo-py-dev/reclaim/issues). | +| **A scan or recovery is failing** | In **Settings & help → General → Debug logging**, choose **Enable logging** and reproduce the issue. Choose **Open folder** to find `reclaim-debug.log` and attach it to your report. Debug logging turns off when you quit Reclaim. | Still stuck? [Open an issue](https://github.com/sudo-py-dev/reclaim/issues) and tell us your system, the drive type and what you see. diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index bde2ab2..138ec75 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -11,7 +11,7 @@ A Rust desktop app for recovering file candidates from drives and raw disk image - **Live scan results:** unused-byte progress, cancellation, and recoverable partial results. - **Filtered recovery:** search by filename, extension, or source offset; filter by file category. Recovery saves only selected files matching the active filters. - **Safe output naming:** original NTFS leaf names when available, generated names otherwise, and numeric suffixes to avoid replacing existing files. -- **Localization:** saved language preference, seven matching translation catalogs, mirrored Hebrew/Arabic layouts, and isolated mixed-direction filenames and paths. +- **Localization:** saved language preference, ten matching translation catalogs, mirrored Hebrew/Arabic layouts, and isolated mixed-direction filenames and paths. - **Desktop interface:** Slint with light/dark appearance, SVG icons, animated controls and progress, a scrollable drive list, and an integrated recovery guide. ## Build and run @@ -75,7 +75,7 @@ See [file-format research and coverage](FILE_FORMAT_RESEARCH.md) for primary sou Reclaim is not a complete filesystem recovery suite. A signature match does not establish that a file was deleted or that all its contents are usable. Overwritten or TRIM-erased data cannot be reconstructed by the scanner. -- Most candidates are limited to 64 MiB each, with a maximum of 100,000 results. Classic ZIP archives with known local entry sizes can exceed 64 MiB (up to the classic ZIP offset range) using bounded-memory directory checks; large ZIP-based packages are reported as ZIP. ZIP entry payloads are not decompressed or CRC-verified. Captured NTFS resident data has a separate 64 MiB memory budget. +- Most candidates are limited to 64 MiB each. Carving streams results without a fixed result count. Classic ZIP archives with known local entry sizes can exceed 64 MiB (up to the classic ZIP offset range) using bounded-memory directory checks; large ZIP-based packages are reported as ZIP. ZIP entry payloads are not decompressed or CRC-verified. Captured NTFS resident data has a separate 64 MiB memory budget. - Original folder reconstruction, restoring timestamps, fragmented-file reconstruction, and APFS allocation maps are not implemented. NTFS runlists are read for the MFT/$Bitmap allocation map only, not general deleted-file reconstruction. Split NTFS attributes needing ATTRIBUTE_LIST extents and whole-disk MBR/GPT sources are rejected; select a formatted volume instead. - `scan_unused_reader` is the desktop entry point. `scan_reader` remains a full-source API for tests and explicit lower-level use. Deleted resident NTFS recovery inside allocated MFT clusters is excluded from the desktop unused-space mode. - ZIP64/multipart archives, ZIP archives over 64 MiB that require data descriptors, unknown-length AU streams, and multi-segment OpenDML AVI are unsupported. diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index 31359b8..91490b9 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -1333,9 +1333,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -4846,9 +4846,9 @@ dependencies = [ [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/locales/README.md b/locales/README.md index bded04a..66b3c62 100644 --- a/locales/README.md +++ b/locales/README.md @@ -1,8 +1,9 @@ # Translations and text direction English message IDs live in `en.json`, with complete matching catalogs for Hebrew -(`he`), Arabic (`ar`), Spanish (`es`), French (`fr`), German (`de`), and Russian -(`ru`). `ui/app.slint` exposes named localized properties; `src/ui_text.rs` fills +(`he`), Arabic (`ar`), Spanish (`es`), French (`fr`), German (`de`), Russian +(`ru`), Portuguese (`pt`), Italian (`it`), and Dutch (`nl`). +`ui/app.slint` exposes named localized properties; `src/ui_text.rs` fills them when the language changes. Status messages, file details, previews, drive metadata, and recovery warnings are localized at their presentation boundaries. Release notes and operating-system error details retain their original language. @@ -20,7 +21,9 @@ and dates for display. Stored paths, original names, search queries, scan result and recovered bytes remain unchanged. Brand names, format identifiers, and binary size units remain language-neutral. -Settings offers System and each supported language, using their native names. +Settings offers System and each supported language using its native name. The +language picker pairs native names with representative country flags and uses +a globe for System. System recognizes regional prefixes such as `es-MX`, `fr-CA`, and `ar-SA`, plus legacy Hebrew `iw`. Unsupported locales fall back to English. The preference is saved in `reclaim/language.json` in the platform configuration directory. Native diff --git a/locales/ar.json b/locales/ar.json index 7733d9e..3b62cbb 100644 --- a/locales/ar.json +++ b/locales/ar.json @@ -1,10 +1,14 @@ { "All files": "كل الملفات", "Appearance": "المظهر", + "Debug logging": "تسجيل معلومات التصحيح", + "Records scan and recovery checkpoints in reclaim-debug.log.": "يسجّل مراحل الفحص والاستعادة في ملف reclaim-debug.log.", + "Enable logging": "تفعيل التسجيل", + "Disable logging": "إيقاف التسجيل", + "The diagnostic log folder could not be opened.": "تعذّر فتح مجلد سجل التشخيص.", "Applications": "التطبيقات", "Archives": "الأرشيفات", "Audio": "الصوت", - "Candidate limit reached (100,000). Recover available results or scan a smaller image.": "تم بلوغ الحد الأقصى للملفات المحتملة (100,000). استعد النتائج المتاحة أو افحص صورة قرص أصغر.", "Candidate range is invalid": "نطاق الملف المحتمل غير صالح", "Choose a drive or disk image to get started.": "اختر محرك أقراص أو صورة قرص للبدء.", "Choose a raw disk image": "اختر صورة قرص خام", @@ -32,6 +36,7 @@ "Locked: unlock in Disk Utility first": "مقفل: افتح القفل أولًا في أداة القرص", "Mounted at {mount}": "موصول في {mount}", "NTFS record checked": "تم التحقق من سجل NTFS", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "تم بلوغ حد البيانات المقيمة في NTFS ‏(64 MiB). لا يزال بالإمكان تصدير النتائج المتاحة.", "No drive access was returned": "لم يتم منح وصول إلى محرك الأقراص", "Not mounted": "غير موصول", "Opening source… If Linux asks, authorize read-only access to the drive.": "جارٍ فتح المصدر… إذا طلب Linux ذلك، فاسمح بوصول للقراءة فقط إلى محرك الأقراص.", @@ -43,7 +48,6 @@ "Recovered {count} file before error: {e}": "تمت استعادة {count} ملف قبل الخطأ: {e}", "Recovered {count} files before error: {e}": "تمت استعادة {count} ملف قبل الخطأ: {e}", "Recovering selected files…": "جارٍ استعادة الملفات المحددة…", - "Recovery result limit reached. Available results can still be exported.": "تم بلوغ حد نتائج الاستعادة. لا يزال بالإمكان تصدير النتائج المتاحة.", "Recovery stopped. {count} file saved.": "توقفت الاستعادة. تم حفظ {count} ملف.", "Recovery stopped. {count} files saved.": "توقفت الاستعادة. تم حفظ {count} ملف.", "Refresh": "تحديث", diff --git a/locales/de.json b/locales/de.json index fd4a463..22d06cc 100644 --- a/locales/de.json +++ b/locales/de.json @@ -1,10 +1,14 @@ { "All files": "Alle Dateien", "Appearance": "Darstellung", + "Debug logging": "Debug-Protokollierung", + "Records scan and recovery checkpoints in reclaim-debug.log.": "Protokolliert Scan- und Wiederherstellungsschritte in reclaim-debug.log.", + "Enable logging": "Protokollierung aktivieren", + "Disable logging": "Protokollierung deaktivieren", + "The diagnostic log folder could not be opened.": "Der Ordner des Diagnoseprotokolls konnte nicht geöffnet werden.", "Applications": "Anwendungen", "Archives": "Archive", "Audio": "Audio", - "Candidate limit reached (100,000). Recover available results or scan a smaller image.": "Limit möglicher Dateien erreicht (100.000). Vorhandene Ergebnisse wiederherstellen oder ein kleineres Abbild scannen.", "Candidate range is invalid": "Ungültiger Bereich der möglichen Datei", "Choose a drive or disk image to get started.": "Wählen Sie zum Starten ein Laufwerk oder ein Datenträgerabbild.", "Choose a raw disk image": "Unverarbeitetes Datenträgerabbild auswählen", @@ -32,6 +36,7 @@ "Locked: unlock in Disk Utility first": "Gesperrt: zuerst im Festplattendienstprogramm entsperren", "Mounted at {mount}": "Eingehängt unter {mount}", "NTFS record checked": "NTFS-Eintrag geprüft", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "Limit für residente NTFS-Daten erreicht (64 MiB). Vorhandene Ergebnisse können weiterhin exportiert werden.", "No drive access was returned": "Kein Laufwerkszugriff erhalten", "Not mounted": "Nicht eingehängt", "Opening source… If Linux asks, authorize read-only access to the drive.": "Quelle wird geöffnet… Bestätigen Sie unter Linux gegebenenfalls den schreibgeschützten Zugriff.", @@ -43,7 +48,6 @@ "Recovered {count} file before error: {e}": "{count} Datei vor dem Fehler wiederhergestellt: {e}", "Recovered {count} files before error: {e}": "{count} Dateien vor dem Fehler wiederhergestellt: {e}", "Recovering selected files…": "Ausgewählte Dateien werden wiederhergestellt…", - "Recovery result limit reached. Available results can still be exported.": "Ergebnislimit erreicht. Vorhandene Ergebnisse können weiterhin exportiert werden.", "Recovery stopped. {count} file saved.": "Wiederherstellung angehalten. {count} Datei gespeichert.", "Recovery stopped. {count} files saved.": "Wiederherstellung gestoppt. {count} Dateien gespeichert.", "Refresh": "Aktualisieren", diff --git a/locales/en.json b/locales/en.json index 74b047c..2bc528f 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1,10 +1,14 @@ { "All files": "All files", "Appearance": "Appearance", + "Debug logging": "Debug logging", + "Records scan and recovery checkpoints in reclaim-debug.log.": "Records scan and recovery checkpoints in reclaim-debug.log.", + "Enable logging": "Enable logging", + "Disable logging": "Disable logging", + "The diagnostic log folder could not be opened.": "The diagnostic log folder could not be opened.", "Applications": "Applications", "Archives": "Archives", "Audio": "Audio", - "Candidate limit reached (100,000). Recover available results or scan a smaller image.": "Candidate limit reached (100,000). Recover available results or scan a smaller image.", "Candidate range is invalid": "Candidate range is invalid", "Choose a drive or disk image to get started.": "Choose a drive or disk image to get started.", "Choose a raw disk image": "Choose a raw disk image", @@ -32,6 +36,7 @@ "Locked: unlock in Disk Utility first": "Locked: unlock in Disk Utility first", "Mounted at {mount}": "Mounted at {mount}", "NTFS record checked": "NTFS record checked", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "NTFS resident data limit reached (64 MiB). Available results can still be exported.", "No drive access was returned": "No drive access was returned", "Not mounted": "Not mounted", "Opening source… If Linux asks, authorize read-only access to the drive.": "Opening source… If Linux asks, authorize read-only access to the drive.", @@ -43,7 +48,6 @@ "Recovered {count} file before error: {e}": "Recovered {count} file before error: {e}", "Recovered {count} files before error: {e}": "Recovered {count} files before error: {e}", "Recovering selected files…": "Recovering selected files…", - "Recovery result limit reached. Available results can still be exported.": "Recovery result limit reached. Available results can still be exported.", "Recovery stopped. {count} file saved.": "Recovery stopped. {count} file saved.", "Recovery stopped. {count} files saved.": "Recovery stopped. {count} files saved.", "Refresh": "Refresh", diff --git a/locales/es.json b/locales/es.json index acb067c..013ef43 100644 --- a/locales/es.json +++ b/locales/es.json @@ -1,10 +1,14 @@ { "All files": "Todos los archivos", "Appearance": "Apariencia", + "Debug logging": "Registro de depuración", + "Records scan and recovery checkpoints in reclaim-debug.log.": "Registra las etapas de análisis y recuperación en reclaim-debug.log.", + "Enable logging": "Activar registro", + "Disable logging": "Desactivar registro", + "The diagnostic log folder could not be opened.": "No se pudo abrir la carpeta del registro de diagnóstico.", "Applications": "Aplicaciones", "Archives": "Archivos comprimidos", "Audio": "Audio", - "Candidate limit reached (100,000). Recover available results or scan a smaller image.": "Se alcanzó el límite de candidatos (100 000). Recupera los resultados disponibles o analiza una imagen más pequeña.", "Candidate range is invalid": "El rango del candidato no es válido", "Choose a drive or disk image to get started.": "Elige una unidad o imagen de disco para comenzar.", "Choose a raw disk image": "Elegir una imagen de disco sin procesar", @@ -32,6 +36,7 @@ "Locked: unlock in Disk Utility first": "Bloqueada: desbloquéala primero en Utilidad de Discos", "Mounted at {mount}": "Montada en {mount}", "NTFS record checked": "Registro NTFS comprobado", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "Se alcanzó el límite de datos residentes de NTFS (64 MiB). Todavía puedes exportar los resultados disponibles.", "No drive access was returned": "No se obtuvo acceso a la unidad", "Not mounted": "No montada", "Opening source… If Linux asks, authorize read-only access to the drive.": "Abriendo origen… Si Linux lo solicita, autoriza el acceso de solo lectura a la unidad.", @@ -43,7 +48,6 @@ "Recovered {count} file before error: {e}": "Se recuperó {count} archivo antes del error: {e}", "Recovered {count} files before error: {e}": "Se recuperaron {count} archivos antes del error: {e}", "Recovering selected files…": "Recuperando archivos seleccionados…", - "Recovery result limit reached. Available results can still be exported.": "Se alcanzó el límite de resultados. Todavía puedes exportar los resultados disponibles.", "Recovery stopped. {count} file saved.": "Recuperación detenida. Se guardó {count} archivo.", "Recovery stopped. {count} files saved.": "Recuperación detenida. Se guardaron {count} archivos.", "Refresh": "Actualizar", diff --git a/locales/fr.json b/locales/fr.json index 7060741..44dd31f 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -1,10 +1,14 @@ { "All files": "Tous les fichiers", "Appearance": "Apparence", + "Debug logging": "Journal de débogage", + "Records scan and recovery checkpoints in reclaim-debug.log.": "Consigne les étapes d’analyse et de récupération dans reclaim-debug.log.", + "Enable logging": "Activer le journal", + "Disable logging": "Désactiver le journal", + "The diagnostic log folder could not be opened.": "Impossible d’ouvrir le dossier du journal de diagnostic.", "Applications": "Applications", "Archives": "Archives", "Audio": "Audio", - "Candidate limit reached (100,000). Recover available results or scan a smaller image.": "Limite de fichiers potentiels atteinte (100 000). Récupérez les résultats disponibles ou analysez une image plus petite.", "Candidate range is invalid": "Plage du fichier potentiel invalide", "Choose a drive or disk image to get started.": "Choisissez un disque ou une image disque pour commencer.", "Choose a raw disk image": "Choisir une image disque brute", @@ -32,6 +36,7 @@ "Locked: unlock in Disk Utility first": "Verrouillé: déverrouillez d’abord dans Utilitaire de disque", "Mounted at {mount}": "Monté sur {mount}", "NTFS record checked": "Enregistrement NTFS vérifié", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "Limite de données résidentes NTFS atteinte (64 Mio). Les résultats disponibles peuvent encore être exportés.", "No drive access was returned": "Aucun accès au disque obtenu", "Not mounted": "Non monté", "Opening source… If Linux asks, authorize read-only access to the drive.": "Ouverture de la source… Si Linux le demande, autorisez l’accès en lecture seule au disque.", @@ -43,7 +48,6 @@ "Recovered {count} file before error: {e}": "{count} fichier récupéré avant l’erreur : {e}", "Recovered {count} files before error: {e}": "{count} fichiers récupérés avant l’erreur : {e}", "Recovering selected files…": "Récupération des fichiers sélectionnés…", - "Recovery result limit reached. Available results can still be exported.": "Limite de résultats atteinte. Les résultats disponibles peuvent encore être exportés.", "Recovery stopped. {count} file saved.": "Récupération arrêtée. {count} fichier enregistré.", "Recovery stopped. {count} files saved.": "Récupération arrêtée. {count} fichiers enregistrés.", "Refresh": "Actualiser", diff --git a/locales/he.json b/locales/he.json index bc57c14..6237eec 100644 --- a/locales/he.json +++ b/locales/he.json @@ -1,10 +1,14 @@ { "All files": "כל הקבצים", "Appearance": "מראה", + "Debug logging": "תיעוד לצורכי איתור תקלות", + "Records scan and recovery checkpoints in reclaim-debug.log.": "מתעד שלבים בסריקה ובשחזור בקובץ reclaim-debug.log.", + "Enable logging": "הפעלת תיעוד", + "Disable logging": "כיבוי תיעוד", + "The diagnostic log folder could not be opened.": "לא ניתן לפתוח את תיקיית יומן האבחון.", "Applications": "יישומים", "Archives": "ארכיונים", "Audio": "שמע", - "Candidate limit reached (100,000). Recover available results or scan a smaller image.": "הגעתם למגבלה של 100,000 קבצים. שחזרו את מה שכבר נמצא, או סרקו תמונת דיסק קטנה יותר.", "Candidate range is invalid": "טווח הנתונים של הקובץ אינו תקין", "Choose a drive or disk image to get started.": "בחרו כונן או תמונת דיסק כדי להתחיל.", "Choose a raw disk image": "בחירת תמונת דיסק גולמית", @@ -32,6 +36,7 @@ "Locked: unlock in Disk Utility first": "נעול: פתחו קודם את הנעילה ב״תוכנית השירות לדיסקים״", "Mounted at {mount}": "מחובר בנתיב {mount}", "NTFS record checked": "רשומת NTFS נבדקה", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "הגעתם למגבלת הנתונים המוטמעים ברשומות NTFS ‏(64 MiB). עדיין אפשר לייצא את התוצאות הזמינות.", "No drive access was returned": "לא התקבלה גישה לכונן", "Not mounted": "לא מחובר", "Opening source… If Linux asks, authorize read-only access to the drive.": "פותח את המקור… אם המערכת מבקשת אישור, אשרו גישת קריאה בלבד לכונן.", @@ -43,7 +48,6 @@ "Recovered {count} file before error: {e}": "שוחזר {count} קובץ לפני השגיאה: {e}", "Recovered {count} files before error: {e}": "שוחזרו {count} קבצים לפני השגיאה: {e}", "Recovering selected files…": "משחזר את הקבצים שנבחרו…", - "Recovery result limit reached. Available results can still be exported.": "הגעתם למגבלת התוצאות. עדיין אפשר לשחזר את מה שכבר נמצא.", "Recovery stopped. {count} file saved.": "השחזור נעצר. נשמר {count} קובץ.", "Recovery stopped. {count} files saved.": "השחזור נעצר. נשמרו {count} קבצים.", "Refresh": "רענון", diff --git a/locales/it.json b/locales/it.json new file mode 100644 index 0000000..5eed344 --- /dev/null +++ b/locales/it.json @@ -0,0 +1,252 @@ +{ + "All files": "Tutti i file", + "Appearance": "Aspetto", + "Debug logging": "Registro di debug", + "Records scan and recovery checkpoints in reclaim-debug.log.": "Registra le fasi di scansione e recupero in reclaim-debug.log.", + "Enable logging": "Attiva registrazione", + "Disable logging": "Disattiva registrazione", + "The diagnostic log folder could not be opened.": "Impossibile aprire la cartella del registro di diagnostica.", + "Applications": "Applicazioni", + "Archives": "Archivi", + "Audio": "Audio", + "Candidate range is invalid": "Intervallo del file candidato non valido", + "Choose a drive or disk image to get started.": "Per iniziare, scegli un'unità o un'immagine disco.", + "Choose a raw disk image": "Scegli un'immagine disco grezza", + "Contains mounted volumes": "Contiene volumi montati", + "Could not get read-only drive access: {e}. Allow the desktop authentication prompt and try again. If no prompt appears, check that UDisks2 and a polkit authentication agent are installed, or open a disk image.": "Impossibile ottenere l'accesso in sola lettura all'unità: {e}. Autorizza l'accesso nella finestra di autenticazione del desktop e riprova. Se la finestra non appare, verifica che UDisks2 e un agente di autenticazione polkit siano installati oppure apri un'immagine disco.", + "Could not inspect Mac drives: {e}": "Impossibile esaminare le unità Mac: {e}", + "Could not list Windows drives: {e}. Open a disk image instead.": "Impossibile elencare le unità Windows: {e}. Apri un'immagine disco.", + "Could not list drives: {e}. You can still open a disk image.": "Impossibile elencare le unità: {e}. Puoi comunque aprire un'immagine disco.", + "Could not read the scanned source: {e}": "Impossibile leggere l'origine scansionata: {e}", + "Dark": "Scuro", + "Documents": "Documenti", + "Encrypted: unlock in Disks, then refresh": "Crittografato: sblocca in Dischi, poi aggiorna", + "Entire drive": "Intera unità", + "Generated filename": "Nome file generato", + "Icons": "Icone", + "Image decoded": "Immagine decodificata", + "Internal drive": "Unità interna", + "Invalid device path": "Percorso del dispositivo non valido", + "Invalid source offset": "Offset nell'origine non valido", + "Invalid source sector size": "Dimensione dei settori dell'origine non valida", + "Language": "Lingua", + "Language preference could not be saved: {e}": "Impossibile salvare la lingua preferita: {e}", + "Light": "Chiaro", + "Linux system": "Sistema Linux", + "Locked: unlock in Disk Utility first": "Bloccato: sblocca prima in Utility Disco", + "Mounted at {mount}": "Montato in {mount}", + "NTFS record checked": "Record NTFS verificato", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "Raggiunto il limite dei dati residenti NTFS (64 MiB). Puoi ancora esportare i risultati disponibili.", + "No drive access was returned": "Accesso all'unità non concesso", + "Not mounted": "Non montato", + "Opening source… If Linux asks, authorize read-only access to the drive.": "Apertura dell'origine… Se Linux lo richiede, autorizza l'accesso in sola lettura all'unità.", + "Pictures": "Immagini", + "Reclaim": "Reclaim", + "Reclaim - File Recovery": "Reclaim - Recupero file", + "Recovered file": "File recuperato", + "Recovered image failed validation. The source may have changed since scanning.": "L'immagine recuperata non ha superato la verifica. L'origine potrebbe essere cambiata dopo la scansione.", + "Recovered {count} file before error: {e}": "Recuperato {count} file prima dell'errore: {e}", + "Recovered {count} files before error: {e}": "Recuperati {count} file prima dell'errore: {e}", + "Recovering selected files…": "Recupero dei file selezionati…", + "Recovery stopped. {count} file saved.": "Recupero interrotto. {count} file salvato.", + "Recovery stopped. {count} files saved.": "Recupero interrotto. {count} file salvati.", + "Refresh": "Aggiorna", + "Save to a different physical drive": "Salva su un'altra unità fisica", + "Saved {n} file.": "Salvato {n} file.", + "Saved {n} files.": "Salvati {n} file.", + "Scan complete. {} file candidate found.": "Scansione completata. Trovato {} file candidato.", + "Scan complete. {} file candidates found.": "Scansione completata. Trovati {} file candidati.", + "Scan failed. See the details below.": "Scansione non riuscita. Vedi i dettagli qui sotto.", + "The scan stopped before finding any files. See the details below.": "La scansione si è interrotta prima di trovare file. Vedi i dettagli qui sotto.", + "Scan stopped. You can recover partial results.": "Scansione interrotta. Puoi recuperare i risultati parziali.", + "Scan the selected source before recovering files.": "Scansiona l'origine selezionata prima di recuperare i file.", + "Scanning for recoverable files…": "Ricerca di file recuperabili…", + "Source changed or candidate is truncated": "L'origine è cambiata o il file candidato è incompleto", + "Source changed since scanning. Scan it again before recovering.": "L'origine è cambiata dopo la scansione. Scansionala di nuovo prima del recupero.", + "System": "Sistema", + "Too many files with the same recovered name": "Troppi file recuperati con lo stesso nome", + "USB drive": "Unità USB", + "Phone or camera": "Telefono o fotocamera", + "File transfer only": "Solo trasferimento file", + "Phones and cameras connect for file transfer only, so Reclaim can’t search them for deleted files. If yours has a memory card, put the card in a card reader and scan it here. Also check its Trash or Recently deleted folder.": "Telefoni e fotocamere si collegano solo per trasferire file, quindi Reclaim non può cercarvi file eliminati. Se il dispositivo ha una scheda di memoria, inseriscila in un lettore e scansiona la scheda qui. Controlla anche il Cestino o la cartella Eliminati di recente.", + "Unlocked volume": "Volume sbloccato", + "Unverified candidate": "File candidato non verificato", + "Video": "Video", + "Volume": "Volume", + "Window closed": "Finestra chiusa", + "Windows denied access. For physical drives, restart Reclaim with Run as administrator, or open a disk image. BitLocker volumes must be unlocked first.": "Windows ha negato l'accesso. Per le unità fisiche, riavvia Reclaim come amministratore oppure apri un'immagine disco. Sblocca prima i volumi BitLocker.", + "macOS could not inspect drives. Open a raw disk image instead.": "macOS non ha potuto esaminare le unità. Apri un'immagine disco grezza.", + "macOS denied access. Reading a whole drive requires administrator rights, and macOS may ask you to allow access to removable volumes or Full Disk Access in System Settings > Privacy & Security. You can open a disk image instead.": "macOS ha negato l'accesso. Per leggere un'intera unità servono diritti di amministratore. macOS potrebbe chiedere di consentire l'accesso ai volumi rimovibili o l'accesso completo al disco in Impostazioni di Sistema > Privacy e sicurezza. Puoi aprire un'immagine disco.", + "{} file": "{} file", + "{} files": "{} file", + "{} selected": "{} selezionati", + "{} selected (one)": "{} selezionato", + "Choose a source": "Scegli un'origine", + "Scan stopped": "Scansione interrotta", + "Stop scan": "Interrompi scansione", + "Stop recovery": "Interrompi recupero", + "File type": "Tipo di file", + "Size": "Dimensione", + "bytes": "byte", + "Deleted NTFS record": "Record NTFS eliminato", + "Deletion not confirmed": "Eliminazione non confermata", + "Original name recovered": "Nome originale recuperato", + "Created": "Creazione", + "Last modified": "Ultima modifica", + "Last accessed": "Ultimo accesso", + "Record changed": "Modifica del record", + "Sequence": "Sequenza", + "Source offset": "Offset nell'origine", + "Dates are not available for files found by signature scanning.": "Le date non sono disponibili per i file trovati tramite firma.", + "File dates do not indicate when a file was deleted. This scanner does not recover deletion timestamps.": "Le date del file non indicano quando è stato eliminato. La scansione non recupera la data e l'ora di eliminazione.", + "Check for updates": "Controlla aggiornamenti", + "Checking for updates…": "Ricerca di aggiornamenti…", + "Last checked: {0}": "Ultimo controllo: {0}", + "Downloading and verifying update…": "Download e verifica dell'aggiornamento…", + "Structure checked": "Struttura verificata", + "Could not download update: {e}": "Impossibile scaricare l'aggiornamento: {e}", + "Could not open installer (Windows error {result}). Open the downloaded file from Explorer.": "Impossibile aprire il programma di installazione (errore Windows {result}). Apri il file scaricato da Esplora file.", + "Download update": "Scarica aggiornamento", + "Open installer": "Apri programma di installazione", + "Update and restart": "Aggiorna e riavvia", + "Preparing update…": "Preparazione dell'aggiornamento…", + "Installing update…": "Installazione dell'aggiornamento…", + "Restarting Reclaim…": "Riavvio di Reclaim…", + "General": "Generale", + "About": "Informazioni", + "Version": "Versione", + "Checking a {0} file…": "Verifica di un file {0}…", + "{0} of {1}": "{0} di {1}", + "Reading unused-space map…": "Lettura della mappa dello spazio inutilizzato…", + "No unused space is available on this volume.": "Questo volume non dispone di spazio inutilizzato.", + "Unused-space scanning needs a supported formatted volume (NTFS, FAT12/16/32, exFAT, ext2/3/4, or HFS+). Select the volume/partition rather than a whole-disk image. Occupied space was not scanned.": "La scansione dello spazio inutilizzato richiede un volume formattato supportato (NTFS, FAT12/16/32, exFAT, ext2/3/4 o HFS+). Seleziona il volume o la partizione anziché un'immagine dell'intero disco. Lo spazio occupato non è stato scansionato.", + "This is a ReFS volume. Reclaim cannot read the ReFS free-space map yet, so this volume was not scanned.": "Questo è un volume ReFS. Reclaim non può ancora leggere la mappa dello spazio libero di ReFS, quindi il volume non è stato scansionato.", + "This ext volume uses a feature Reclaim cannot map yet (compression, an external journal, META_BG, or bigalloc), so it was not scanned.": "Questo volume ext usa una funzione che Reclaim non può ancora interpretare (compressione, journal esterno, META_BG o bigalloc), quindi non è stato scansionato.", + "This HFS+ volume's free-space map is too fragmented for Reclaim to read yet, so it was not scanned.": "La mappa dello spazio libero di questo volume HFS+ è troppo frammentata per Reclaim. Il volume non è stato scansionato.", + "Saving recovered files to the same physical drive you scanned can overwrite and permanently damage data you are trying to recover. Choose a folder on a different physical drive. Continue only if this destination is on another drive.": "Salvare i file recuperati sulla stessa unità fisica scansionata può sovrascrivere e danneggiare in modo permanente i dati da recuperare. Scegli una cartella su un'altra unità fisica. Continua solo se la destinazione si trova su un'altra unità.", + "Saving here can overwrite the deleted files you are trying to recover and damage them permanently. Choose a folder on a different physical drive, such as a USB drive.": "Salvare qui può sovrascrivere e danneggiare in modo permanente i file eliminati da recuperare. Scegli una cartella su un'altra unità fisica, ad esempio un'unità USB.", + "Could not connect to the update server. Check your internet connection and try again.": "Impossibile connettersi al server degli aggiornamenti. Controlla la connessione Internet e riprova.", + "Could not check for updates. Please try again later.": "Impossibile controllare gli aggiornamenti. Riprova più tardi.", + "The scan ended unexpectedly. You can recover the files already found or scan again.": "La scansione è terminata in modo imprevisto. Puoi recuperare i file già trovati o ripetere la scansione.", + "Recovery ended unexpectedly.": "Il recupero è terminato in modo imprevisto.", + "Scan finished with unreadable areas. Some files could not be checked. The drive may be failing: recover the files you need now and avoid repeated scans.": "Scansione completata con aree illeggibili. Alcuni file non sono stati controllati. L'unità potrebbe essere guasta: recupera subito i file necessari ed evita scansioni ripetute.", + "No source selected": "Nessuna origine selezionata", + "Select a file to inspect its details.": "Seleziona un file per esaminarne i dettagli.", + "A second chance for your files": "Una seconda possibilità per i tuoi file", + "Sources": "Origini", + "Recovered files": "File recuperati", + "Settings & help": "Impostazioni e guida", + "Read-only by design": "Progettato per la sola lettura", + "Scanning only reads the drive.": "La scansione si limita a leggere l'unità.", + "Choose a drive or disk image to search for deleted files.": "Scegli un'unità o un'immagine disco per cercare file eliminati.", + "Inspect candidates, choose your files, and recover them safely.": "Esamina i risultati, scegli i file e recuperali in sicurezza.", + "Appearance, updates, and a little guidance.": "Aspetto, aggiornamenti e suggerimenti.", + "AVAILABLE SOURCES": "ORIGINI DISPONIBILI", + "Open disk image": "Apri immagine disco", + "No drives found. Open a disk image or connect a drive and refresh.": "Nessuna unità trovata. Apri un'immagine disco oppure collega un'unità e aggiorna l'elenco.", + "SELECTED SOURCE": "ORIGINE SELEZIONATA", + "Start scanning": "Avvia scansione", + "Search name or offset…": "Cerca nome o offset…", + "Select all": "Seleziona tutto", + "Searching… candidates will appear here.": "Ricerca in corso… I file trovati appariranno qui.", + "No scan yet. Choose a source and start a scan.": "Nessuna scansione. Scegli un'origine e avvia la scansione.", + "No files match your search and category filters.": "Nessun file corrisponde alla ricerca e ai filtri per categoria.", + "Clear filters": "Rimuovi filtri", + "FILE INSPECTOR": "DETTAGLI DEL FILE", + "Candidates may be incomplete. Verify recovered files before relying on them.": "I file trovati possono essere incompleti. Verifica i file recuperati prima di utilizzarli.", + "Recover selected": "Recupera selezionati", + "System language": "Lingua di sistema", + "Recover in three steps": "Recupero in tre passaggi", + "1. Stop using the drive you lost files from. Don't save, download or install anything to it.\n\n2. Choose that drive or a raw disk image, then scan its unused space. Stop any time and keep partial results.\n\n3. Inspect and select files, then save them to a different physical drive.": "1. Smetti di usare l'unità da cui hai perso i file. Non salvare, scaricare o installare nulla su quell'unità.\n\n2. Seleziona l'unità o un'immagine disco grezza e scansiona lo spazio inutilizzato. Puoi interrompere la scansione in qualsiasi momento e conservare i risultati parziali.\n\n3. Esamina e seleziona i file, quindi salvali su un'altra unità fisica.", + "Supported formats": "Formati supportati", + "Photos, documents, archives, audio, video, applications, and small NTFS resident files. Unused-space scanning on {0} volumes.": "Foto, documenti, archivi, audio, video, applicazioni e piccoli file residenti NTFS. Scansione dello spazio inutilizzato su volumi {0}.", + "Built with Rust and Slint · MIT licensed application": "Realizzato con Rust e Slint · Applicazione con licenza MIT", + "Locked": "Bloccato", + "Stopping after the current step…": "Interruzione dopo il passaggio in corso…", + "The volume size is unknown; unused-space scanning cannot start.": "La dimensione del volume è sconosciuta. Impossibile avviare la scansione dello spazio inutilizzato.", + "Update worker stopped. Try again.": "Il processo di aggiornamento si è interrotto. Riprova.", + "Update verified. Open the installer to finish.": "Aggiornamento verificato. Apri il programma di installazione per completare.", + "Update finished. Close and reopen Reclaim if needed.": "Aggiornamento completato. Se necessario, chiudi e riapri Reclaim.", + "Version {0} is available.": "È disponibile la versione {0}.", + "Review recovery destination": "Verifica la destinazione del recupero", + " · ": " · ", + "Invalid preview position": "Posizione dell'anteprima non valida", + "This image is too large to preview. Recover it to view the full image.": "L'immagine è troppo grande per l'anteprima. Recuperala per vederla per intero.", + "The source is no longer available.": "L'origine non è più disponibile.", + "This image could not be previewed. Its contents may be incomplete or damaged.": "Impossibile visualizzare l'anteprima. L'immagine potrebbe essere incompleta o danneggiata.", + "Could not open Reclaim": "Impossibile aprire Reclaim", + "A native desktop session is required": "È necessaria una sessione desktop nativa", + "Version {} is available.": "È disponibile la versione {}.", + "Language preference could not be saved: {0}": "Impossibile salvare la lingua preferita: {0}", + "Mounted at {0}": "Montato in {0}", + "Found: {0} · Selected: {1}": "Trovati: {0} · Selezionati: {1}", + "Automatic package updates require pkexec (polkit)": "Gli aggiornamenti automatici dei pacchetti richiedono pkexec (polkit)", + "Automatic restart is unavailable on this platform": "Il riavvio automatico non è disponibile su questa piattaforma", + "Automatic updates are unavailable on this platform": "Gli aggiornamenti automatici non sono disponibili su questa piattaforma", + "Automatic updates require an installed copy of Reclaim": "Gli aggiornamenti automatici richiedono una copia installata di Reclaim", + "Could not ask for administrator permission: {e}": "Impossibile richiedere i permessi di amministratore: {e}", + "Could not check for updates: {0}": "Impossibile controllare gli aggiornamenti: {0}", + "Could not install update: {e}. Move Reclaim to a writable folder and retry.": "Impossibile installare l'aggiornamento: {e}. Sposta Reclaim in una cartella scrivibile e riprova.", + "Could not open link or file: {e}. Try opening it from your browser or file manager.": "Impossibile aprire il collegamento o il file: {e}. Prova ad aprirlo dal browser o dal gestore file.", + "Could not read this volume: {0}": "Impossibile leggere questo volume: {0}", + "Could not start the package manager: {e}": "Impossibile avviare il gestore dei pacchetti: {e}", + "Diagnostic log: {0}": "Registro di diagnostica: {0}", + "If this is a virtual machine, install or update its graphics drivers or guest additions.": "Se è una macchina virtuale, installa o aggiorna i driver grafici o le aggiunte guest.", + "Mount table changed too quickly. Try Refresh.": "La tabella dei montaggi è cambiata troppo rapidamente. Prova ad aggiornare.", + "No release notes.": "Nessuna nota di versione.", + "No update for this platform yet": "Nessun aggiornamento ancora disponibile per questa piattaforma", + "Package update did not complete (status {}). Reclaim was left open.": "Aggiornamento del pacchetto non completato (stato {}). Reclaim è rimasto aperto.", + "Physical disk": "Disco fisico", + "Reclaim could not continue": "Reclaim non ha potuto continuare", + "Reclaim encountered an unexpected error and must close.": "Reclaim ha riscontrato un errore imprevisto e deve chiudersi.", + "Reclaim stopped because of a Windows exception.": "Reclaim si è interrotto a causa di un'eccezione di Windows.", + "Run the Windows setup once to enable automatic updates": "Esegui una volta l'installazione su Windows per attivare gli aggiornamenti automatici", + "The desktop did not open the link or file. Try opening it manually.": "Il desktop non ha aperto il collegamento o il file. Prova ad aprirlo manualmente.", + "The desktop returned an unexpected open request. Try opening the link or file manually.": "Il desktop ha restituito una richiesta di apertura imprevista. Prova ad aprire il collegamento o il file manualmente.", + "The diagnostic log could not be written.": "Impossibile scrivere il registro di diagnostica.", + "The package manager did not install the update (status {code})": "Il gestore dei pacchetti non ha installato l'aggiornamento (stato {code})", + "The update could not be installed: {0}": "Impossibile installare l'aggiornamento: {0}", + "The update was not installed: administrator permission was not given. Reclaim was left open.": "Aggiornamento non installato perché i permessi di amministratore non sono stati concessi. Reclaim è rimasto aperto.", + "This installation must be updated using the matching installer.": "Questa installazione deve essere aggiornata con il programma di installazione corrispondente.", + "This update is not signed by the Reclaim release key": "Questo aggiornamento non è firmato con la chiave di rilascio di Reclaim", + "Update checksum verification failed": "Verifica della somma di controllo dell'aggiornamento non riuscita", + "Update exceeds expected size": "L'aggiornamento supera la dimensione prevista", + "Update signature verification failed": "Verifica della firma dell'aggiornamento non riuscita", + "Minimize": "Riduci a icona", + "Maximize": "Ingrandisci", + "Restore": "Ripristina", + "Close": "Chiudi", + "What’s new": "Novità", + "Later": "Più tardi", + "Hide details": "Nascondi dettagli", + "You can keep working and update later.": "Puoi continuare a lavorare e aggiornare più tardi.", + "Updates": "Aggiornamenti", + "Updates are managed by Flatpak.": "Gli aggiornamenti sono gestiti da Flatpak.", + "Restart as administrator": "Riavvia come amministratore", + "Administrator permission was not granted. Reclaim is still open.": "I permessi di amministratore non sono stati concessi. Reclaim è ancora aperto.", + "Could not restart as administrator: {0}": "Impossibile riavviare come amministratore: {0}", + "The source stopped returning data before its reported end. It may be truncated, disconnected, or restricted by the operating system. Files already found can still be recovered.": "L'origine ha smesso di restituire dati prima della fine dichiarata. Potrebbe essere incompleta, scollegata o limitata dal sistema operativo. Puoi ancora recuperare i file già trovati.", + "Could not prepare read-only access to this volume: {0}": "Impossibile preparare l'accesso in sola lettura a questo volume: {0}", + "Updates are managed by the Snap Store.": "Gli aggiornamenti sono gestiti dallo Snap Store.", + "Choose another folder": "Scegli un'altra cartella", + "Save here anyway": "Salva comunque qui", + "Cancel": "Annulla", + "Source code": "Codice sorgente", + "Report a problem": "Segnala un problema", + "Open an issue on GitHub": "Apri una segnalazione su GitHub", + "Release history": "Cronologia delle versioni", + "Every version with its release notes": "Tutte le versioni con le relative note", + "License": "Licenza", + "Read the MIT License": "Leggi la licenza MIT", + "Choose a source above to start scanning.": "Scegli un'origine qui sopra per avviare la scansione.", + "No files were found. Try another source.": "Nessun file trovato. Prova un'altra origine.", + "Encrypted and unlocked: choose the volume inside": "Crittografato e sbloccato: scegli il volume al suo interno", + "In use by the running system. Writes during a scan can overwrite the files you want back.": "Usato dal sistema in esecuzione. Le scritture durante la scansione possono sovrascrivere i file da recuperare.", + "Disk image": "Immagine disco", + "The installer is open. Follow its steps to finish.": "Il programma di installazione è aperto. Segui le istruzioni per completare.", + "Finish the scan or recovery first, then update.": "Termina prima la scansione o il recupero, poi aggiorna.", + "Open folder": "Apri cartella", + "Tick the files you want to recover.": "Spunta i file da recuperare.", + "Clear search": "Cancella ricerca", + "Not saved: that folder is on the drive you scanned.": "Salvataggio bloccato: la cartella si trova sull'unità scansionata." +} diff --git a/locales/nl.json b/locales/nl.json new file mode 100644 index 0000000..8a7db98 --- /dev/null +++ b/locales/nl.json @@ -0,0 +1,252 @@ +{ + "All files": "Alle bestanden", + "Appearance": "Uiterlijk", + "Debug logging": "Foutopsporingslogboek", + "Records scan and recovery checkpoints in reclaim-debug.log.": "Legt scan- en herstelstappen vast in reclaim-debug.log.", + "Enable logging": "Logboek inschakelen", + "Disable logging": "Logboek uitschakelen", + "The diagnostic log folder could not be opened.": "De map met het diagnostische logboek kon niet worden geopend.", + "Applications": "Toepassingen", + "Archives": "Archieven", + "Audio": "Audio", + "Candidate range is invalid": "Ongeldig bereik van het gevonden bestand", + "Choose a drive or disk image to get started.": "Kies een station of schijfkopie om te beginnen.", + "Choose a raw disk image": "Kies een onbewerkte schijfkopie", + "Contains mounted volumes": "Bevat gekoppelde volumes", + "Could not get read-only drive access: {e}. Allow the desktop authentication prompt and try again. If no prompt appears, check that UDisks2 and a polkit authentication agent are installed, or open a disk image.": "Geen leestoegang tot het station: {e}. Geef toestemming in het verificatievenster en probeer opnieuw. Als er geen venster verschijnt, controleer dan of UDisks2 en een polkit-verificatieagent zijn geïnstalleerd of open een schijfkopie.", + "Could not inspect Mac drives: {e}": "Mac-stations konden niet worden onderzocht: {e}", + "Could not list Windows drives: {e}. Open a disk image instead.": "Windows-stations konden niet worden weergegeven: {e}. Open een schijfkopie.", + "Could not list drives: {e}. You can still open a disk image.": "Stations konden niet worden weergegeven: {e}. Je kunt wel een schijfkopie openen.", + "Could not read the scanned source: {e}": "De gescande bron kon niet worden gelezen: {e}", + "Dark": "Donker", + "Documents": "Documenten", + "Encrypted: unlock in Disks, then refresh": "Versleuteld: ontgrendel in Schijven en vernieuw de lijst", + "Entire drive": "Geheel station", + "Generated filename": "Gegenereerde bestandsnaam", + "Icons": "Pictogrammen", + "Image decoded": "Afbeelding gedecodeerd", + "Internal drive": "Intern station", + "Invalid device path": "Ongeldig apparaatpad", + "Invalid source offset": "Ongeldige bronoffset", + "Invalid source sector size": "Ongeldige sectorgrootte van de bron", + "Language": "Taal", + "Language preference could not be saved: {e}": "De taalvoorkeur kon niet worden opgeslagen: {e}", + "Light": "Licht", + "Linux system": "Linux-systeem", + "Locked: unlock in Disk Utility first": "Vergrendeld: ontgrendel eerst in Schijfhulpprogramma", + "Mounted at {mount}": "Gekoppeld op {mount}", + "NTFS record checked": "NTFS-record gecontroleerd", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "De limiet voor residente NTFS-gegevens (64 MiB) is bereikt. Beschikbare resultaten kunnen nog worden geëxporteerd.", + "No drive access was returned": "Geen toegang tot het station verkregen", + "Not mounted": "Niet gekoppeld", + "Opening source… If Linux asks, authorize read-only access to the drive.": "Bron wordt geopend… Geef Linux desgevraagd leestoegang tot het station.", + "Pictures": "Afbeeldingen", + "Reclaim": "Reclaim", + "Reclaim - File Recovery": "Reclaim - Bestandsherstel", + "Recovered file": "Hersteld bestand", + "Recovered image failed validation. The source may have changed since scanning.": "De herstelde afbeelding kon niet worden gevalideerd. De bron is mogelijk gewijzigd na de scan.", + "Recovered {count} file before error: {e}": "{count} bestand hersteld voordat een fout optrad: {e}", + "Recovered {count} files before error: {e}": "{count} bestanden hersteld voordat een fout optrad: {e}", + "Recovering selected files…": "Geselecteerde bestanden herstellen…", + "Recovery stopped. {count} file saved.": "Herstel gestopt. {count} bestand opgeslagen.", + "Recovery stopped. {count} files saved.": "Herstel gestopt. {count} bestanden opgeslagen.", + "Refresh": "Vernieuwen", + "Save to a different physical drive": "Opslaan op een ander fysiek station", + "Saved {n} file.": "{n} bestand opgeslagen.", + "Saved {n} files.": "{n} bestanden opgeslagen.", + "Scan complete. {} file candidate found.": "Scan voltooid. {} mogelijk herstelbaar bestand gevonden.", + "Scan complete. {} file candidates found.": "Scan voltooid. {} mogelijk herstelbare bestanden gevonden.", + "Scan failed. See the details below.": "Scan mislukt. Bekijk de details hieronder.", + "The scan stopped before finding any files. See the details below.": "De scan stopte voordat er bestanden waren gevonden. Bekijk de details hieronder.", + "Scan stopped. You can recover partial results.": "Scan gestopt. Je kunt de gevonden bestanden herstellen.", + "Scan the selected source before recovering files.": "Scan de geselecteerde bron voordat je bestanden herstelt.", + "Scanning for recoverable files…": "Zoeken naar herstelbare bestanden…", + "Source changed or candidate is truncated": "De bron is gewijzigd of het gevonden bestand is afgekapt", + "Source changed since scanning. Scan it again before recovering.": "De bron is sinds de scan gewijzigd. Scan de bron opnieuw voordat je bestanden herstelt.", + "System": "Systeem", + "Too many files with the same recovered name": "Te veel herstelde bestanden met dezelfde naam", + "USB drive": "USB-station", + "Phone or camera": "Telefoon of camera", + "File transfer only": "Alleen bestandsoverdracht", + "Phones and cameras connect for file transfer only, so Reclaim can’t search them for deleted files. If yours has a memory card, put the card in a card reader and scan it here. Also check its Trash or Recently deleted folder.": "Telefoons en camera’s maken alleen verbinding voor bestandsoverdracht, dus Reclaim kan daarop niet naar verwijderde bestanden zoeken. Als het apparaat een geheugenkaart heeft, plaats die dan in een kaartlezer en scan de kaart hier. Controleer ook de prullenbak of de map Recent verwijderd.", + "Unlocked volume": "Ontgrendeld volume", + "Unverified candidate": "Niet-geverifieerd bestand", + "Video": "Video", + "Volume": "Volume", + "Window closed": "Venster gesloten", + "Windows denied access. For physical drives, restart Reclaim with Run as administrator, or open a disk image. BitLocker volumes must be unlocked first.": "Windows heeft toegang geweigerd. Start Reclaim voor fysieke stations opnieuw als administrator of open een schijfkopie. Ontgrendel eerst BitLocker-volumes.", + "macOS could not inspect drives. Open a raw disk image instead.": "macOS kon stations niet onderzoeken. Open een onbewerkte schijfkopie.", + "macOS denied access. Reading a whole drive requires administrator rights, and macOS may ask you to allow access to removable volumes or Full Disk Access in System Settings > Privacy & Security. You can open a disk image instead.": "macOS heeft toegang geweigerd. Voor het lezen van een geheel station zijn beheerdersrechten nodig. macOS kan vragen om toegang tot verwijderbare volumes of volledige schijftoegang in Systeeminstellingen > Privacy en beveiliging. Je kunt ook een schijfkopie openen.", + "{} file": "{} bestand", + "{} files": "{} bestanden", + "{} selected": "{} geselecteerd", + "{} selected (one)": "{} geselecteerd", + "Choose a source": "Kies een bron", + "Scan stopped": "Scan gestopt", + "Stop scan": "Scan stoppen", + "Stop recovery": "Herstel stoppen", + "File type": "Bestandstype", + "Size": "Grootte", + "bytes": "bytes", + "Deleted NTFS record": "Verwijderd NTFS-record", + "Deletion not confirmed": "Verwijdering niet bevestigd", + "Original name recovered": "Oorspronkelijke naam hersteld", + "Created": "Aangemaakt", + "Last modified": "Laatst gewijzigd", + "Last accessed": "Laatst geopend", + "Record changed": "Record gewijzigd", + "Sequence": "Volgnummer", + "Source offset": "Bronoffset", + "Dates are not available for files found by signature scanning.": "Datums zijn niet beschikbaar voor bestanden die via bestandssignaturen zijn gevonden.", + "File dates do not indicate when a file was deleted. This scanner does not recover deletion timestamps.": "Bestandsdatums geven niet aan wanneer een bestand is verwijderd. Deze scanner herstelt geen verwijderingstijdstippen.", + "Check for updates": "Controleren op updates", + "Checking for updates…": "Controleren op updates…", + "Last checked: {0}": "Laatst gecontroleerd: {0}", + "Downloading and verifying update…": "Update downloaden en verifiëren…", + "Structure checked": "Structuur gecontroleerd", + "Could not download update: {e}": "Update kon niet worden gedownload: {e}", + "Could not open installer (Windows error {result}). Open the downloaded file from Explorer.": "Het installatieprogramma kon niet worden geopend (Windows-fout {result}). Open het gedownloade bestand in Verkenner.", + "Download update": "Update downloaden", + "Open installer": "Installatieprogramma openen", + "Update and restart": "Bijwerken en opnieuw starten", + "Preparing update…": "Update voorbereiden…", + "Installing update…": "Update installeren…", + "Restarting Reclaim…": "Reclaim opnieuw starten…", + "General": "Algemeen", + "About": "Over Reclaim", + "Version": "Versie", + "Checking a {0} file…": "Een {0}-bestand controleren…", + "{0} of {1}": "{0} van {1}", + "Reading unused-space map…": "Toewijzingskaart voor ongebruikte ruimte lezen…", + "No unused space is available on this volume.": "Dit volume heeft geen ongebruikte ruimte.", + "Unused-space scanning needs a supported formatted volume (NTFS, FAT12/16/32, exFAT, ext2/3/4, or HFS+). Select the volume/partition rather than a whole-disk image. Occupied space was not scanned.": "Voor het scannen van ongebruikte ruimte is een ondersteund geformatteerd volume nodig (NTFS, FAT12/16/32, exFAT, ext2/3/4 of HFS+). Selecteer het volume of de partitie in plaats van een kopie van de hele schijf. Gebruikte ruimte is niet gescand.", + "This is a ReFS volume. Reclaim cannot read the ReFS free-space map yet, so this volume was not scanned.": "Dit is een ReFS-volume. Reclaim kan de kaart van de vrije ruimte van ReFS nog niet lezen, dus het volume is niet gescand.", + "This ext volume uses a feature Reclaim cannot map yet (compression, an external journal, META_BG, or bigalloc), so it was not scanned.": "Dit ext-volume gebruikt een functie die Reclaim nog niet kan verwerken (compressie, een extern journaal, META_BG of bigalloc). Het volume is daarom niet gescand.", + "This HFS+ volume's free-space map is too fragmented for Reclaim to read yet, so it was not scanned.": "De kaart van de vrije ruimte op dit HFS+-volume is te gefragmenteerd voor Reclaim. Het volume is niet gescand.", + "Saving recovered files to the same physical drive you scanned can overwrite and permanently damage data you are trying to recover. Choose a folder on a different physical drive. Continue only if this destination is on another drive.": "Herstelde bestanden opslaan op hetzelfde fysieke station dat je hebt gescand kan de gegevens die je wilt herstellen overschrijven en permanent beschadigen. Kies een map op een ander fysiek station. Ga alleen verder als de bestemming op een ander station staat.", + "Saving here can overwrite the deleted files you are trying to recover and damage them permanently. Choose a folder on a different physical drive, such as a USB drive.": "Als je hier opslaat, kun je de verwijderde bestanden die je probeert te herstellen overschrijven en permanent beschadigen. Kies een map op een ander fysiek station, bijvoorbeeld een USB-station.", + "Could not connect to the update server. Check your internet connection and try again.": "Er kon geen verbinding worden gemaakt met de updateserver. Controleer je internetverbinding en probeer opnieuw.", + "Could not check for updates. Please try again later.": "Er kon niet op updates worden gecontroleerd. Probeer het later opnieuw.", + "The scan ended unexpectedly. You can recover the files already found or scan again.": "De scan eindigde onverwacht. Je kunt de gevonden bestanden herstellen of opnieuw scannen.", + "Recovery ended unexpectedly.": "Het herstel is onverwacht geëindigd.", + "Scan finished with unreadable areas. Some files could not be checked. The drive may be failing: recover the files you need now and avoid repeated scans.": "De scan is voltooid met onleesbare gebieden. Sommige bestanden konden niet worden gecontroleerd. Het station kan defect raken. Herstel nu de bestanden die je nodig hebt en vermijd herhaalde scans.", + "No source selected": "Geen bron geselecteerd", + "Select a file to inspect its details.": "Selecteer een bestand om de details te bekijken.", + "A second chance for your files": "Een tweede kans voor je bestanden", + "Sources": "Bronnen", + "Recovered files": "Herstelde bestanden", + "Settings & help": "Instellingen en hulp", + "Read-only by design": "Ontworpen voor alleen-lezen", + "Scanning only reads the drive.": "De scan leest alleen van het station.", + "Choose a drive or disk image to search for deleted files.": "Kies een station of schijfkopie om naar verwijderde bestanden te zoeken.", + "Inspect candidates, choose your files, and recover them safely.": "Bekijk de gevonden bestanden, kies welke je nodig hebt en herstel ze veilig.", + "Appearance, updates, and a little guidance.": "Uiterlijk, updates en uitleg.", + "AVAILABLE SOURCES": "BESCHIKBARE BRONNEN", + "Open disk image": "Schijfkopie openen", + "No drives found. Open a disk image or connect a drive and refresh.": "Geen stations gevonden. Open een schijfkopie of sluit een station aan en vernieuw de lijst.", + "SELECTED SOURCE": "GESELECTEERDE BRON", + "Start scanning": "Scan starten", + "Search name or offset…": "Zoeken op naam of offset…", + "Select all": "Alles selecteren", + "Searching… candidates will appear here.": "Zoeken… Gevonden bestanden verschijnen hier.", + "No scan yet. Choose a source and start a scan.": "Nog geen scan. Kies een bron en start een scan.", + "No files match your search and category filters.": "Geen bestanden komen overeen met de zoekopdracht en categoriefilters.", + "Clear filters": "Filters wissen", + "FILE INSPECTOR": "BESTANDSDETAILS", + "Candidates may be incomplete. Verify recovered files before relying on them.": "Gevonden bestanden kunnen onvolledig zijn. Controleer herstelde bestanden voordat je ze gebruikt.", + "Recover selected": "Selectie herstellen", + "System language": "Systeemtaal", + "Recover in three steps": "Herstel in drie stappen", + "1. Stop using the drive you lost files from. Don't save, download or install anything to it.\n\n2. Choose that drive or a raw disk image, then scan its unused space. Stop any time and keep partial results.\n\n3. Inspect and select files, then save them to a different physical drive.": "1. Gebruik het station waarop je bestanden bent kwijtgeraakt niet meer. Sla er niets op en download of installeer er niets op.\n\n2. Kies dat station of een onbewerkte schijfkopie en scan de ongebruikte ruimte. Je kunt op elk moment stoppen en de gevonden bestanden behouden.\n\n3. Bekijk en selecteer bestanden en sla ze op een ander fysiek station op.", + "Supported formats": "Ondersteunde indelingen", + "Photos, documents, archives, audio, video, applications, and small NTFS resident files. Unused-space scanning on {0} volumes.": "Foto’s, documenten, archieven, audio, video, toepassingen en kleine residente NTFS-bestanden. Scant ongebruikte ruimte op {0}-volumes.", + "Built with Rust and Slint · MIT licensed application": "Gebouwd met Rust en Slint · Toepassing onder de MIT-licentie", + "Locked": "Vergrendeld", + "Stopping after the current step…": "Stoppen na de huidige stap…", + "The volume size is unknown; unused-space scanning cannot start.": "De grootte van het volume is onbekend. De scan van ongebruikte ruimte kan niet beginnen.", + "Update worker stopped. Try again.": "Het updateproces is gestopt. Probeer het opnieuw.", + "Update verified. Open the installer to finish.": "Update geverifieerd. Open het installatieprogramma om af te ronden.", + "Update finished. Close and reopen Reclaim if needed.": "Update voltooid. Sluit Reclaim en open het zo nodig opnieuw.", + "Version {0} is available.": "Versie {0} is beschikbaar.", + "Review recovery destination": "Controleer de herstelbestemming", + " · ": " · ", + "Invalid preview position": "Ongeldige positie voor het voorbeeld", + "This image is too large to preview. Recover it to view the full image.": "Deze afbeelding is te groot voor een voorbeeld. Herstel het bestand om de volledige afbeelding te bekijken.", + "The source is no longer available.": "De bron is niet meer beschikbaar.", + "This image could not be previewed. Its contents may be incomplete or damaged.": "Er kon geen voorbeeld van de afbeelding worden getoond. De inhoud kan onvolledig of beschadigd zijn.", + "Could not open Reclaim": "Reclaim kon niet worden geopend", + "A native desktop session is required": "Een lokale desktopsessie is vereist", + "Version {} is available.": "Versie {} is beschikbaar.", + "Language preference could not be saved: {0}": "De taalvoorkeur kon niet worden opgeslagen: {0}", + "Mounted at {0}": "Gekoppeld op {0}", + "Found: {0} · Selected: {1}": "Gevonden: {0} · Geselecteerd: {1}", + "Automatic package updates require pkexec (polkit)": "Voor automatische pakketupdates is pkexec (polkit) vereist", + "Automatic restart is unavailable on this platform": "Automatisch opnieuw starten is niet beschikbaar op dit platform", + "Automatic updates are unavailable on this platform": "Automatische updates zijn niet beschikbaar op dit platform", + "Automatic updates require an installed copy of Reclaim": "Voor automatische updates moet Reclaim zijn geïnstalleerd", + "Could not ask for administrator permission: {e}": "Beheerdersrechten konden niet worden aangevraagd: {e}", + "Could not check for updates: {0}": "Er kon niet op updates worden gecontroleerd: {0}", + "Could not install update: {e}. Move Reclaim to a writable folder and retry.": "Update kon niet worden geïnstalleerd: {e}. Verplaats Reclaim naar een beschrijfbare map en probeer opnieuw.", + "Could not open link or file: {e}. Try opening it from your browser or file manager.": "De koppeling of het bestand kon niet worden geopend: {e}. Probeer het te openen vanuit je browser of bestandsbeheerder.", + "Could not read this volume: {0}": "Dit volume kon niet worden gelezen: {0}", + "Could not start the package manager: {e}": "Pakketbeheerder kon niet worden gestart: {e}", + "Diagnostic log: {0}": "Diagnostisch logboek: {0}", + "If this is a virtual machine, install or update its graphics drivers or guest additions.": "Als dit een virtuele machine is, installeer of actualiseer dan de grafische stuurprogramma’s of gastuitbreidingen.", + "Mount table changed too quickly. Try Refresh.": "De koppelingstabel veranderde te snel. Probeer de lijst te vernieuwen.", + "No release notes.": "Geen releaseopmerkingen.", + "No update for this platform yet": "Nog geen update voor dit platform", + "Package update did not complete (status {}). Reclaim was left open.": "Pakketupdate is niet voltooid (status {}). Reclaim is open gebleven.", + "Physical disk": "Fysieke schijf", + "Reclaim could not continue": "Reclaim kon niet doorgaan", + "Reclaim encountered an unexpected error and must close.": "Reclaim heeft een onverwachte fout aangetroffen en moet worden afgesloten.", + "Reclaim stopped because of a Windows exception.": "Reclaim is gestopt door een Windows-uitzondering.", + "Run the Windows setup once to enable automatic updates": "Voer het Windows-installatieprogramma eenmaal uit om automatische updates in te schakelen", + "The desktop did not open the link or file. Try opening it manually.": "De desktop heeft de koppeling of het bestand niet geopend. Probeer het handmatig te openen.", + "The desktop returned an unexpected open request. Try opening the link or file manually.": "De desktop gaf een onverwacht openingsverzoek terug. Probeer de koppeling of het bestand handmatig te openen.", + "The diagnostic log could not be written.": "Het diagnostische logboek kon niet worden geschreven.", + "The package manager did not install the update (status {code})": "De pakketbeheerder heeft de update niet geïnstalleerd (status {code})", + "The update could not be installed: {0}": "Update kon niet worden geïnstalleerd: {0}", + "The update was not installed: administrator permission was not given. Reclaim was left open.": "De update is niet geïnstalleerd omdat er geen beheerdersrechten zijn verleend. Reclaim is open gebleven.", + "This installation must be updated using the matching installer.": "Deze installatie moet met het bijbehorende installatieprogramma worden bijgewerkt.", + "This update is not signed by the Reclaim release key": "Deze update is niet ondertekend met de releasesleutel van Reclaim", + "Update checksum verification failed": "De controlesom van de update kon niet worden geverifieerd", + "Update exceeds expected size": "De update is groter dan verwacht", + "Update signature verification failed": "De handtekening van de update kon niet worden geverifieerd", + "Minimize": "Minimaliseren", + "Maximize": "Maximaliseren", + "Restore": "Venstergrootte herstellen", + "Close": "Sluiten", + "What’s new": "Nieuw in deze versie", + "Later": "Later", + "Hide details": "Details verbergen", + "You can keep working and update later.": "Je kunt blijven werken en later bijwerken.", + "Updates": "Updates", + "Updates are managed by Flatpak.": "Updates worden beheerd door Flatpak.", + "Restart as administrator": "Opnieuw starten als administrator", + "Administrator permission was not granted. Reclaim is still open.": "Er zijn geen beheerdersrechten verleend. Reclaim is nog open.", + "Could not restart as administrator: {0}": "Opnieuw starten als administrator is mislukt: {0}", + "The source stopped returning data before its reported end. It may be truncated, disconnected, or restricted by the operating system. Files already found can still be recovered.": "De bron stopte met het leveren van gegevens vóór het opgegeven einde. De bron kan zijn afgekapt of losgekoppeld, of het besturingssysteem beperkt de toegang. Gevonden bestanden kunnen nog worden hersteld.", + "Could not prepare read-only access to this volume: {0}": "Leestoegang tot dit volume kon niet worden voorbereid: {0}", + "Updates are managed by the Snap Store.": "Updates worden beheerd door de Snap Store.", + "Choose another folder": "Andere map kiezen", + "Save here anyway": "Toch hier opslaan", + "Cancel": "Annuleren", + "Source code": "Broncode", + "Report a problem": "Een probleem melden", + "Open an issue on GitHub": "Een issue openen op GitHub", + "Release history": "Versiegeschiedenis", + "Every version with its release notes": "Alle versies en hun releaseopmerkingen", + "License": "Licentie", + "Read the MIT License": "De MIT-licentie lezen", + "Choose a source above to start scanning.": "Kies hierboven een bron om de scan te starten.", + "No files were found. Try another source.": "Geen bestanden gevonden. Probeer een andere bron.", + "Encrypted and unlocked: choose the volume inside": "Versleuteld en ontgrendeld: kies het volume binnenin", + "In use by the running system. Writes during a scan can overwrite the files you want back.": "In gebruik door het actieve systeem. Schrijfbewerkingen tijdens de scan kunnen de bestanden overschrijven die je wilt herstellen.", + "Disk image": "Schijfkopie", + "The installer is open. Follow its steps to finish.": "Het installatieprogramma is geopend. Volg de stappen om af te ronden.", + "Finish the scan or recovery first, then update.": "Rond eerst de scan of het herstel af en werk daarna bij.", + "Open folder": "Map openen", + "Tick the files you want to recover.": "Vink de bestanden aan die je wilt herstellen.", + "Clear search": "Zoekopdracht wissen", + "Not saved: that folder is on the drive you scanned.": "Niet opgeslagen: de map staat op het station dat je hebt gescand." +} diff --git a/locales/pt.json b/locales/pt.json index 1d08be3..f93dee5 100644 --- a/locales/pt.json +++ b/locales/pt.json @@ -8,6 +8,11 @@ "Administrator permission was not granted. Reclaim is still open.": "A permissão de administrador não foi concedida. A reclamação ainda está aberta.", "All files": "Todos os arquivos", "Appearance": "Aparência,", + "Debug logging": "Registo de depuração", + "Records scan and recovery checkpoints in reclaim-debug.log.": "Regista as etapas da análise e da recuperação em reclaim-debug.log.", + "Enable logging": "Ativar registo", + "Disable logging": "Desativar registo", + "The diagnostic log folder could not be opened.": "Não foi possível abrir a pasta do registo de diagnóstico.", "Appearance, updates, and a little guidance.": "Aparência, atualizações e algumas orientações.", "Applications": "Aplicações", "Archives": "Arquivos", @@ -18,7 +23,6 @@ "Automatic updates require an installed copy of Reclaim": "As atualizações automáticas exigem uma cópia instalada do Reclaim", "Built with Rust and Slint · MIT licensed application": "Desenvolvido com Rust e Slint · Aplicativo licenciado sob a licença MIT", "Cancel": "Cancelar", - "Candidate limit reached (100,000). Recover available results or scan a smaller image.": "Limite de candidatos atingido (100.000). Recupere os resultados disponíveis ou digitalize uma imagem menor.", "Candidate range is invalid": "O intervalo de candidatos é inválido", "Candidates may be incomplete. Verify recovered files before relying on them.": "Os candidatos podem estar incompletos. Verifique os arquivos recuperados antes de usá-los.", "Check for updates": "Procurar atualizações", @@ -97,6 +101,7 @@ "Mounted at {0}": "Montado em {0}", "Mounted at {mount}": "Montado em {mount}", "NTFS record checked": "Registro NTFS verificado", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "O limite de dados residentes do NTFS foi atingido (64 MiB). Ainda é possível exportar os resultados disponíveis.", "No drive access was returned": "Nenhum acesso à unidade foi retornado", "No drives found. Open a disk image or connect a drive and refresh.": "Nenhuma unidade encontrada. Abra uma imagem de disco ou conecte uma unidade e atualize.", "No files match your search and category filters.": "Nenhum arquivo corresponde aos seus filtros de busca e categoria.", @@ -136,7 +141,6 @@ "Recovered {count} files before error: {e}": "{count} arquivos recuperados antes do erro: {e}", "Recovering selected files…": "Recuperando os arquivos selecionados...", "Recovery ended unexpectedly.": "A recuperação terminou inesperadamente.", - "Recovery result limit reached. Available results can still be exported.": "Limite de resultados de recuperação atingido. Os resultados disponíveis ainda podem ser exportados.", "Recovery stopped. {count} file saved.": "Recuperação interrompida. {count} arquivo salvo.", "Recovery stopped. {count} files saved.": "Recuperação interrompida. {count} arquivos salvos.", "Refresh": "Atualizar", diff --git a/locales/ru.json b/locales/ru.json index 42c2d73..1d5e393 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -1,10 +1,14 @@ { "All files": "Все файлы", "Appearance": "Внешний вид", + "Debug logging": "Журнал отладки", + "Records scan and recovery checkpoints in reclaim-debug.log.": "Записывает этапы сканирования и восстановления в reclaim-debug.log.", + "Enable logging": "Включить журнал", + "Disable logging": "Выключить журнал", + "The diagnostic log folder could not be opened.": "Не удалось открыть папку диагностического журнала.", "Applications": "Приложения", "Archives": "Архивы", "Audio": "Аудио", - "Candidate limit reached (100,000). Recover available results or scan a smaller image.": "Достигнут предел найденных файлов (100 000). Восстановите доступные результаты или просканируйте образ меньшего размера.", "Candidate range is invalid": "Недопустимый диапазон найденного файла", "Choose a drive or disk image to get started.": "Для начала выберите диск или образ диска.", "Choose a raw disk image": "Выберите необработанный образ диска", @@ -32,6 +36,7 @@ "Locked: unlock in Disk Utility first": "Заблокирован: сначала разблокируйте в Дисковой утилите", "Mounted at {mount}": "Подключён в {mount}", "NTFS record checked": "Запись NTFS проверена", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.": "Достигнут лимит резидентных данных NTFS (64 МиБ). Доступные результаты можно экспортировать.", "No drive access was returned": "Доступ к диску не получен", "Not mounted": "Не подключён", "Opening source… If Linux asks, authorize read-only access to the drive.": "Открытие источника… Если Linux запросит разрешение, предоставьте доступ к диску только для чтения.", @@ -43,7 +48,6 @@ "Recovered {count} file before error: {e}": "До ошибки восстановлен {count} файл: {e}", "Recovered {count} files before error: {e}": "До ошибки восстановлено файлов: {count}. Ошибка: {e}", "Recovering selected files…": "Восстановление выбранных файлов…", - "Recovery result limit reached. Available results can still be exported.": "Достигнут предел результатов. Доступные результаты можно экспортировать.", "Recovery stopped. {count} file saved.": "Восстановление остановлено. Сохранён {count} файл.", "Recovery stopped. {count} files saved.": "Восстановление остановлено. Сохранено файлов: {count}.", "Refresh": "Обновить", diff --git a/src/allocation.rs b/src/allocation.rs index 6ef22c9..efbb15a 100644 --- a/src/allocation.rs +++ b/src/allocation.rs @@ -403,7 +403,6 @@ pub(crate) fn scan( bytes: plan.unused, filesystem: plan.filesystem, }); - let mut found_count = 0; let mut resident_bytes = 0usize; // Files rebuilt from records come first; carving must not list them again. let mut known = std::collections::HashSet::new(); @@ -413,7 +412,6 @@ pub(crate) fn scan( if file.validation != crate::Validation::Unverified { known.insert(file.offset); } - found_count += 1; resident_bytes += file.resident_data.as_ref().map_or(0, |data| data.len()); event(crate::Event::Found(file)); } @@ -464,9 +462,8 @@ pub(crate) fn scan( cancel, |e| match e { crate::Event::Found(mut file) => { - found_count += 1; resident_bytes += file.resident_data.as_ref().map_or(0, |data| data.len()); - if found_count > 100_000 || resident_bytes > MAX_MAP { + if resident_bytes > MAX_MAP { limited = true; return; } @@ -513,7 +510,7 @@ pub(crate) fn scan( )?; if limited { return Err(invalid( - "Candidate limit reached (100,000). Recover available results.", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.", )); } event(crate::Event::Progress(length)); diff --git a/src/allocation/ntfs.rs b/src/allocation/ntfs.rs index 0410b86..85e1e2b 100644 --- a/src/allocation/ntfs.rs +++ b/src/allocation/ntfs.rs @@ -324,14 +324,24 @@ pub(super) fn plan( clusters, }; plan.files = files_or_none( - deleted_files(input, &mft, record_size, geometry, &bitmap, total, cancel), + deleted_files(input, &mft, record_size, geometry, &bitmap, total, cancel).map( + |(files, skipped)| { + if skipped != 0 { + log::warn!( + "NTFS MFT result limit ({MAX_DELETED}) reached: {skipped} eligible deleted records skipped" + ); + } + files + }, + ), "MFT", cancel, )?; Ok(plan) } -/// Most deleted files taken from one MFT; the scan's own limit is 100,000. +/// Bound the reconstruction data held in memory before carving begins. Each +/// entry may retain a filename, resident bytes, or a list of physical extents. const MAX_DELETED: usize = 50_000; /// Physical byte position of `logical` within a nonresident stream. @@ -363,7 +373,8 @@ fn all_free(bitmap: &[u8], at: u64, length: u64, cluster_size: u64) -> bool { /// Deleted files whose MFT records survive and whose data clusters are all /// still unused, so their bytes cannot have been overwritten by another file. -/// Fragmented files come back whole, with their original names. +/// Return the retained files and the number of otherwise eligible records +/// beyond the retention limit. Fragmented files retain their original names. fn deleted_files( input: &mut (impl Read + Seek), mft: &Stream, @@ -372,12 +383,13 @@ fn deleted_files( bitmap: &[u8], total: u64, cancel: &AtomicBool, -) -> io::Result> { +) -> io::Result<(Vec, u64)> { let records = mft.initialized.min(mft.size) / record_size; let batch = (1024 * 1024 / record_size).max(1); let mut files = Vec::new(); + let mut skipped = 0; let mut index = 16; - while index < records && files.len() < MAX_DELETED { + while index < records { check(cancel)?; let count = batch.min(records - index); let bytes = match stream_read( @@ -398,6 +410,7 @@ fn deleted_files( } }; for (number, raw) in (index..).zip(bytes.chunks_exact(to_usize(record_size))) { + check(cancel)?; // Only deleted (flags 0) file records are candidates. if raw.get(..4) != Some(b"FILE".as_slice()) || u16at(raw, 22) != 0 { continue; @@ -418,12 +431,56 @@ fn deleted_files( }; file.offset = at; } - files.push(file); - if files.len() >= MAX_DELETED { - break; + if files.len() < MAX_DELETED { + files.push(file); + } else { + skipped += 1; } } index += count; } - Ok(files) + Ok((files, skipped)) +} + +#[cfg(test)] +mod tests { + use super::*; + use std::io::Cursor; + + #[test] + fn counts_only_eligible_deleted_records_past_retention_limit() { + let geometry = crate::ntfs::Geometry { + cluster_size: 4096, + clusters: 20_000, + }; + // One cluster at 18,000 is free. The neighboring cluster is occupied. + let eligible = super::super::tests::ntfs3_deleted_record(&[0x21, 1, 0x50, 0x46, 0], 4096); + let occupied = super::super::tests::ntfs3_deleted_record(&[0x21, 1, 0x51, 0x46, 0], 4096); + let mut bitmap = vec![0xff; 2500]; + bitmap[18_000 / 8] &= !1; + let mut bytes = vec![0; 16 * 1024]; + bytes.extend(eligible.repeat(MAX_DELETED + 1)); + bytes.extend(occupied); + // Keep searching across batches after the cap. + bytes.resize(bytes.len() + 1024 * 1024, 0); + bytes.extend(eligible); + let size = bytes.len() as u64; + let mft = Stream { + runs: vec![(0, size.div_ceil(geometry.cluster_size))], + size, + initialized: size, + }; + let (files, skipped) = deleted_files( + &mut Cursor::new(bytes), + &mft, + 1024, + geometry, + &bitmap, + size, + &AtomicBool::new(false), + ) + .unwrap(); + assert_eq!(files.len(), MAX_DELETED); + assert_eq!(skipped, 2); + } } diff --git a/src/allocation/tests.rs b/src/allocation/tests.rs index 0469bc6..7c437d8 100644 --- a/src/allocation/tests.rs +++ b/src/allocation/tests.rs @@ -175,6 +175,41 @@ fn run(b: &[u8]) -> (Vec, u64, u64) { .unwrap(); (files, free, progress) } +#[test] +fn scans_past_one_hundred_thousand_candidates() { + let (mut image, heap) = fat12(); + // Use two sectors per cluster and mark the data area free. + image.resize(4 * 1024 * 1024, 0); + image[13] = 2; + put16(&mut image, 19, 8192); + for table in [512, 13 * 512] { + for cluster in 2..2 + (image.len() - heap) / 1024 { + fat12_entry(&mut image, table, cluster, 0); + } + } + let pdf = b"%PDF-1.7\nhello\n%%EOF\n"; + let count = 100_001; + for bytes in image[heap..heap + count * pdf.len()].chunks_exact_mut(pdf.len()) { + bytes.copy_from_slice(pdf); + } + let last_offset = (heap + (count - 1) * pdf.len()) as u64; + + let mut offsets = Vec::new(); + crate::scan_reader(&mut Cursor::new(&image), &AtomicBool::new(false), |event| { + if let crate::Event::Found(file) = event { + offsets.push(file.offset); + } + }) + .unwrap(); + assert_eq!(offsets.len(), count); + assert_eq!(offsets.last(), Some(&last_offset)); + + let (files, free, progress) = run(&image); + assert_eq!(files.len(), count); + assert_eq!(files.last().unwrap().offset, last_offset); + assert_eq!(progress, free); +} + #[test] fn occupied_files_are_not_read_or_found_and_free_offsets_export_correctly() { struct Audit { @@ -550,7 +585,7 @@ fn malformed_ext_and_hfs_headers_do_not_panic() { /// A deleted MFT record in the NTFS 3.0 layout Linux's ntfs3 driver writes: /// update array at 42, attributes from 48, and no file name left behind. -fn ntfs3_deleted_record(runs: &[u8], size: u64) -> Vec { +pub(super) fn ntfs3_deleted_record(runs: &[u8], size: u64) -> Vec { let mut b = vec![0; 1024]; b[..4].copy_from_slice(b"FILE"); put16(&mut b, 4, 42); diff --git a/src/diagnostics.rs b/src/diagnostics.rs index e512311..518988b 100644 --- a/src/diagnostics.rs +++ b/src/diagnostics.rs @@ -5,17 +5,31 @@ deny(clippy::indexing_slicing, clippy::arithmetic_side_effects) )] use std::{ - fs::OpenOptions, + fs::{File, OpenOptions}, io::Write, path::{Path, PathBuf}, - sync::OnceLock, + sync::{ + Mutex, OnceLock, + atomic::{AtomicBool, Ordering}, + }, + time::{Duration, Instant}, }; static LOG_PATH: OnceLock = OnceLock::new(); +static DEBUG_LOG: Mutex> = Mutex::new(None); +static DEBUG_ENABLED: AtomicBool = AtomicBool::new(false); +const DEBUG_LOG_LIMIT: u64 = 1024 * 1024; +pub const DEBUG_LOG_NAME: &str = "reclaim-debug.log"; struct FileLogger; static LOGGER: FileLogger = FileLogger; fn append(path: &Path, message: &str) -> std::io::Result<()> { + let mut file = open_log(path)?; + writeln!(file, "{} {message}", jiff::Timestamp::now())?; + file.sync_data() +} + +fn open_log(path: &Path) -> std::io::Result { let mut options = OpenOptions::new(); options.create(true).append(true); // Never follow a symlink planted where the log should be (CWE-59). @@ -24,9 +38,153 @@ fn append(path: &Path, message: &str) -> std::io::Result<()> { use std::os::unix::fs::OpenOptionsExt; options.custom_flags(libc::O_NOFOLLOW).mode(0o600); } - let mut file = options.open(path)?; - writeln!(file, "{} {message}", jiff::Timestamp::now())?; - file.sync_data() + options.open(path) +} + +pub fn log_folder() -> Option<&'static Path> { + LOG_PATH.get().and_then(|path| path.parent()) +} + +pub fn set_debug_logging(enabled: bool) -> std::io::Result<()> { + let mut log = DEBUG_LOG + .lock() + .map_err(|error| std::io::Error::other(error.to_string()))?; + *log = if enabled { + let directory = log_folder().ok_or_else(|| std::io::Error::other("No log folder"))?; + Some(open_debug_log(directory)?) + } else { + None + }; + DEBUG_ENABLED.store(enabled, Ordering::Relaxed); + Ok(()) +} + +fn open_debug_log(directory: &Path) -> std::io::Result { + let mut file = open_log(&directory.join(DEBUG_LOG_NAME))?; + if file.metadata()?.len() >= DEBUG_LOG_LIMIT { + file.set_len(0)?; + } + writeln!( + file, + "{} debug.enabled version={} os={} arch={}", + jiff::Timestamp::now(), + env!("CARGO_PKG_VERSION"), + std::env::consts::OS, + std::env::consts::ARCH + )?; + Ok(file) +} + +/// Use only fixed event names and structured data that excludes user files and paths. +pub fn checkpoint(message: std::fmt::Arguments<'_>) { + if debug_enabled() + && let Ok(mut log) = DEBUG_LOG.lock() + { + write_checkpoint(log.as_mut(), message); + } +} + +pub fn debug_enabled() -> bool { + DEBUG_ENABLED.load(Ordering::Relaxed) +} + +pub struct ScanTrace { + started: Instant, + last_progress: Instant, + scanned: u64, + candidates: u64, + unreadable: u64, +} + +impl ScanTrace { + pub fn start(source_size: Option, alignment: usize) -> Option { + debug_enabled().then(|| { + checkpoint(format_args!( + "scan.start source_size={source_size:?} alignment={alignment}" + )); + let started = Instant::now(); + Self { + started, + last_progress: started, + scanned: 0, + candidates: 0, + unreadable: 0, + } + }) + } + + pub fn event(&mut self, event: &reclaim::Event) { + use reclaim::Event; + let Self { + last_progress, + scanned, + candidates, + unreadable, + .. + } = self; + match event { + Event::UnusedSpace { bytes, filesystem } => { + checkpoint(format_args!( + "scan.allocation_ready filesystem={filesystem} bytes={bytes}" + )); + } + Event::Progress(bytes) => { + *scanned = *bytes; + if last_progress.elapsed() >= Duration::from_secs(30) { + checkpoint(format_args!( + "scan.progress bytes={scanned} candidates={candidates} unreadable_bytes={unreadable}" + )); + *last_progress = Instant::now(); + } + } + Event::Found(_) => { + *candidates = candidates.saturating_add(1); + if candidates.is_multiple_of(10_000) || *candidates == 100_001 { + checkpoint(format_args!( + "scan.candidates count={candidates} bytes={scanned}" + )); + } + } + Event::Unreadable { bytes, .. } => { + if *unreadable == 0 { + checkpoint(format_args!("scan.unreadable bytes={bytes}")); + } + *unreadable = unreadable.saturating_add(*bytes); + } + Event::Checking { kind, bytes, .. } => { + if last_progress.elapsed() >= Duration::from_secs(30) { + checkpoint(format_args!( + "scan.checking format={kind} candidate_bytes={bytes} scanned={scanned} candidates={candidates}" + )); + *last_progress = Instant::now(); + } + } + } + } + + pub fn finish(&self, cancelled: bool, result: &std::io::Result<()>) { + if debug_enabled() { + checkpoint(format_args!( + "scan.finish cancelled={cancelled} error_kind={:?} os_error={:?} bytes={} candidates={} unreadable_bytes={} elapsed_ms={}", + result.as_ref().err().map(std::io::Error::kind), + result.as_ref().err().and_then(std::io::Error::raw_os_error), + self.scanned, + self.candidates, + self.unreadable, + self.started.elapsed().as_millis() + )); + } + } +} + +fn write_checkpoint(file: Option<&mut File>, message: std::fmt::Arguments<'_>) { + if let Some(file) = file + && file + .metadata() + .is_ok_and(|info| info.len() < DEBUG_LOG_LIMIT) + { + writeln!(file, "{} {message}", jiff::Timestamp::now()).ok(); + } } impl log::Log for FileLogger { @@ -250,6 +408,29 @@ unsafe extern "system" fn native_exception( #[cfg(test)] mod tests { + #[test] + fn debug_log_records_checkpoints_only_while_enabled() { + assert!(super::ScanTrace::start(Some(1024), 512).is_none()); + let directory = tempfile::tempdir().unwrap(); + let path = directory.path().join(super::DEBUG_LOG_NAME); + super::write_checkpoint(None, format_args!("before_enable")); + assert!(!path.exists()); + + let mut log = super::open_debug_log(directory.path()).unwrap(); + super::write_checkpoint( + Some(&mut log), + format_args!("scan.progress candidates=100001"), + ); + drop(log); + super::write_checkpoint(None, format_args!("after_disable")); + + let log = std::fs::read_to_string(&path).unwrap(); + assert!(log.contains("debug.enabled")); + assert!(log.contains("scan.progress candidates=100001")); + assert!(!log.contains("before_enable")); + assert!(!log.contains("after_disable")); + } + // Run the real panic hook in a separate process so other tests keep their // panic handlers and a genuine hook failure cannot take down this suite. #[cfg(not(windows))] diff --git a/src/i18n.rs b/src/i18n.rs index ce9b542..8591ba2 100644 --- a/src/i18n.rs +++ b/src/i18n.rs @@ -37,6 +37,8 @@ macro_rules! define_languages { /// Native names in menu order, excluding the localized System entry. pub const LANGUAGE_NAMES: &[&str] = &[$($name,)*]; + /// Locale codes in the same order as the native names. + pub const LANGUAGE_CODES: &[&str] = &[$($code,)*]; fn catalog(language: Language) -> &'static BTreeMap { match language { diff --git a/src/lib.rs b/src/lib.rs index c4b9231..4ed8eeb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -944,7 +944,6 @@ pub(crate) fn scan_reader_with_filter( .unwrap_or(1) .max(262); let mut base = 0u64; - let mut found_count = 0usize; let mut skip_until = 0u64; let mut resident_bytes = 0usize; let mut last_progress = std::time::Instant::now(); @@ -990,10 +989,9 @@ pub(crate) fn scan_reader_with_filter( { skip_until = offset + record_size as u64; resident_bytes += to_usize(found.size); - found_count += 1; - if resident_bytes > LIMIT || found_count > 100_000 { + if resident_bytes > LIMIT { return Err(io::Error::other( - "Recovery result limit reached. Available results can still be exported.", + "NTFS resident data limit reached (64 MiB). Available results can still be exported.", )); } event(Event::Found(found)); @@ -1126,12 +1124,6 @@ pub(crate) fn scan_reader_with_filter( { skip_until = offset + size as u64; } - found_count += 1; - if found_count > 100_000 { - return Err(io::Error::other( - "Candidate limit reached (100,000). Recover available results or scan a smaller image.", - )); - } event(Event::Found(Found { offset, size: size as u64, diff --git a/src/main.rs b/src/main.rs index b347e29..8f90b01 100644 --- a/src/main.rs +++ b/src/main.rs @@ -262,11 +262,21 @@ impl Reclaim { let (tx, rx) = mpsc::sync_channel(256); self.receiver = Some(rx); std::thread::spawn(move || { + let mut trace = diagnostics::ScanTrace::start(source_size, alignment); let result = (|| { if cancel.load(Ordering::Relaxed) { return Ok(()); } let opened = drives::open_source(&path); + if trace.is_some() + && let Err(error) = &opened + { + diagnostics::checkpoint(format_args!( + "scan.open_failed kind={:?} os_error={:?}", + error.kind(), + error.raw_os_error() + )); + } if windows_drive && opened .as_ref() @@ -275,6 +285,9 @@ impl Reclaim { tx.send(Message::SourceAccessDenied).ok(); } let handle = Arc::new(opened?); + if trace.is_some() { + diagnostics::checkpoint(format_args!("scan.source_opened")); + } if cancel.load(Ordering::Relaxed) { return Ok(()); } @@ -295,14 +308,30 @@ impl Reclaim { "The volume size is unknown; unused-space scanning cannot start.", ) })?; - reclaim::scan_unused_reader(&mut input, size, &cancel, |e| { + let forward_event = |event| { // A closed window drops the receiver; stop scanning for it. - if tx.send(Message::Scan(e)).is_err() { + if tx.send(Message::Scan(event)).is_err() { cancel.store(true, Ordering::Relaxed); } + }; + if trace.is_none() { + return reclaim::scan_unused_reader(&mut input, size, &cancel, forward_event); + } + reclaim::scan_unused_reader(&mut input, size, &cancel, |event| { + if let Some(active) = &mut trace { + if diagnostics::debug_enabled() { + active.event(&event); + } else { + trace = None; + } + } + forward_event(event); }) - })() - .map_err(|e: std::io::Error| e.to_string()); + })(); + if let Some(trace) = trace { + trace.finish(cancel.load(Ordering::Relaxed), &result); + } + let result = result.map_err(|e| e.to_string()); // Nobody is waiting for the result once the window has closed. tx.send(Message::Done(result)).ok(); }); @@ -453,6 +482,7 @@ impl Reclaim { // Recheck after the dialog: a mount or drive may have changed while it // was open. Never allow an affirmative click to write onto the source. if drives::destination(&source, &directory) == drives::Destination::SameDrive { + diagnostics::checkpoint(format_args!("recovery.blocked reason=same_drive")); // Short: it shares a two-line row with Open folder and Recover. self.recovery_status = "Not saved: that folder is on the drive you scanned.".into(); return; @@ -465,6 +495,7 @@ impl Reclaim { if needs_source_bytes && source.metadata().ok().map(|m| (m.len(), m.modified().ok())) != self.source_stamp { + diagnostics::checkpoint(format_args!("recovery.blocked reason=source_changed")); self.recovery_status = "Source changed since scanning. Scan it again before recovering.".into(); return; @@ -483,6 +514,9 @@ impl Reclaim { let alignment = self.source_alignment; let source_size = self.source_size; std::thread::spawn(move || { + let started = diagnostics::debug_enabled().then(std::time::Instant::now); + let mut count = 0usize; + diagnostics::checkpoint(format_args!("recovery.start selected={}", files.len())); let result = (|| { // Never a cloned handle: it would share the running scan's cursor. let input = preview::Input::new(handle) @@ -495,7 +529,6 @@ impl Reclaim { inner: input, stop: Arc::clone(&cancel), }; - let mut count = 0usize; let stopped = |count: usize| { if count == 1 { format!("Recovery stopped. {count} file saved.") @@ -508,6 +541,11 @@ impl Reclaim { return Err(stopped(count)); } reclaim::recover_unique(&mut input, &directory, &f, number).map_err(|e| { + diagnostics::checkpoint(format_args!( + "recovery.write_failed kind={:?} os_error={:?}", + e.kind(), + e.raw_os_error() + )); if cancel.load(Ordering::Relaxed) { stopped(count) } else if count == 1 { @@ -520,6 +558,16 @@ impl Reclaim { } Ok(count) })(); + if let Some(started) = started + && diagnostics::debug_enabled() + { + diagnostics::checkpoint(format_args!( + "recovery.finish success={} cancelled={} saved={count} elapsed_ms={}", + result.is_ok(), + cancel.load(Ordering::Relaxed), + started.elapsed().as_millis() + )); + } tx.send(result).ok(); }); } @@ -1233,6 +1281,38 @@ fn run() -> Result<(), slint::PlatformError> { }); }); let state = Rc::new(RefCell::new(Reclaim::default())); + if let Some(folder) = diagnostics::log_folder() { + ui.set_debug_log_ready(folder.join(diagnostics::DEBUG_LOG_NAME).is_file()); + } + { + let weak = ui.as_weak(); + ui.on_toggle_debug_logging(move || { + if let Some(ui) = weak.upgrade() { + let enabled = !ui.get_debug_logging(); + let result = diagnostics::set_debug_logging(enabled); + ui.set_debug_log_write_error(result.is_err()); + ui.set_debug_log_open_error(false); + if result.is_ok() { + ui.set_debug_logging(enabled); + ui.set_debug_log_ready(true); + } + } + }); + } + { + let weak = ui.as_weak(); + ui.on_open_debug_log_folder(move || { + let Some(folder) = diagnostics::log_folder() else { + return; + }; + let weak = weak.clone(); + std::thread::spawn(move || { + let failed = installer::open_folder(folder).is_err(); + weak.upgrade_in_event_loop(move |ui| ui.set_debug_log_open_error(failed)) + .ok(); + }); + }); + } { let state = Rc::clone(&state); ui.on_open_saved_folder(move || { diff --git a/src/slint_ui_tests.rs b/src/slint_ui_tests.rs index 9af424a..ee962db 100644 --- a/src/slint_ui_tests.rs +++ b/src/slint_ui_tests.rs @@ -1619,6 +1619,103 @@ fn about_links_open_only_fixed_project_pages() { ); } +#[test] +fn language_picker_keeps_country_flags_aligned_with_native_names() { + use i_slint_backend_testing::ElementHandle; + slint::platform::set_platform(Box::new(i_slint_backend_testing::TestingBackend::new( + i_slint_backend_testing::TestingBackendOptions { + renderer_name: Some("software".into()), + ..Default::default() + }, + ))) + .unwrap(); + let ui = AppWindow::new().unwrap(); + ui.set_page(2); + ui.show().unwrap(); + ui.window().set_size(slint::PhysicalSize::new(900, 640)); + i18n::with_language(i18n::Language::English, || ui_text::apply(&ui)); + let names = ui.get_language_names(); + let icons = ui.get_language_flags(); + let flags = ui.global::>(); + assert_eq!(icons.row_count(), names.row_count()); + assert_eq!(icons.row_data(0), Some(flags.get_system())); + for (name, expected) in [ + ("English", flags.get_gb()), + ("עברית", flags.get_il()), + ("Español", flags.get_es()), + ("Français", flags.get_fr()), + ("Deutsch", flags.get_de()), + ("العربية", flags.get_sa()), + ("Русский", flags.get_ru()), + ("Português", flags.get_pt()), + ("Italiano", flags.get_it()), + ("Nederlands", flags.get_nl()), + ] { + let index = names.iter().position(|label| label == name).unwrap(); + assert_eq!(icons.row_data(index), Some(expected)); + } + let picker = ElementHandle::find_by_accessible_label(&ui, "System language") + .next() + .unwrap(); + picker.invoke_accessible_default_action(); + assert_eq!(picker.accessible_expanded(), Some(true)); + ui.window().take_snapshot().unwrap(); +} + +#[test] +fn settings_debug_logging_exposes_toggle_and_log_folder() { + use i_slint_backend_testing::ElementHandle; + slint::platform::set_platform(Box::new(i_slint_backend_testing::TestingBackend::new( + i_slint_backend_testing::TestingBackendOptions { + renderer_name: Some("software".into()), + ..Default::default() + }, + ))) + .unwrap(); + let ui = AppWindow::new().unwrap(); + ui.set_page(2); + ui.show().unwrap(); + ui.window().set_size(slint::PhysicalSize::new(900, 640)); + let weak = ui.as_weak(); + ui.on_toggle_debug_logging(move || { + let ui = weak.upgrade().unwrap(); + ui.set_debug_logging(!ui.get_debug_logging()); + ui.set_debug_log_ready(true); + }); + let opened = Rc::new(std::cell::Cell::new(false)); + let capture = Rc::clone(&opened); + ui.on_open_debug_log_folder(move || capture.set(true)); + for language in [ + i18n::Language::English, + i18n::Language::German, + i18n::Language::Hebrew, + ] { + i18n::with_language(language, || { + ui_text::apply(&ui); + let strings = ui.global::>(); + ui.window().take_snapshot().unwrap(); + ElementHandle::find_by_accessible_label(&ui, strings.get_enable_logging().as_str()) + .next() + .unwrap() + .invoke_accessible_default_action(); + assert!(ui.get_debug_logging()); + ui.window().take_snapshot().unwrap(); + layout_checks::assert_controls_clear(&ui, (900.0, 640.0), "debug logging enabled"); + ElementHandle::find_by_accessible_label(&ui, strings.get_disable_logging().as_str()) + .next() + .unwrap() + .invoke_accessible_default_action(); + assert!(!ui.get_debug_logging()); + opened.set(false); + ElementHandle::find_by_accessible_label(&ui, strings.get_open_folder().as_str()) + .next() + .unwrap() + .invoke_accessible_default_action(); + assert!(opened.get()); + }); + } +} + #[test] fn about_rows_are_keyboard_buttons_with_descriptions() { slint::platform::set_platform(Box::new(i_slint_backend_testing::TestingBackend::new( diff --git a/src/ui_text.rs b/src/ui_text.rs index ac0536e..d1a7961 100644 --- a/src/ui_text.rs +++ b/src/ui_text.rs @@ -4,7 +4,7 @@ not(test), deny(clippy::indexing_slicing, clippy::arithmetic_side_effects) )] -use crate::{AppWindow, Locale, Strings}; +use crate::{AppWindow, LanguageFlags, Locale, Strings}; use reclaim::i18n; use slint::ComponentHandle; const WINDOW_TITLE: &str = "Reclaim - File Recovery"; @@ -112,6 +112,12 @@ ui_strings! { set_phones_and_cameras_connect_for => "Phones and cameras connect for file transfer only, so Reclaim can’t search them for deleted files. If yours has a memory card, put the card in a card reader and scan it here. Also check its Trash or Recently deleted folder.", set_language => "Language", set_appearance => "Appearance", + set_debug_logging => "Debug logging", + set_debug_log_description => "Records scan and recovery checkpoints in reclaim-debug.log.", + set_enable_logging => "Enable logging", + set_disable_logging => "Disable logging", + set_diagnostic_write_error => "The diagnostic log could not be written.", + set_diagnostic_open_error => "The diagnostic log folder could not be opened.", } pub fn apply(ui: &AppWindow) { @@ -122,6 +128,23 @@ pub fn apply(ui: &AppWindow) { .chain(i18n::LANGUAGE_NAMES.iter().copied().map(Into::into)) .collect(); ui.set_language_names(slint::ModelRc::new(slint::VecModel::from(language_names))); + let flags = ui.global::>(); + let language_flags: Vec<_> = std::iter::once(flags.get_system()) + .chain(i18n::LANGUAGE_CODES.iter().map(|&code| match code { + "en" => flags.get_gb(), + "he" => flags.get_il(), + "es" => flags.get_es(), + "fr" => flags.get_fr(), + "de" => flags.get_de(), + "ar" => flags.get_sa(), + "ru" => flags.get_ru(), + "pt" => flags.get_pt(), + "it" => flags.get_it(), + "nl" => flags.get_nl(), + _ => flags.get_system(), + })) + .collect(); + ui.set_language_flags(slint::ModelRc::new(slint::VecModel::from(language_flags))); strings.set_photos_documents_archives_audio_video( // Not `message`: it would merge the separately isolated names back into one run. i18n::t(SUPPORTED_FORMATS) diff --git a/ui/app.slint b/ui/app.slint index 48a7c62..d807790 100644 --- a/ui/app.slint +++ b/ui/app.slint @@ -5,6 +5,12 @@ export global Strings { in-out property window-title: "Reclaim - File Recovery"; in-out property language: "Language"; in-out property appearance: "Appearance"; + in-out property debug-logging: "Debug logging"; + in-out property debug-log-description: "Records scan and recovery checkpoints in reclaim-debug.log."; + in-out property enable-logging: "Enable logging"; + in-out property disable-logging: "Disable logging"; + in-out property diagnostic-write-error: "The diagnostic log could not be written."; + in-out property diagnostic-open-error: "The diagnostic log folder could not be opened."; in-out property no-source-selected: "No source selected"; in-out property select-a-file-to-inspect: "Select a file to inspect its details."; @@ -498,8 +504,24 @@ component ThemePicker inherits Rectangle { } } +export global LanguageFlags { + out property system: @image-url("icons/globe.svg"); + out property gb: @image-url("flags/gb.svg"); + out property il: @image-url("flags/il.svg"); + out property es: @image-url("flags/es.svg"); + out property fr: @image-url("flags/fr.svg"); + out property de: @image-url("flags/de.svg"); + out property sa: @image-url("flags/sa.svg"); + out property ru: @image-url("flags/ru.svg"); + out property pt: @image-url("flags/pt.svg"); + out property it: @image-url("flags/it.svg"); + out property nl: @image-url("flags/nl.svg"); +} + component Choice inherits Rectangle { in property <[string]> model; + in property <[image]> icons; + in property tint-first-icon; in-out property current-index; callback selected(int); height: Metrics.control; min-width: 150px; horizontal-stretch: 1; @@ -511,6 +533,9 @@ component Choice inherits Rectangle { accessible-expanded: popup.is-open; accessible-action-default => { focus.focus(); if popup.is-open { popup.close(); } else { popup.show(); } } Row { padding-left: 12px; padding-right: 10px; spacing: 8px; + if root.icons.length > root.current-index : Image { source: root.icons[root.current-index]; width: 20px; height: 15px; image-fit: contain; + colorize: root.tint-first-icon && root.current-index == 0 ? Palette.ink : transparent; + } Label { text: root.model[root.current-index]; font-size: 13px; color: Palette.ink; overflow: elide; vertical-alignment: center; min-width: 0px; horizontal-stretch: 1; } Image { source: @image-url("icons/chevron.svg"); colorize: Palette.muted; width: 16px; height: 16px; } } @@ -541,7 +566,12 @@ component Choice inherits Rectangle { content-y: -clamp(root.current-index * 36px - (self.visible-height - 36px) / 2, 0px, max(0px, root.model.length * 36px - self.visible-height)); for value[index] in root.model : Rectangle { height: 36px; border-radius: 6px; background: index == root.current-index ? Palette.selected : option.has-hover ? Palette.subtle : transparent; - Label { x: 10px; width: parent.width - 20px; height: parent.height; vertical-alignment: center; text: value; font-size: 13px; color: Palette.ink; overflow: elide; } + Row { width: parent.width; height: parent.height; padding: 10px; spacing: 8px; + if root.icons.length > index : Image { source: root.icons[index]; width: 20px; height: 15px; image-fit: contain; + colorize: root.tint-first-icon && index == 0 ? Palette.ink : transparent; + } + Label { vertical-alignment: center; text: value; font-size: 13px; color: Palette.ink; overflow: elide; min-width: 0px; horizontal-stretch: 1; } + } option := TouchArea { mouse-cursor: pointer; clicked => { root.current-index = index; root.selected(index); popup.close(); } } } } @@ -832,7 +862,14 @@ export component AppWindow inherits Window { private property update-blocked: root.update-available && !root.update-installing && (root.busy || root.recovering); in-out property language; in property <[string]> language-names: [Strings.system-language]; + in property <[image]> language-flags: [LanguageFlags.system]; callback change-language(int); + in property debug-logging; + in property debug-log-ready; + in property debug-log-write-error; + in property debug-log-open-error; + callback toggle-debug-logging(); + callback open-debug-log-folder(); callback open-link(AboutLink); callback apply-update(); callback dismiss-update(); @@ -1188,12 +1225,25 @@ export component AppWindow inherits Window { GroupTitle { text: Strings.general; } Card { VerticalLayout { SettingRow { icon: @image-url("icons/globe.svg"); title: Strings.language; - VerticalLayout { horizontal-stretch: 0; width: 220px; alignment: center; Choice { model: root.language-names; current-index <=> root.language; selected(i) => { root.change-language(i); } } } + VerticalLayout { horizontal-stretch: 0; width: 220px; alignment: center; Choice { model: root.language-names; icons: root.language-flags; tint-first-icon: true; current-index <=> root.language; selected(i) => { root.change-language(i); } } } } RowDivider { } SettingRow { icon: @image-url("icons/contrast.svg"); title: Strings.appearance; ThemePicker { accessible-role: radio-group; accessible-label: Strings.appearance; } } + RowDivider { } + SettingRow { icon: @image-url("icons/bug.svg"); title: Strings.debug-logging; + detail: root.debug-log-write-error ? Strings.diagnostic-write-error : root.debug-log-open-error ? Strings.diagnostic-open-error : Strings.debug-log-description; + if root.debug-log-ready : Action { + text: Strings.open-folder; + quiet: true; + clicked => { root.open-debug-log-folder(); } + } + Action { + text: root.debug-logging ? Strings.disable-logging : Strings.enable-logging; + clicked => { root.toggle-debug-logging(); } + } + } } } Rectangle { height: 8px; } GroupTitle { text: Strings.recover-in-three-steps; } diff --git a/ui/flags/de.svg b/ui/flags/de.svg new file mode 100644 index 0000000..71aa2d2 --- /dev/null +++ b/ui/flags/de.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ui/flags/es.svg b/ui/flags/es.svg new file mode 100644 index 0000000..a296ebf --- /dev/null +++ b/ui/flags/es.svg @@ -0,0 +1,544 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/flags/fr.svg b/ui/flags/fr.svg new file mode 100644 index 0000000..4110e59 --- /dev/null +++ b/ui/flags/fr.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ui/flags/gb.svg b/ui/flags/gb.svg new file mode 100644 index 0000000..7991383 --- /dev/null +++ b/ui/flags/gb.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/ui/flags/il.svg b/ui/flags/il.svg new file mode 100644 index 0000000..f43be7e --- /dev/null +++ b/ui/flags/il.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/ui/flags/it.svg b/ui/flags/it.svg new file mode 100644 index 0000000..b8dc73e --- /dev/null +++ b/ui/flags/it.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ui/flags/nl.svg b/ui/flags/nl.svg new file mode 100644 index 0000000..b8b4dcf --- /dev/null +++ b/ui/flags/nl.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ui/flags/pt.svg b/ui/flags/pt.svg new file mode 100644 index 0000000..2767cd4 --- /dev/null +++ b/ui/flags/pt.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/flags/ru.svg b/ui/flags/ru.svg new file mode 100644 index 0000000..cf24301 --- /dev/null +++ b/ui/flags/ru.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ui/flags/sa.svg b/ui/flags/sa.svg new file mode 100644 index 0000000..596cf48 --- /dev/null +++ b/ui/flags/sa.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + +