updated remaining files

This commit is contained in:
tapframe 2026-01-06 15:32:23 +05:30
parent 280536e93c
commit 437645d5fd
4 changed files with 24 additions and 14 deletions

View file

@ -301,7 +301,12 @@
"no_content_found": "No content found",
"no_content_filters": "No content found for the selected filters",
"loading_content": "Loading content...",
"back": "Back"
"back": "Back",
"in_theaters": "In Theaters",
"all": "All",
"failed_tmdb": "Failed to load content from TMDB",
"movies": "Movies",
"tv_shows": "TV Shows"
},
"streams": {
"back_to_episodes": "Back to Episodes",

View file

@ -301,7 +301,12 @@
"no_content_found": "Nenhum conteúdo encontrado",
"no_content_filters": "Nenhum conteúdo encontrado para os filtros selecionados",
"loading_content": "Carregando conteúdo...",
"back": "Voltar"
"back": "Voltar",
"in_theaters": "Em Cartaz",
"all": "Todos",
"failed_tmdb": "Falha ao carregar conteúdo do TMDB",
"movies": "Filmes",
"tv_shows": "Séries"
},
"streams": {
"back_to_episodes": "Voltar aos Episódios",

View file

@ -334,7 +334,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
// Check if the name already includes content type indicators
const lowerName = catalogName.toLowerCase();
const contentType = type === 'movie' ? 'Movies' : type === 'series' ? 'TV Shows' : `${type.charAt(0).toUpperCase() + type.slice(1)}s`;
const contentType = type === 'movie' ? t('catalog.movies') : type === 'series' ? t('catalog.tv_shows') : `${type.charAt(0).toUpperCase() + type.slice(1)}s`;
// If the name already contains type information, return as is
if (lowerName.includes('movie') || lowerName.includes('tv') || lowerName.includes('show') || lowerName.includes('series')) {
@ -349,8 +349,8 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
const displayName = actualCatalogName
? getCustomName(addonId || '', type || '', id || '', createDisplayName(actualCatalogName))
: getCustomName(addonId || '', type || '', id || '', originalName ? createDisplayName(originalName) : '') ||
(genreFilter ? `${genreFilter} ${type === 'movie' ? 'Movies' : 'TV Shows'}` :
`${type.charAt(0).toUpperCase() + type.slice(1)}s`);
(genreFilter ? `${genreFilter} ${type === 'movie' ? t('catalog.movies') : t('catalog.tv_shows')}` :
(type === 'movie' ? t('catalog.movies') : type === 'series' ? t('catalog.tv_shows') : `${type.charAt(0).toUpperCase() + type.slice(1)}s`));
// Add effect to get the actual catalog name and filter extras from addon manifest
useEffect(() => {
@ -509,7 +509,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
} catch (error) {
logger.error('Failed to get TMDB catalog:', error);
InteractionManager.runAfterInteractions(() => {
setError('Failed to load content from TMDB');
setError(t('catalog.failed_tmdb'));
setItems([]);
setLoading(false);
setRefreshing(false);
@ -793,7 +793,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
color={colors.white}
style={{ marginRight: 4 }}
/>
<Text style={styles.badgeText}>In Theaters</Text>
<Text style={styles.badgeText}>{t('catalog.in_theaters')}</Text>
</View>
</GlassViewComp>
) : (
@ -805,7 +805,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
color={colors.white}
style={{ marginRight: 4 }}
/>
<Text style={styles.badgeText}>In Theaters</Text>
<Text style={styles.badgeText}>{t('catalog.in_theaters')}</Text>
</View>
</BlurView>
)}
@ -818,7 +818,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
color={colors.white}
style={{ marginRight: 4 }}
/>
<Text style={styles.badgeText}>In Theaters</Text>
<Text style={styles.badgeText}>{t('catalog.in_theaters')}</Text>
</View>
)
)}
@ -892,7 +892,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
onPress={() => navigation.goBack()}
>
<MaterialIcons name="chevron-left" size={28} color={colors.white} />
<Text style={styles.backText}>Back</Text>
<Text style={styles.backText}>{t('catalog.back')}</Text>
</TouchableOpacity>
</View>
<Text style={styles.headerTitle}>{displayName || originalName || `${type.charAt(0).toUpperCase() + type.slice(1)}s`}</Text>
@ -911,7 +911,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
onPress={() => navigation.goBack()}
>
<MaterialIcons name="chevron-left" size={28} color={colors.white} />
<Text style={styles.backText}>Back</Text>
<Text style={styles.backText}>{t('catalog.back')}</Text>
</TouchableOpacity>
</View>
<Text style={styles.headerTitle}>{displayName || `${type.charAt(0).toUpperCase() + type.slice(1)}s`}</Text>
@ -929,7 +929,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
onPress={() => navigation.goBack()}
>
<MaterialIcons name="chevron-left" size={28} color={colors.white} />
<Text style={styles.backText}>Back</Text>
<Text style={styles.backText}>{t('catalog.back')}</Text>
</TouchableOpacity>
</View>
<Text style={styles.headerTitle}>{displayName || `${type.charAt(0).toUpperCase() + type.slice(1)}s`}</Text>
@ -955,7 +955,7 @@ const CatalogScreen: React.FC<CatalogScreenProps> = ({ route, navigation }) => {
<Text style={[
styles.filterChipText,
(extra.name === 'genre' ? !activeGenreFilter : !selectedFilters[extra.name]) && styles.filterChipTextActive
]}>All</Text>
]}>{t('catalog.all')}</Text>
</TouchableOpacity>
{/* Filter options from catalog extra */}

View file

@ -1150,7 +1150,7 @@ const SearchScreen = () => {
{/* ScreenHeader Component */}
<ScreenHeader
title="Search"
title={t('search.title')}
isTablet={isTV || isLargeTablet || isTablet}
>
{/* Search Bar */}