From 07542d2838c0846384ba2adc6080c0302c485796 Mon Sep 17 00:00:00 2001 From: albyalex96 Date: Thu, 5 Mar 2026 15:55:20 +0100 Subject: [PATCH] Improved Localization in Addons Screen --- src/i18n/locales/en.json | 3 ++- src/i18n/locales/it.json | 3 ++- src/screens/AddonsScreen.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index af29dacb..99b00f22 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -494,7 +494,8 @@ "no_description": "No description available", "overview": "OVERVIEW", "no_categories": "No categories", - "pre_installed": "PRE-INSTALLED" + "pre_installed": "PRE-INSTALLED", + "already_installed":"This addon is already installed. Multiple installations are only allowed for stream providers." }, "trakt": { "title": "Trakt Settings", diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index 617fb060..c1bd75c1 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -509,7 +509,8 @@ "no_description": "Nessuna descrizione disponibile", "overview": "PANORAMICA", "no_categories": "Nessuna categoria", - "pre_installed": "PRE-INSTALLATO" + "pre_installed": "PRE-INSTALLATO", + "already_installed":"Questo addon è già installato. Installazioni multiple sono permesse solo per addon che aggiungono provider di flussi video." }, "trakt": { "title": "Impostazioni Trakt", diff --git a/src/screens/AddonsScreen.tsx b/src/screens/AddonsScreen.tsx index c09ab93e..0f70b2b4 100644 --- a/src/screens/AddonsScreen.tsx +++ b/src/screens/AddonsScreen.tsx @@ -643,7 +643,7 @@ const AddonsScreen = () => { if (isAlreadyInstalled && !providesStreams) { setAlertTitle(t('common.error')); - setAlertMessage('This addon is already installed. Multiple installations are only allowed for stream providers.'); + setAlertMessage(t('addons.already_installed')); setAlertActions([{ label: t('common.ok'), onPress: () => setAlertVisible(false) }]); setAlertVisible(true); return;