Settings Screen Localization Fixes and Improvements

This commit is contained in:
cyberalby2 2026-03-16 16:57:41 +01:00
parent 53b7d77d5c
commit b2163b701e
3 changed files with 16 additions and 8 deletions

View file

@ -699,6 +699,10 @@
"mdblist_tmdb_ai": "MDBList, TMDB, AI", "mdblist_tmdb_ai": "MDBList, TMDB, AI",
"check_updates": "Check for updates", "check_updates": "Check for updates",
"clear_mdblist_cache": "Clear MDBList Cache", "clear_mdblist_cache": "Clear MDBList Cache",
"user":"Utente",
"clear_mdblist_cache_confirm":"Are you sure you want to clear all cached MDBList data? This cannot be undone.",
"clear_mdblist_cache_success":"MDBList cache has been cleared.",
"clear_mdblist_cache_error":"Could not clear MDBList cache.",
"cache_management": "CACHE MANAGEMENT", "cache_management": "CACHE MANAGEMENT",
"downloads_counter": "downloads and counting", "downloads_counter": "downloads and counting",
"made_with_love": "Made with ❤️ by Tapframe and friends", "made_with_love": "Made with ❤️ by Tapframe and friends",

View file

@ -3,7 +3,7 @@
"loading": "Caricamento...", "loading": "Caricamento...",
"cancel": "Annulla", "cancel": "Annulla",
"save": "Salva", "save": "Salva",
"clear":"Clear", "clear":"Cancella",
"delete": "Elimina", "delete": "Elimina",
"edit": "Modifica", "edit": "Modifica",
"search": "Cerca", "search": "Cerca",
@ -684,6 +684,10 @@
"mdblist_tmdb_ai": "MDBList, TMDB, IA", "mdblist_tmdb_ai": "MDBList, TMDB, IA",
"check_updates": "Controlla aggiornamenti", "check_updates": "Controlla aggiornamenti",
"clear_mdblist_cache": "Cancella Cache MDBList", "clear_mdblist_cache": "Cancella Cache MDBList",
"user":"User",
"clear_mdblist_cache_confirm":"Sei sicuro di voler cancellare tutta la cache di MDBList? Questa azione non può essere annullata.",
"clear_mdblist_cache_success":"La cache di MDBList è stata cancellata.",
"clear_mdblist_cache_error":"Non è stato possibile cancellare la cache di MDBList.",
"cache_management": "GESTIONE CACHE", "cache_management": "GESTIONE CACHE",
"downloads_counter": "download e oltre", "downloads_counter": "download e oltre",
"made_with_love": "Fatto con ❤️ da Tapframe e amici", "made_with_love": "Fatto con ❤️ da Tapframe e amici",

View file

@ -334,18 +334,18 @@ const SettingsScreen: React.FC = () => {
const handleClearMDBListCache = () => { const handleClearMDBListCache = () => {
openAlert( openAlert(
'Clear MDBList Cache', t('settings.clear_mdblist_cache'),
'Are you sure you want to clear all cached MDBList data? This cannot be undone.', t('settings.clear_mdblist_cache_confirm'),
[ [
{ label: 'Cancel', onPress: () => { } }, { label: t('common.cancel'), onPress: () => { } },
{ {
label: 'Clear', label: t('common.clear'),
onPress: async () => { onPress: async () => {
try { try {
await mmkvStorage.removeItem('mdblist_cache'); await mmkvStorage.removeItem('mdblist_cache');
openAlert('Success', 'MDBList cache has been cleared.'); openAlert(t('common.success'), t('settings.clear_mdblist_cache_success'));
} catch (error) { } catch (error) {
openAlert('Error', 'Could not clear MDBList cache.'); openAlert(t('common.error'), t('settings.clear_mdblist_cache_error'));
if (__DEV__) console.error('Error clearing MDBList cache:', error); if (__DEV__) console.error('Error clearing MDBList cache:', error);
} }
} }
@ -399,7 +399,7 @@ const SettingsScreen: React.FC = () => {
{showTraktItem && ( {showTraktItem && (
<SettingItem <SettingItem
title={t('trakt.title')} title={t('trakt.title')}
description={isAuthenticated ? `@${userProfile?.username || 'User'}` : t('settings.sign_in_sync')} description={isAuthenticated ? `@${userProfile?.username || t('settings.user')}` : t('settings.sign_in_sync')}
customIcon={<TraktIcon size={isTablet ? 24 : 20} />} customIcon={<TraktIcon size={isTablet ? 24 : 20} />}
renderControl={() => <ChevronRight />} renderControl={() => <ChevronRight />}
onPress={() => navigation.navigate('TraktSettings')} onPress={() => navigation.navigate('TraktSettings')}