From c17e80a080b47e69d4d3c15ab7315cd363260117 Mon Sep 17 00:00:00 2001 From: NBA2K1 <78034913+NBA2K1@users.noreply.github.com> Date: Mon, 16 Dec 2024 20:17:26 +0100 Subject: [PATCH] Adjusted filters and settings to Anime + added translations. --- lib/l10n/app_ar.arb | 15 +++++++++++++- lib/l10n/app_de.arb | 17 ++++++++++++++-- lib/l10n/app_en.arb | 13 ++++++++++++ lib/l10n/app_es.arb | 15 +++++++++++++- lib/l10n/app_es_419.arb | 15 +++++++++++++- lib/l10n/app_fr.arb | 15 +++++++++++++- lib/l10n/app_id.arb | 15 +++++++++++++- lib/l10n/app_it.arb | 15 +++++++++++++- lib/l10n/app_pt.arb | 15 +++++++++++++- lib/l10n/app_pt_BR.arb | 15 +++++++++++++- lib/l10n/app_ru.arb | 15 +++++++++++++- lib/l10n/app_th.arb | 15 +++++++++++++- lib/l10n/app_tr.arb | 15 +++++++++++++- lib/l10n/app_zh.arb | 15 +++++++++++++- lib/modules/library/library_screen.dart | 16 +++++++-------- .../manga/detail/manga_detail_view.dart | 20 ++++++++++--------- .../manga/detail/manga_details_view.dart | 1 + 17 files changed, 216 insertions(+), 31 deletions(-) diff --git a/lib/l10n/app_ar.arb b/lib/l10n/app_ar.arb index a283de4..166a607 100644 --- a/lib/l10n/app_ar.arb +++ b/lib/l10n/app_ar.arb @@ -333,5 +333,18 @@ "or": "أو", "advanced": "متقدم", "use_native_http_client": "استخدام عميل HTTP الأصلي", - "use_native_http_client_info": "يدعم تلقائيًا ميزات المنصة مثل الشبكات الافتراضية الخاصة (VPNs)، ويدعم ميزات HTTP أكثر مثل HTTP/3 ومعالجة إعادة التوجيه المخصصة" + "use_native_http_client_info": "يدعم تلقائيًا ميزات المنصة مثل الشبكات الافتراضية الخاصة (VPNs)، ويدعم ميزات HTTP أكثر مثل HTTP/3 ومعالجة إعادة التوجيه المخصصة", + "unwatched": "لم يشاهد", + "last_watched": "آخر مشاهدة", + "unwatched_count": "عدد غير المشاهد", + "latest_episode": "الحلقة الأخيرة", + "downloaded_episodes": "الحلقات المحملة", + "show_continue_watching_buttons": "إظهار أزرار المتابعة", + "by_episode_number": "حسب رقم الحلقة", + "episode_number": "رقم الحلقة", + "total_episodes": "إجمالي الحلقات", + "next_episode": "الحلقة التالية", + "next_5_episodes": "الحلقات الخمس التالية", + "next_10_episodes": "العشر حلقات التالية", + "next_25_episodes": "الخمسة وعشرون حلقة التالية" } \ No newline at end of file diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 481d147..fdee110 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -10,14 +10,18 @@ "filter": "Filter", "downloaded": "Heruntergeladen", "unread": "Ungelesen", + "unwatched": "Nicht angeschaut", "started": "Begonnen", "bookmarked": "Markiert", "sort": "Sortieren", "alphabetically": "Alphabetisch", "last_read": "Zuletzt gelesen", + "last_watched": "Zuletzt angeschaut", "last_update_check": "Letzte Aktualisierungsprüfung", - "unread_count": "Anzahl Ungelesenes", + "unread_count": "Ungelesene Anzahl", + "unwatched_count": "Ungesehene Anzahl", "latest_chapter": "Letztes Kapitel", + "latest_episode": "Letzte Episode", "date_added": "Hinzugefügt am", "display": "Anzeige", "display_mode": "Anzeigemodus", @@ -27,13 +31,15 @@ "list": "Liste", "badges": "Abzeichen", "downloaded_chapters": "Heruntergeladene Kapitel", + "downloaded_episodes": "Heruntergeladene Episoden", "language": "Sprache", "local_source": "Lokale Quelle", "tabs": "Tabs", "show_category_tabs": "Kategorietabs anzeigen", "show_numbers_of_items": "Artikelanzahl anzeigen", "other": "Andere", - "show_continue_reading_buttons": "Weiterlesen-Schaltflächen anzeigen", + "show_continue_reading_buttons": "Weiterlesen-Buttons anzeigen", + "show_continue_watching_buttons": "Weiterschauen-Buttons anzeigen", "empty_library": "Leere Bibliothek", "search": "Suche...", "no_recent_updates": "Keine kürzlichen Aktualisierungen", @@ -132,9 +138,11 @@ "reset": "Zurücksetzen", "by_source": "Nach Quelle", "by_chapter_number": "Nach Kapitelnummer", + "by_episode_number": "Nach Episodennummer", "by_upload_date": "Nach Upload-Datum", "source_title": "Quellentitel", "chapter_number": "Kapitelnummer", + "episode_number": "Episodennummer", "share": "Teilen", "n_chapters": "{number} Kapitel", "no_description": "Keine Beschreibung", @@ -164,6 +172,7 @@ "delete_chapters": "Kapitel löschen?", "default0": "Standard", "total_chapters": "Gesamtkapitel", + "total_episodes": "Gesamtepisoden", "import_local_file": "Lokale Datei importieren", "import_files": "Dateien", "nothing_read_recently": "Kürzlich nichts gelesen", @@ -319,6 +328,10 @@ "next_5_chapters": "Nächsten 5 Kapitel", "next_10_chapters": "Nächsten 10 Kapitel", "next_25_chapters": "Nächsten 25 Kapitel", + "next_episode": "Nächste Episode", + "next_5_episodes": "Nächsten 5 Episoden", + "next_10_episodes": "Nächsten 10 Episoden", + "next_25_episodes": "Nächsten 25 Episoden", "cover_saved": "Titelbild gespeichert", "set_as_cover": "Als Titelbild festlegen", "use_this_as_cover_art": "Dies als Titelbild verwenden?", diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 96de63b..17633e0 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -10,14 +10,18 @@ "filter": "Filter", "downloaded": "Downloaded", "unread": "Unread", + "unwatched": "Unwatched", "started": "Started", "bookmarked": "Bookmarked", "sort": "Sort", "alphabetically": "Alphabetically", "last_read": "Last read", + "last_watched": "Last watched", "last_update_check": "Last update check", "unread_count": "Unread count", + "unwatched_count": "Unwatched count", "latest_chapter": "Latest chapter", + "latest_episode": "Latest episode", "date_added": "Date added", "display": "Display", "display_mode": "Display mode", @@ -27,6 +31,7 @@ "list": "List", "badges": "Badges", "downloaded_chapters": "Downloaded chapters", + "downloaded_episodes": "Downloaded episodes", "language": "Language", "local_source": "Local source", "tabs": "Tabs", @@ -34,6 +39,7 @@ "show_numbers_of_items": "Show numbers of items", "other": "Other", "show_continue_reading_buttons": "Show continue reading buttons", + "show_continue_watching_buttons": "Show continue watching buttons", "empty_library": "Empty library", "search": "Search...", "no_recent_updates": "No recent updates", @@ -132,9 +138,11 @@ "reset": "Reset", "by_source": "By source", "by_chapter_number": "By chapter number", + "by_episode_number": "By episode number", "by_upload_date": "By upload date", "source_title": "Source title", "chapter_number": "Chapter number", + "episode_number": "Episode number", "share": "Share", "n_chapters": "{number} chapters", "no_description": "No description", @@ -164,6 +172,7 @@ "delete_chapters": "Delete Chapter?", "default0": "Default", "total_chapters": "Total Chapters", + "total_episodes": "Total episodes", "import_local_file": "Import Local file", "import_files": "Files", "nothing_read_recently": "Nothing read recently", @@ -319,6 +328,10 @@ "next_5_chapters": "Next 5 chapters", "next_10_chapters": "Next 10 chapters", "next_25_chapters": "Next 25 chapters", + "next_episode": "Next episode", + "next_5_episodes": "Next 5 episodes", + "next_10_episodes": "Next 10 episodes", + "next_25_episodes": "Next 25 episodes", "cover_saved": "Cover saved", "set_as_cover": "Set as cover", "use_this_as_cover_art": "Use this as cover art?", diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index 7b9a499..8cd2408 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -333,5 +333,18 @@ "or": "O", "advanced": "Avanzado", "use_native_http_client": "Utilizar cliente HTTP nativo", - "use_native_http_client_info": "admite automáticamente las características de la plataforma como VPNs, admite más características HTTP como HTTP/3 y manejo de redirección personalizada" + "use_native_http_client_info": "admite automáticamente las características de la plataforma como VPNs, admite más características HTTP como HTTP/3 y manejo de redirección personalizada", + "unwatched": "No visto", + "last_watched": "Visto por última vez", + "unwatched_count": "Número no visto", + "latest_episode": "Último episodio", + "downloaded_episodes": "Episodios descargados", + "show_continue_watching_buttons": "Mostrar botones de continuar viendo", + "by_episode_number": "Por número de episodio", + "episode_number": "Número de episodio", + "total_episodes": "Total de episodios", + "next_episode": "Siguiente episodio", + "next_5_episodes": "Siguientes 5 episodios", + "next_10_episodes": "Siguientes 10 episodios", + "next_25_episodes": "Siguientes 25 episodios" } \ No newline at end of file diff --git a/lib/l10n/app_es_419.arb b/lib/l10n/app_es_419.arb index 3e9c5c0..f70e360 100644 --- a/lib/l10n/app_es_419.arb +++ b/lib/l10n/app_es_419.arb @@ -333,5 +333,18 @@ "or": "O", "advanced": "Avanzado", "use_native_http_client": "Usar cliente HTTP nativo", - "use_native_http_client_info": "soporta automáticamente características de la plataforma como VPNs, soporta más características HTTP como HTTP/3 y manejo de redirección personalizado" + "use_native_http_client_info": "soporta automáticamente características de la plataforma como VPNs, soporta más características HTTP como HTTP/3 y manejo de redirección personalizado", + "unwatched": "No visto", + "last_watched": "Visto por última vez", + "unwatched_count": "Número no visto", + "latest_episode": "Último episodio", + "downloaded_episodes": "Episodios descargados", + "show_continue_watching_buttons": "Mostrar botones de continuar viendo", + "by_episode_number": "Por número de episodio", + "episode_number": "Número de episodio", + "total_episodes": "Total de episodios", + "next_episode": "Siguiente episodio", + "next_5_episodes": "Siguientes 5 episodios", + "next_10_episodes": "Siguientes 10 episodios", + "next_25_episodes": "Siguientes 25 episodios" } \ No newline at end of file diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 57b15d8..67cfe30 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -334,5 +334,18 @@ "or": "OU", "advanced": "Avancé", "use_native_http_client": "Utiliser le client HTTP natif", - "use_native_http_client_info": "Il supporte automatiquement les fonctionnalités de la plateforme telles que les VPN, et prend en charge plus de fonctionnalités HTTP telles que HTTP/3 et la gestion personnalisée des redirections." + "use_native_http_client_info": "Il supporte automatiquement les fonctionnalités de la plateforme telles que les VPN, et prend en charge plus de fonctionnalités HTTP telles que HTTP/3 et la gestion personnalisée des redirections.", + "unwatched": "Non regardé", + "last_watched": "Dernièrement regardé", + "unwatched_count": "Nombre non vu", + "latest_episode": "Dernier épisode", + "downloaded_episodes": "Épisodes téléchargés", + "show_continue_watching_buttons": "Afficher les boutons de reprise", + "by_episode_number": "Par numéro d'épisode", + "episode_number": "Numéro d'épisode", + "total_episodes": "Total des épisodes", + "next_episode": "Épisode suivant", + "next_5_episodes": "5 épisodes suivants", + "next_10_episodes": "10 épisodes suivants", + "next_25_episodes": "25 épisodes suivants" } \ No newline at end of file diff --git a/lib/l10n/app_id.arb b/lib/l10n/app_id.arb index 8e32c05..08108e2 100644 --- a/lib/l10n/app_id.arb +++ b/lib/l10n/app_id.arb @@ -333,5 +333,18 @@ "or": "ATAU", "advanced": "Lanjutan", "use_native_http_client": "Gunakan klien http asli", - "use_native_http_client_info": "secara otomatis mendukung fitur platform seperti VPN, mendukung lebih banyak fitur HTTP seperti HTTP/3 dan penanganan pengalihan khusus" + "use_native_http_client_info": "secara otomatis mendukung fitur platform seperti VPN, mendukung lebih banyak fitur HTTP seperti HTTP/3 dan penanganan pengalihan khusus", + "unwatched": "Belum ditonton", + "last_watched": "Terakhir ditonton", + "unwatched_count": "Jumlah belum ditonton", + "latest_episode": "Episode terbaru", + "downloaded_episodes": "Episode yang diunduh", + "show_continue_watching_buttons": "Tampilkan tombol lanjut menonton", + "by_episode_number": "Menurut nomor episode", + "episode_number": "Nomor episode", + "total_episodes": "Total episode", + "next_episode": "Episode berikutnya", + "next_5_episodes": "5 episode berikutnya", + "next_10_episodes": "10 episode berikutnya", + "next_25_episodes": "25 episode berikutnya" } \ No newline at end of file diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index 317e6be..b58634e 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -333,5 +333,18 @@ "or": "O", "advanced": "Avanzate", "use_native_http_client": "Usa il client HTTP nativo", - "use_native_http_client_info": "Supporta automaticamente le funzionalità della piattaforma come le VPN, supporta più funzionalità HTTP come HTTP/3 e la gestione dei reindirizzamenti personalizzati." + "use_native_http_client_info": "Supporta automaticamente le funzionalità della piattaforma come le VPN, supporta più funzionalità HTTP come HTTP/3 e la gestione dei reindirizzamenti personalizzati.", + "unwatched": "Non guardato", + "last_watched": "Ultima visione", + "unwatched_count": "Conteggio non guardati", + "latest_episode": "Ultimo episodio", + "downloaded_episodes": "Episodi scaricati", + "show_continue_watching_buttons": "Mostra pulsanti continua a guardare", + "by_episode_number": "Per numero di episodio", + "episode_number": "Numero dell'episodio", + "total_episodes": "Episodi totali", + "next_episode": "Prossimo episodio", + "next_5_episodes": "Prossimi 5 episodi", + "next_10_episodes": "Prossimi 10 episodi", + "next_25_episodes": "Prossimi 25 episodi" } \ No newline at end of file diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index 711ddbf..0064fa3 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -333,5 +333,18 @@ "or": "OU", "advanced": "Avançado", "use_native_http_client": "Usar cliente HTTP nativo", - "use_native_http_client_info": "ele suporta automaticamente recursos da plataforma, como VPNs, suporta mais recursos HTTP, como HTTP/3 e manuseio de redirecionamentos personalizados" + "use_native_http_client_info": "ele suporta automaticamente recursos da plataforma, como VPNs, suporta mais recursos HTTP, como HTTP/3 e manuseio de redirecionamentos personalizados", + "unwatched": "Não assistido", + "last_watched": "Último assistido", + "unwatched_count": "Contagem não assistidos", + "latest_episode": "Último episódio", + "downloaded_episodes": "Episódios baixados", + "show_continue_watching_buttons": "Mostrar botões para continuar assistindo", + "by_episode_number": "Por número do episódio", + "episode_number": "Número do episódio", + "total_episodes": "Total de episódios", + "next_episode": "Próximo episódio", + "next_5_episodes": "Próximos 5 episódios", + "next_10_episodes": "Próximos 10 episódios", + "next_25_episodes": "Próximos 25 episódios" } \ No newline at end of file diff --git a/lib/l10n/app_pt_BR.arb b/lib/l10n/app_pt_BR.arb index 1be5890..3989c39 100644 --- a/lib/l10n/app_pt_BR.arb +++ b/lib/l10n/app_pt_BR.arb @@ -333,5 +333,18 @@ "or": "OU", "advanced": "Avançado", "use_native_http_client": "Usar cliente HTTP nativo", - "use_native_http_client_info": "ele suporta automaticamente recursos da plataforma como VPNs, suporta mais recursos HTTP, como HTTP/3 e manuseio personalizado de redirecionamento" + "use_native_http_client_info": "ele suporta automaticamente recursos da plataforma como VPNs, suporta mais recursos HTTP, como HTTP/3 e manuseio personalizado de redirecionamento", + "unwatched": "Não assistido", + "last_watched": "Último assistido", + "unwatched_count": "Contagem não assistidos", + "latest_episode": "Último episódio", + "downloaded_episodes": "Episódios baixados", + "show_continue_watching_buttons": "Mostrar botões para continuar assistindo", + "by_episode_number": "Por número do episódio", + "episode_number": "Número do episódio", + "total_episodes": "Total de episódios", + "next_episode": "Próximo episódio", + "next_5_episodes": "Próximos 5 episódios", + "next_10_episodes": "Próximos 10 episódios", + "next_25_episodes": "Próximos 25 episódios" } \ No newline at end of file diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index 54e6e5e..3a7a16b 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -333,5 +333,18 @@ "or": "ИЛИ", "advanced": "Продвинутые", "use_native_http_client": "Использовать нативный HTTP-клиент", - "use_native_http_client_info": "он автоматически поддерживает функции платформы, такие как VPN, поддерживает больше функций HTTP, таких как HTTP/3 и пользовательская обработка перенаправлений" + "use_native_http_client_info": "он автоматически поддерживает функции платформы, такие как VPN, поддерживает больше функций HTTP, таких как HTTP/3 и пользовательская обработка перенаправлений", + "unwatched": "Непросмотренный", + "last_watched": "Последний просмотр", + "unwatched_count": "Количество непросмотренных", + "latest_episode": "Последний эпизод", + "downloaded_episodes": "Загруженные эпизоды", + "show_continue_watching_buttons": "Показать кнопки продолжения просмотра", + "by_episode_number": "По номеру эпизода", + "episode_number": "Номер эпизода", + "total_episodes": "Общее количество эпизодов", + "next_episode": "Следующий эпизод", + "next_5_episodes": "Следующие 5 эпизодов", + "next_10_episodes": "Следующие 10 эпизодов", + "next_25_episodes": "Следующие 25 эпизодов" } \ No newline at end of file diff --git a/lib/l10n/app_th.arb b/lib/l10n/app_th.arb index 00b1c34..41b9389 100644 --- a/lib/l10n/app_th.arb +++ b/lib/l10n/app_th.arb @@ -335,5 +335,18 @@ "or": "หรือ", "advanced": "ขั้นสูง", "use_native_http_client": "ใช้ไคลเอนต์ HTTP พื้นเมือง", - "use_native_http_client_info": "รองรับฟีเจอร์ของแพลตฟอร์มโดยอัตโนมัติ เช่น VPNs รองรับฟีเจอร์ HTTP มากขึ้น เช่น HTTP/3 และการจัดการการเปลี่ยนเส้นทางที่กำหนดเอง" + "use_native_http_client_info": "รองรับฟีเจอร์ของแพลตฟอร์มโดยอัตโนมัติ เช่น VPNs รองรับฟีเจอร์ HTTP มากขึ้น เช่น HTTP/3 และการจัดการการเปลี่ยนเส้นทางที่กำหนดเอง", + "unwatched": "ยังไม่ได้ดู", + "last_watched": "ดูครั้งสุดท้าย", + "unwatched_count": "จำนวนที่ยังไม่ได้ดู", + "latest_episode": "ตอนล่าสุด", + "downloaded_episodes": "ตอนที่ดาวน์โหลด", + "show_continue_watching_buttons": "แสดงปุ่มดูต่อไป", + "by_episode_number": "ตามหมายเลขตอน", + "episode_number": "หมายเลขตอน", + "total_episodes": "รวมตอน", + "next_episode": "ตอนถัดไป", + "next_5_episodes": "5 ตอนถัดไป", + "next_10_episodes": "10 ตอนถัดไป", + "next_25_episodes": "25 ตอนถัดไป" } \ No newline at end of file diff --git a/lib/l10n/app_tr.arb b/lib/l10n/app_tr.arb index b552aa3..50ada0c 100644 --- a/lib/l10n/app_tr.arb +++ b/lib/l10n/app_tr.arb @@ -333,5 +333,18 @@ "or": "VEYA", "advanced": "Gelişmiş", "use_native_http_client": "Yerel http istemcisini kullan", - "use_native_http_client_info": "otomatik olarak VPN'ler gibi platform özelliklerini destekler, HTTP/3 gibi daha fazla HTTP özelliğini ve özel yönlendirme işlemlerini destekler" + "use_native_http_client_info": "otomatik olarak VPN'ler gibi platform özelliklerini destekler, HTTP/3 gibi daha fazla HTTP özelliğini ve özel yönlendirme işlemlerini destekler", + "unwatched": "İzlenmemiş", + "last_watched": "Son İzlenen", + "unwatched_count": "İzlenmemiş Sayısı", + "latest_episode": "Son Bölüm", + "downloaded_episodes": "İndirilen Bölümler", + "show_continue_watching_buttons": "İzlemeye Devam Et Düğmelerini Göster", + "by_episode_number": "Bölüm Sayısına Göre", + "episode_number": "Bölüm Sayısı", + "total_episodes": "Toplam Bölümler", + "next_episode": "Sonraki Bölüm", + "next_5_episodes": "Sonraki 5 Bölüm", + "next_10_episodes": "Sonraki 10 Bölüm", + "next_25_episodes": "Sonraki 25 Bölüm" } \ No newline at end of file diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index 0b2c4bc..371623d 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -335,5 +335,18 @@ "or": "或", "advanced": "高级", "use_native_http_client": "使用本地 HTTP 客户端", - "use_native_http_client_info": "它自动支持平台特性,如 VPN,支持更多 HTTP 特性,如 HTTP/3 和自定义重定向处理" + "use_native_http_client_info": "它自动支持平台特性,如 VPN,支持更多 HTTP 特性,如 HTTP/3 和自定义重定向处理", + "unwatched": "未观看", + "last_watched": "上次观看", + "unwatched_count": "未观看计数", + "latest_episode": "最新一集", + "downloaded_episodes": "下载的剧集", + "show_continue_watching_buttons": "显示继续观看按钮", + "by_episode_number": "按集数", + "episode_number": "集数", + "total_episodes": "总集数", + "next_episode": "下一集", + "next_5_episodes": "接下来的 5 集", + "next_10_episodes": "接下来的 10 集", + "next_25_episodes": "接下来的 25 集" } \ No newline at end of file diff --git a/lib/modules/library/library_screen.dart b/lib/modules/library/library_screen.dart index 561ac8e..e933d9d 100644 --- a/lib/modules/library/library_screen.dart +++ b/lib/modules/library/library_screen.dart @@ -1115,7 +1115,7 @@ class _LibraryScreenState extends ConsumerState type: fromLibList.isNotEmpty ? 1 : 0, ), ListTileChapterFilter( - label: l10n.downloaded_chapters, + label: widget.isManga ? l10n.downloaded_chapters : l10n.downloaded_episodes, onTap: () { setState(() { if (downloadedChapsList == mangaIdsList) { @@ -1283,7 +1283,7 @@ class _LibraryScreenState extends ConsumerState .update(); }), ListTileChapterFilter( - label: l10n.unread, + label: widget.isManga ? l10n.unread : l10n.unwatched, type: ref.watch(mangaFilterUnreadStateProvider( isManga: widget.isManga, mangaList: _entries, @@ -1516,7 +1516,7 @@ class _LibraryScreenState extends ConsumerState child: Column( children: [ ListTileChapterFilter( - label: l10n.downloaded_chapters, + label: widget.isManga ? l10n.downloaded_chapters : l10n.downloaded_episodes, type: downloadedChapter ? 1 : 0, onTap: () { ref @@ -1549,7 +1549,7 @@ class _LibraryScreenState extends ConsumerState .set(!localSource); }), ListTileChapterFilter( - label: l10n.show_continue_reading_buttons, + label: widget.isManga ? l10n.show_continue_reading_buttons : l10n.show_continue_watching_buttons, type: continueReaderBtn ? 1 : 0, onTap: () { ref @@ -1610,15 +1610,15 @@ class _LibraryScreenState extends ConsumerState if (index == 0) { return l10n.alphabetically; } else if (index == 1) { - return l10n.last_read; + return widget.isManga ? l10n.last_read : l10n.last_watched; } else if (index == 2) { return l10n.last_update_check; } else if (index == 3) { - return l10n.unread_count; + return widget.isManga ? l10n.unread_count : l10n.unwatched_count; } else if (index == 4) { - return l10n.total_chapters; + return widget.isManga ? l10n.total_chapters : l10n.total_episodes; } else if (index == 5) { - return l10n.latest_chapter; + return widget.isManga ? l10n.latest_chapter : l10n.latest_episode; } return l10n.date_added; } diff --git a/lib/modules/manga/detail/manga_detail_view.dart b/lib/modules/manga/detail/manga_detail_view.dart index 679c4f5..346b6bc 100644 --- a/lib/modules/manga/detail/manga_detail_view.dart +++ b/lib/modules/manga/detail/manga_detail_view.dart @@ -59,6 +59,7 @@ class MangaDetailView extends ConsumerStatefulWidget { final Manga? manga; final bool sourceExist; final Function(bool) checkForUpdate; + final bool isManga; const MangaDetailView( {super.key, @@ -68,7 +69,8 @@ class MangaDetailView extends ConsumerStatefulWidget { this.action, required this.sourceExist, required this.manga, - required this.checkForUpdate}); + required this.checkForUpdate, + required this.isManga}); @override ConsumerState createState() => _MangaDetailViewState(); @@ -381,22 +383,22 @@ class _MangaDetailViewState extends ConsumerState PopupMenuItem( value: 0, child: Text( - context.l10n.next_chapter)), + widget.isManga ? context.l10n.next_chapter : context.l10n.next_episode)), PopupMenuItem( value: 1, child: Text( - context.l10n.next_5_chapters)), + widget.isManga ? context.l10n.next_5_chapters : context.l10n.next_5_episodes)), PopupMenuItem( value: 2, child: Text( - context.l10n.next_10_chapters)), + widget.isManga ? context.l10n.next_10_chapters : context.l10n.next_10_episodes)), PopupMenuItem( value: 3, child: Text( - context.l10n.next_25_chapters)), + widget.isManga ? context.l10n.next_25_chapters : context.l10n.next_25_episodes)), PopupMenuItem( value: 4, - child: Text(context.l10n.unread)), + child: Text(widget.isManga ? context.l10n.unread : context.l10n.unwatched)), ]; }, onSelected: (value) { @@ -987,7 +989,7 @@ class _MangaDetailViewState extends ConsumerState .update(); }), ListTileChapterFilter( - label: l10n.unread, + label: widget.isManga ? l10n.unread : l10n.unwatched, type: ref.watch(chapterFilterUnreadStateProvider( mangaId: widget.manga!.id!)), onTap: () { @@ -1184,7 +1186,7 @@ class _MangaDetailViewState extends ConsumerState ), RadioListTile( dense: true, - title: Text(l10n.chapter_number), + title: Text(widget.isManga ? l10n.chapter_number : l10n.episode_number), value: "ej", groupValue: "e", selected: false, @@ -1201,7 +1203,7 @@ class _MangaDetailViewState extends ConsumerState if (index == 0) { return l10n.by_scanlator; } else if (index == 1) { - return l10n.by_chapter_number; + return widget.isManga ? l10n.by_chapter_number : l10n.by_episode_number; } else if (index == 2) { return l10n.by_upload_date; } diff --git a/lib/modules/manga/detail/manga_details_view.dart b/lib/modules/manga/detail/manga_details_view.dart index dac9fa3..7204ff6 100644 --- a/lib/modules/manga/detail/manga_details_view.dart +++ b/lib/modules/manga/detail/manga_details_view.dart @@ -246,6 +246,7 @@ class _MangaDetailsViewState extends ConsumerState { }, sourceExist: widget.sourceExist, checkForUpdate: widget.checkForUpdate, + isManga: widget.manga.isManga!, ), ); }