Skip to content

Commit

Permalink
refactor: move strings to film module
Browse files Browse the repository at this point in the history
  • Loading branch information
jarnedemeulemeester committed Dec 25, 2024
1 parent cfe37e0 commit e76f53a
Show file tree
Hide file tree
Showing 59 changed files with 169 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private fun HomeScreenLayout(
onSearch = { expanded = true },
expanded = expanded,
onExpandedChange = { expanded = it },
placeholder = { Text("Search movies and TV shows") },
placeholder = { Text(stringResource(FilmR.string.search_placeholder)) },
leadingIcon = {
AnimatedContent(
targetState = expanded,
Expand Down Expand Up @@ -305,7 +305,7 @@ private fun HomeScreenLayoutPreview() {
state = HomeState(
sections = listOf(dummyHomeSection),
views = listOf(dummyHomeView),
error = Exception("Brol"),
error = Exception("Failed to load data"),
),
onAction = {},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import dev.jdtech.jellyfin.utils.ObserveAsEvents
import dev.jdtech.jellyfin.viewmodels.PlayerItemsEvent
import dev.jdtech.jellyfin.viewmodels.PlayerViewModel
import java.util.UUID
import dev.jdtech.jellyfin.core.R as CoreR
import dev.jdtech.jellyfin.film.R as FilmR

@Composable
fun HomeScreen(
Expand Down Expand Up @@ -137,7 +137,7 @@ private fun HomeScreenLayout(
modifier = Modifier.animateItem(),
) {
Text(
text = stringResource(id = CoreR.string.latest_library, view.view.name),
text = stringResource(id = FilmR.string.latest_library, view.view.name),
style = MaterialTheme.typography.headlineMedium,
modifier = Modifier.padding(start = MaterialTheme.spacings.large),
)
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-b+es+419/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">T%1$d:E%2$d - %3$s</string>
<string name="next_up">Siguiente</string>
<string name="continue_watching">Continar viendo</string>
<string name="latest_library">Reciente en %1$s</string>
<string name="series_poster">Póster de la serie</string>
<string name="no_favorites">No tienes favoritos</string>
<string name="no_downloads">No tienes descargas</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-bg/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">С%1$d:Е%2$d - %3$s</string>
<string name="next_up">Следва</string>
<string name="continue_watching">Продължете да гледате</string>
<string name="latest_library">Последният %1$s</string>
<string name="no_favorites">Вие нямате любими</string>
<string name="no_downloads">Вие нямате нищо свалено</string>
<string name="search">Търсене</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-cs-rCZ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">Další na řadě</string>
<string name="continue_watching">Pokračovat ve sledování</string>
<string name="latest_library">Nejnovější %1$s</string>
<string name="series_poster">Plakát</string>
<string name="no_favorites">Nemáte žádné oblíbené položky</string>
<string name="search">Vyhledávat</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-da/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@
<string name="episode_name_with_end">%1$d-%2$d. %3$s</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="episode_name_extended_with_end">S%1$d:E%2$d-%3$d - %4$s</string>
<string name="continue_watching">Fortsæt med at se</string>
<string name="latest_library">Seneste %1$s</string>
<string name="sort_order">Sorteringsrækkefølge</string>
<string name="player_gestures">Afspillerbevægelser</string>
<string name="player_gestures_vb">Bevægelser for lydstyrke og lysstyrke</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">Als Nächstes</string>
<string name="continue_watching">Weiter ansehen</string>
<string name="latest_library">Neueste %1$s</string>
<string name="no_downloads">Du hast nichts heruntergeladen</string>
<string name="search">Suchen</string>
<string name="no_search_results">Keine Suchergebnisse</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-es-rMX/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">T%1$d:E%2$d - %3$s</string>
<string name="next_up">Siguiente</string>
<string name="continue_watching">Continar viendo</string>
<string name="latest_library">Reciente en %1$ss</string>
<string name="series_poster">Póster de la serie</string>
<string name="no_favorites">No tienes favoritos</string>
<string name="no_downloads">No tienes descargas</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">T%1$d:E%2$d - %3$s</string>
<string name="next_up">Siguiente</string>
<string name="continue_watching">Continuar viendo</string>
<string name="latest_library">Reciente en %1$s</string>
<string name="series_poster">Póster de la serie</string>
<string name="no_favorites">No tienes favoritos</string>
<string name="no_downloads">No tienes descargas</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<string name="runtime_minutes">%1$d minutes</string>
<string name="track_selection">[%1$s] %2$s (%3$s)</string>
<string name="next_up">À suivre</string>
<string name="continue_watching">Reprendre la lecture</string>
<string name="no_favorites">Vous n\'avez aucun favoris</string>
<string name="search">Rechercher</string>
<string name="no_search_results">Aucun résultat</string>
Expand All @@ -58,7 +57,6 @@
<string name="download_mobile_data">Télécharger via données mobiles</string>
<string name="download_button_description">Télécharger</string>
<string name="movies_label">Films</string>
<string name="latest_library">Derniers %1$s</string>
<string name="search_hint">Rechercher…</string>
<string name="jellyfin_banner">Bannière Jellyfin</string>
<string name="check_button_description">Marquer comme vu / non vu</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-hi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_with_end">%1$d-%2$d. %3$s</string>
<string name="episode_name_extended">स%1$d:ए%2$d - %3$s</string>
<string name="continue_watching">जारी रखें देखना</string>
<string name="latest_library">नवीनतम %1$s</string>
<string name="libraries">लाइब्रेरीज़</string>
<string name="collection_no_media">इस संग्रह में कोई मीडिया नहीं है</string>
<string name="search">खोजें</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-hu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">Következik</string>
<string name="continue_watching">Megtekintés Folytatása</string>
<string name="latest_library">Legutóbbi %1$s</string>
<string name="series_poster">Sorozat poszterje</string>
<string name="no_favorites">Nincsenek még kedvenceid</string>
<string name="no_downloads">Még nincsenek letöltéseid</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">Prossimo Episodio</string>
<string name="continue_watching">Continua a guardare</string>
<string name="latest_library">Ultimi %1$s</string>
<string name="series_poster">Poster Serie</string>
<string name="search">Cerca</string>
<string name="no_search_results">Nessun risultato per la ricerca</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-iw/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<string name="seasons">עונות</string>
<string name="favorite_button_description">מועדף</string>
<string name="episode_name">%1$d. %2$s</string>
<string name="continue_watching">המשך לצפות</string>
<string name="libraries">ספריות</string>
<string name="genres">ז\'אנרים</string>
<string name="play_button_description">נגן את המדיה</string>
Expand Down Expand Up @@ -116,7 +115,6 @@
<string name="gestures">מחוות</string>
<string name="player_gestures_vb">מחוות עוצמת שמע ובהירות</string>
<string name="sort_by_options_5">תאריך שחרור</string>
<string name="latest_library">%1$s שיצאו לאחרונה</string>
<string name="settings_use_cache_title">מטמון תמונות</string>
<string name="settings_use_cache_summary">שמור תמונות במטמון כדי להאיץ זמני טעינה. ייכנס לתוקף לאחר הפעלה מחדש של היישומון.</string>
<string name="mpv_player_summary">השתמש בנגן mpv הניסיוני כדי לנגן וידאו. ל-mpv יש תמיכה ביותר מפענחי וידאו, שמע וכתוביות.</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-ko/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
<string name="play_button_description">미디어 재생</string>
<string name="favorite_button_description">즐겨찾기</string>
<string name="episode_watched_indicator">에피소드 재생 길이</string>
<string name="latest_library">최근 업데이트 된 %1$s</string>
<string name="series_poster">시리즈 포스터</string>
<string name="search">검색</string>
<string name="settings_category_language">언어</string>
Expand All @@ -83,7 +82,6 @@
<string name="no_favorites">즐겨찾기 없음</string>
<string name="no_search_results">검색 결과 없음</string>
<string name="next_up">다음</string>
<string name="continue_watching">이어서 보기</string>
<string name="settings_cache_size_message">설정한 용량의 저장공간 용량을 Jellyfin 서버의 이미지 캐시를 저장하는 데 사용합니다. 값이 클수록 느린 네트워크에서 큰 효과가 있습니다.</string>
<string name="player_gestures_vb_summary">화면 오른쪽을 위아래로 스와이프하여 볼륨을 변경하고 왼쪽을 스와이프하여 밝기 변경</string>
<string name="sort_by_options_2">등급</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">S%1$d:A%2$d - %3$s</string>
<string name="next_up">Volgende</string>
<string name="continue_watching">Doorgaan met kijken</string>
<string name="latest_library">Laatste %1$s</string>
<string name="series_poster">Series poster</string>
<string name="no_favorites">Jij hebt geen favoriten</string>
<string name="no_downloads">Jij hebt niks gedownload</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">Do obejrzenia</string>
<string name="continue_watching">Kontynuuj odtwarzanie</string>
<string name="latest_library">Najnowsze %1$s</string>
<string name="no_favorites">Nie masz ulubionych</string>
<string name="no_downloads">Nic nie pobrałeś</string>
<string name="search">Szukaj</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">T%1$d:E%2$d - %3$s</string>
<string name="next_up">A seguir</string>
<string name="continue_watching">Continuar assistindo</string>
<string name="series_poster">Poster da série</string>
<string name="no_favorites">Você não tem favoritos</string>
<string name="search">Buscar</string>
Expand Down Expand Up @@ -78,7 +77,6 @@
<string name="theme_light">Claro</string>
<string name="theme_dark">Escuro</string>
<string name="app_description">Aplicação Jellyfin nativa de terceiros</string>
<string name="latest_library">%1$s mais recentes</string>
<string name="jellyfin_banner">Banner Jellyfin</string>
<string name="download_roaming">Baixar quando estiver em roaming</string>
<string name="settings_cache_size_message">O aplicativo usará essa quantidade em MB do seu espaço em disco para armazenar imagens do servidor Jellyfin. Valores maiores podem ser benéficos em redes mais lentas.</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<string name="check_button_description">Marcar como visto ou não visto</string>
<string name="play_button_description">Reproduzir conteúdo</string>
<string name="libraries">Biblioteca</string>
<string name="latest_library">Última %1$s</string>
<string name="next_up">A seguir</string>
<string name="series_poster">Cartaz de Séries</string>
<string name="no_favorites">Não tem favoritos</string>
Expand Down Expand Up @@ -91,7 +90,6 @@
<string name="settings_category_servers">Servidores</string>
<string name="settings_category_download">Transferências</string>
<string name="episode_watched_indicator">Indicador de episódio visto</string>
<string name="continue_watching">Continuar a ver</string>
<string name="settings_category_language">Idioma</string>
<string name="player_gestures_vb_summary">Deslizar para cima e para baixo no lado direito do ecrã para alterar o volume e no lado esquerdo para alterar a luminosidade</string>
<string name="error_preparing_player_items">Erro na preparação de itens do reprodutor.</string>
Expand Down
1 change: 0 additions & 1 deletion core/src/main/res/values-ro/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<string name="trailer_button_description">Vizionează trailerul</string>
<string name="check_button_description">Marchează ca vizionat sau nevizionat</string>
<string name="next_up">Urmează</string>
<string name="continue_watching">Continuați vizionarea</string>
<string name="libraries">Biblioteci</string>
<string name="series_poster">Posterul serialului</string>
<string name="no_downloads">Nu aveți nimic descărcat</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">С%1$d:Э%2$d - %3$s</string>
<string name="next_up">Далее</string>
<string name="continue_watching">Продолжить просмотр</string>
<string name="series_poster">Постер сериала</string>
<string name="no_favorites">У вас нет избранного</string>
<string name="search">Поиск</string>
Expand Down Expand Up @@ -109,7 +108,6 @@
<string name="dynamic_colors">Динамические цвета</string>
<string name="dynamic_colors_summary">Использовать динамические цвета Material You (доступно только на Android 12+)</string>
<string name="libraries">Медиатеки</string>
<string name="latest_library">Последние %1$s</string>
<string name="settings_request_timeout">Время ожидания запроса (мс)</string>
<string name="settings_connect_timeout">Время ожидания соединения (мс)</string>
<string name="settings_socket_timeout">Время ожидания сокета (мс)</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-sk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">Nasledujúce</string>
<string name="continue_watching">Pokračovať v pozeraní</string>
<string name="latest_library">Najnovšie %1$s</string>
<string name="libraries">Knižnice</string>
<string name="series_poster">Plagát seriálu</string>
<string name="no_favorites">Nemáte žiadne obľúbené položky</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-sl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
<string name="trailer_button_description">Poglej napovednik</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">Naslednjo</string>
<string name="continue_watching">Nadaljujte z gledanjem</string>
<string name="latest_library">Najnovejši %1$s</string>
<string name="libraries">Knjižnice</string>
<string name="no_favorites">Nimate priljubljenih</string>
<string name="no_downloads">Ničesar niste prenesli</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-sv/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
<string name="play_button_description">Spela upp media</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">Nästa</string>
<string name="continue_watching">Fortsätt titta</string>
<string name="latest_library">Senaste %1$s</string>
<string name="libraries">Bibliotek</string>
<string name="series_poster">Serieaffisch</string>
<string name="no_downloads">Du har inget nedladdat</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-tr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<string name="retry">Yeniden dene</string>
<string name="play_button_description">Medyayı oynat</string>
<string name="next_up">Sıradaki</string>
<string name="continue_watching">İzlemeye Devam Et</string>
<string name="settings_category_language">Dil</string>
<string name="app_language">Uygulama dili</string>
<string name="settings_preferred_audio_language">Tercih edilen ses dili</string>
Expand All @@ -40,7 +39,6 @@
<string name="subtitles">Altyazılar</string>
<string name="add">Ekle</string>
<string name="settings_preferred_subtitle_language">Tercih edilen altyazı dili</string>
<string name="latest_library">En son %1$s</string>
<string name="settings_category_player">Oynatıcı</string>
<string name="settings_category_appearance">Görünüş</string>
<string name="device_name">Cihaz adı</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-uk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
<string name="episode_name_extended">С%1$d:Е%2$d - %3$s</string>
<string name="episode_name_extended_with_end">С%1$d:Е%2$d-%3$d - %4$s</string>
<string name="next_up">Наступний</string>
<string name="continue_watching">Продовжити перегляд</string>
<string name="latest_library">Останні %1$s</string>
<string name="libraries">Бібліотеки</string>
<string name="series_poster">Постер серіалу</string>
<string name="no_favorites">У тебе немає обраних</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-vi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">Tiếp theo</string>
<string name="continue_watching">Tiếp tục theo dõi</string>
<string name="latest_library">%1$s mới nhất</string>
<string name="libraries">Thư viện</string>
<string name="no_favorites">Bạn chưa có gì trong mục ưa thích cả</string>
<string name="no_downloads">Bạn chưa tải gì về cả</string>
Expand Down
2 changes: 0 additions & 2 deletions core/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<string name="episode_name">%1$d. %2$s</string>
<string name="episode_name_extended">S%1$d:E%2$d - %3$s</string>
<string name="next_up">接下来</string>
<string name="continue_watching">继续观看</string>
<string name="series_poster">节目海报</string>
<string name="no_downloads">你没有下载过任何东西</string>
<string name="search">搜索</string>
Expand Down Expand Up @@ -78,7 +77,6 @@
<string name="mpv_player_summary">使用实验性的mpv播放器播放视频。mpv支持更多视频、音频和字幕格式。</string>
<string name="track_selection">[%1$s] %2$s (%3$s)</string>
<string name="app_description">第三方原生Jellyfin app</string>
<string name="latest_library">最新%1$s</string>
<string name="player_gestures_vb_summary">在屏幕右侧上下划动来调整音量,在屏幕左侧上下划动来调整亮度</string>
<string name="no_favorites">你没有收藏过任何东西</string>
<string name="ascending">升序</string>
Expand Down
Loading

0 comments on commit e76f53a

Please sign in to comment.