From fd579c2af33f9f30d272b9e540db0cf995d1eb86 Mon Sep 17 00:00:00 2001 From: cyberalby2 Date: Mon, 16 Mar 2026 17:16:07 +0100 Subject: [PATCH] Backup Screen Popup Localization Fixes and Improvements + Added Japanese English Label to language picker --- src/i18n/locales/en.json | 9 +++++++++ src/i18n/locales/it.json | 8 ++++++++ src/screens/BackupScreen.tsx | 12 ++++++------ 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 6a8fd5cf..b8da5acb 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -662,6 +662,7 @@ "spanish": "Spanish", "french": "French", "italian": "Italian", + "japanese":"Japanese", "croatian": "Croatian", "chinese": "Chinese (Simplified)", "hindi": "Hindi", @@ -1198,6 +1199,14 @@ "title": "Backup & Restore", "options_title": "Backup Options", "options_desc": "Choose what to include in your backups", + "watched_status":"Watched status", + "backup_contents":"Backup Contents", + "total":"Total", + "items":"items", + "entries":"entries", + "installed":"installed", + "configurations":"configurations", + "backup_contents_desc":"This backup includes your selected app settings, themes, watched markers, and integration data.", "section_core": "Core Data", "section_addons": "Addons & Integrations", "section_settings": "Settings & Preferences", diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index b4b3d28b..a670700d 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -1183,6 +1183,14 @@ "title": "Backup e Ripristino", "options_title": "Opzioni Backup", "options_desc": "Scegli cosa includere nei tuoi backup", + "watched_status":"Progressi visione", + "backup_contents":"Contenuti Backup", + "total":"Totale", + "items":"elementi", + "entries":"voci", + "configurations":"configurazioni", + "installed":"installati", + "backup_contents_desc":"Questo backup includerà le impostazioni app selezionate, i temi, i contenuti guardati e i dati sulle integrazioni.", "section_core": "Dati Principali", "section_addons": "Addon e Integrazioni", "section_settings": "Impostazioni e Preferenze", diff --git a/src/screens/BackupScreen.tsx b/src/screens/BackupScreen.tsx index 7952ce9f..aa942641 100644 --- a/src/screens/BackupScreen.tsx +++ b/src/screens/BackupScreen.tsx @@ -130,31 +130,31 @@ const BackupScreen: React.FC = () => { let total = 0; if (preferences.includeLibrary) { - items.push(`${t('backup.library_label')}: ${preview.library} items`); + items.push(`${t('backup.library_label')}: ${preview.library} ${t('backup.items')}`); total += preview.library; } if (preferences.includeWatchProgress) { - items.push(`${t('backup.watch_progress_label')}: ${preview.watchProgress} entries`); + items.push(`${t('backup.watch_progress_label')}: ${preview.watchProgress} ${t('backup.entries')}`); total += preview.watchProgress; // Include watched status with watch progress - items.push(`Watched Status: ${preview.watchedStatus} items`); + items.push(`${t('backup.watched_status')}: ${preview.watchedStatus} ${t('backup.items')}`); total += preview.watchedStatus; } if (preferences.includeAddons) { - items.push(`${t('backup.addons_label')}: ${preview.addons} installed`); + items.push(`${t('backup.addons_label')}: ${preview.addons} ${t('backup.installed')}`); total += preview.addons; } if (preferences.includeLocalScrapers) { - items.push(`${t('backup.plugins_label')}: ${preview.scrapers} configurations`); + items.push(`${t('backup.plugins_label')}: ${preview.scrapers} ${t('backup.configurations')}`); total += preview.scrapers; } // Check if no items are selected const message = items.length > 0 - ? `Backup Contents:\n\n${items.join('\n')}\n\nTotal: ${total} items\n\nThis backup includes your selected app settings, themes, watched markers, and integration data.` + ? `${t('backup.backup_contents')}:\n\n${items.join('\n')}\n\ ${t('backup.total')}: ${total} ${t('backup.items')}\n\n${t('backup.backup_contents_desc')}` : t('backup.alert_no_content'); openAlert(