From cfedcffc98c0d896679196482949e7d81b103481 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 28 Apr 2024 16:00:57 -0500 Subject: [PATCH] Add:No series filter option for book libraries #1184 --- components/modals/FilterModal.vue | 9 ++++++++- strings/cs.json | 1 + strings/da.json | 1 + strings/de.json | 1 + strings/en-us.json | 1 + strings/es.json | 1 + strings/fr.json | 3 ++- strings/gu.json | 1 + strings/hi.json | 1 + strings/hr.json | 1 + strings/hu.json | 1 + strings/it.json | 3 ++- strings/lt.json | 1 + strings/nl.json | 1 + strings/no.json | 1 + strings/pl.json | 1 + strings/pt-br.json | 3 ++- strings/ru.json | 1 + strings/sv.json | 1 + strings/uk.json | 1 + strings/vi-vn.json | 1 + strings/zh-cn.json | 3 ++- 22 files changed, 33 insertions(+), 5 deletions(-) diff --git a/components/modals/FilterModal.vue b/components/modals/FilterModal.vue index e104dd9c..d6403879 100644 --- a/components/modals/FilterModal.vue +++ b/components/modals/FilterModal.vue @@ -210,7 +210,7 @@ export default { ] }, sublistItems() { - return (this[this.sublist] || []).map((item) => { + const sublistItems = (this[this.sublist] || []).map((item) => { if (typeof item === 'string') { return { text: item, @@ -223,6 +223,13 @@ export default { } } }) + if (this.sublist === 'series') { + sublistItems.unshift({ + text: this.$strings.MessageNoSeries, + value: this.$encode('no-series') + }) + } + return sublistItems }, filterData() { return this.$store.state.libraries.filterData || {} diff --git a/strings/cs.json b/strings/cs.json index b4a769a2..bb0409a8 100644 --- a/strings/cs.json +++ b/strings/cs.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Žádné složky médií", "MessageNoNetworkConnection": "Žádné připojení k síti", "MessageNoPodcastsFound": "Nebyly nalezeny žádné podcasty", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Nebyly nutné žádné aktualizace", "MessageNoUserPlaylists": "Nemáte žádné seznamy skladeb", "MessageReportBugsAndContribute": "Nahlašte chyby, vyžádejte si funkce a přispěte na", diff --git a/strings/da.json b/strings/da.json index 28e33f7d..67375173 100644 --- a/strings/da.json +++ b/strings/da.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "Ingen podcasts fundet", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Ingen opdateringer var nødvendige", "MessageNoUserPlaylists": "Du har ingen afspilningslister", "MessageReportBugsAndContribute": "Rapporter fejl, anmod om funktioner og bidrag på", diff --git a/strings/de.json b/strings/de.json index f3377260..da2051bf 100644 --- a/strings/de.json +++ b/strings/de.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Keine Medien Ordner", "MessageNoNetworkConnection": "Keine Netzwerkverbindung", "MessageNoPodcastsFound": "Keine Podcasts gefunden", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Keine Aktualisierungen waren notwendig", "MessageNoUserPlaylists": "Keine Wiedergabelisten vorhanden", "MessageReportBugsAndContribute": "Fehler melden, Funktionen anfordern und mitwirken", diff --git a/strings/en-us.json b/strings/en-us.json index 2d78334a..c1de9cef 100644 --- a/strings/en-us.json +++ b/strings/en-us.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "No podcasts found", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "No updates were necessary", "MessageNoUserPlaylists": "You have no playlists", "MessageReportBugsAndContribute": "Report bugs, request features, and contribute on", diff --git a/strings/es.json b/strings/es.json index b119264c..bde9d8af 100644 --- a/strings/es.json +++ b/strings/es.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "Ningún podcast encontrado", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "No fue necesario actualizar", "MessageNoUserPlaylists": "No tienes lista de reproducciones", "MessageReportBugsAndContribute": "Reporte erres, solicite funciones y contribuya en", diff --git a/strings/fr.json b/strings/fr.json index a016e521..bb482daf 100644 --- a/strings/fr.json +++ b/strings/fr.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Aucun dossier multimédia", "MessageNoNetworkConnection": "Pas de connexion réseau", "MessageNoPodcastsFound": "Aucun podcast trouvé", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Aucune mise à jour n’était nécessaire", "MessageNoUserPlaylists": "Vous n’avez aucune liste de lecture", "MessageReportBugsAndContribute": "Remonter des anomalies, demander des fonctionnalités et contribuer sur", @@ -292,4 +293,4 @@ "ToastPodcastCreateSuccess": "Podcast créé", "ToastRSSFeedCloseFailed": "Échec de la fermeture du flux RSS", "ToastRSSFeedCloseSuccess": "Flux RSS fermé" -} +} \ No newline at end of file diff --git a/strings/gu.json b/strings/gu.json index 70ff221a..6119eb5f 100644 --- a/strings/gu.json +++ b/strings/gu.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "No podcasts found", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "No updates were necessary", "MessageNoUserPlaylists": "You have no playlists", "MessageReportBugsAndContribute": "Report bugs, request features, and contribute on", diff --git a/strings/hi.json b/strings/hi.json index 16a5a7ab..df8bbbf8 100644 --- a/strings/hi.json +++ b/strings/hi.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "No podcasts found", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "No updates were necessary", "MessageNoUserPlaylists": "You have no playlists", "MessageReportBugsAndContribute": "Report bugs, request features, and contribute on", diff --git a/strings/hr.json b/strings/hr.json index aee04b4b..3ab15eeb 100644 --- a/strings/hr.json +++ b/strings/hr.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "Nijedan podcast pronađen", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Aktualiziranje nije bilo potrebno", "MessageNoUserPlaylists": "You have no playlists", "MessageReportBugsAndContribute": "Prijavte bugove, zatržite featurese i doprinosite na", diff --git a/strings/hu.json b/strings/hu.json index f0f92686..fed4b98c 100644 --- a/strings/hu.json +++ b/strings/hu.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Nincsenek médiamappák", "MessageNoNetworkConnection": "Nincs hálózati kapcsolat", "MessageNoPodcastsFound": "Nem találhatók podcastok", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Nem volt szükséges frissítés", "MessageNoUserPlaylists": "Nincsenek lejátszási listái", "MessageReportBugsAndContribute": "Hibák jelentése, funkciók kérése és hozzájárulás a", diff --git a/strings/it.json b/strings/it.json index 6c90fe23..d05279dd 100644 --- a/strings/it.json +++ b/strings/it.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Nessuna Cartella Media", "MessageNoNetworkConnection": "Nessuna connessione di rete", "MessageNoPodcastsFound": "Nessun podcasts trovato", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Nessun aggiornamento necessario", "MessageNoUserPlaylists": "Non hai nessuna Playlist", "MessageReportBugsAndContribute": "Segnala bug, richiedi funzionalità e contribuisci", @@ -292,4 +293,4 @@ "ToastPodcastCreateSuccess": "Podcast creato Correttamente", "ToastRSSFeedCloseFailed": "Errore chiusura RSS feed", "ToastRSSFeedCloseSuccess": "RSS feed chiuso" -} +} \ No newline at end of file diff --git a/strings/lt.json b/strings/lt.json index 0a33ab99..3ab2f93a 100644 --- a/strings/lt.json +++ b/strings/lt.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "Tinklalaidžių nerasta", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Nereikalingi jokie atnaujinimai", "MessageNoUserPlaylists": "Neturite grojaraščių", "MessageReportBugsAndContribute": "Praneškite apie klaidas, prašykite naujovių ir prisidėkite", diff --git a/strings/nl.json b/strings/nl.json index e4587e60..ca4da257 100644 --- a/strings/nl.json +++ b/strings/nl.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "Geen podcasts gevonden", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Geen bijwerkingen waren noodzakelijk", "MessageNoUserPlaylists": "Je hebt geen afspeellijsten", "MessageReportBugsAndContribute": "Rapporteer bugs, vraag functionaliteiten aan en draag bij op", diff --git a/strings/no.json b/strings/no.json index 01e7e680..2a63eb7e 100644 --- a/strings/no.json +++ b/strings/no.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "Ingen podcaster funnet", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Ingen oppdatering var nødvendig", "MessageNoUserPlaylists": "Du har ingen spillelister", "MessageReportBugsAndContribute": "Rapporter feil, forespør funksjoner og tillegg og bidra på", diff --git a/strings/pl.json b/strings/pl.json index 1ad087b6..8acc54e4 100644 --- a/strings/pl.json +++ b/strings/pl.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Brak folderów z mediami", "MessageNoNetworkConnection": "Brak połączenia sieciowego", "MessageNoPodcastsFound": "Nie znaleziono podcastów", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Brak aktualizacji", "MessageNoUserPlaylists": "Nie posiadasz playlist", "MessageReportBugsAndContribute": "Zgłoś błędy, pomysły i pomóż rozwijać aplikację na", diff --git a/strings/pt-br.json b/strings/pt-br.json index afff30db..0b738b14 100644 --- a/strings/pt-br.json +++ b/strings/pt-br.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Sem Pastas de Mídia", "MessageNoNetworkConnection": "Nem conexão de rede", "MessageNoPodcastsFound": "Nenhum podcast encontrado", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Nenhuma atualização é necessária", "MessageNoUserPlaylists": "Você não tem listas de reprodução", "MessageReportBugsAndContribute": "Reporte bugs, peça funcionalidades e contribua em", @@ -292,4 +293,4 @@ "ToastPodcastCreateSuccess": "Podcast criado", "ToastRSSFeedCloseFailed": "Falha ao fechar feed RSS", "ToastRSSFeedCloseSuccess": "Feed RSS fechado" -} +} \ No newline at end of file diff --git a/strings/ru.json b/strings/ru.json index ca1f6bac..7344ae71 100644 --- a/strings/ru.json +++ b/strings/ru.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Нет папок мультимедиа", "MessageNoNetworkConnection": "Нет подключения к сети", "MessageNoPodcastsFound": "Подкасты не найдены", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Обновления не требовались", "MessageNoUserPlaylists": "У вас нет плейлистов", "MessageReportBugsAndContribute": "Сообщайте об ошибках, запрашивайте функции и вносите свой вклад на", diff --git a/strings/sv.json b/strings/sv.json index 2676d09c..3f5f3d9c 100644 --- a/strings/sv.json +++ b/strings/sv.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "No Media Folders", "MessageNoNetworkConnection": "No network connection", "MessageNoPodcastsFound": "Inga podcasts hittade", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Inga uppdateringar var nödvändiga", "MessageNoUserPlaylists": "Du har inga spellistor", "MessageReportBugsAndContribute": "Rapportera buggar, begär funktioner och bidra på", diff --git a/strings/uk.json b/strings/uk.json index b09129c9..35b08ca5 100644 --- a/strings/uk.json +++ b/strings/uk.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Теки медіа відсутні", "MessageNoNetworkConnection": "Немає підключення до мережі", "MessageNoPodcastsFound": "Подкастів не знайдено", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Оновлень не потрібно", "MessageNoUserPlaylists": "У вас немає списків відтворення", "MessageReportBugsAndContribute": "Повідомляйте про помилки, пропонуйте функції та долучайтеся на", diff --git a/strings/vi-vn.json b/strings/vi-vn.json index 48d16124..b1365523 100644 --- a/strings/vi-vn.json +++ b/strings/vi-vn.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "Không có Thư Mục Phương Tiện", "MessageNoNetworkConnection": "Không có kết nối mạng", "MessageNoPodcastsFound": "Không tìm thấy podcast", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "Không cần cập nhật nào", "MessageNoUserPlaylists": "Bạn không có danh sách phát nào", "MessageReportBugsAndContribute": "Báo cáo lỗi, yêu cầu tính năng và đóng góp tại", diff --git a/strings/zh-cn.json b/strings/zh-cn.json index 545b9289..229fae0a 100644 --- a/strings/zh-cn.json +++ b/strings/zh-cn.json @@ -272,6 +272,7 @@ "MessageNoMediaFolders": "没有媒体文件夹", "MessageNoNetworkConnection": "无网络连接", "MessageNoPodcastsFound": "未找到播客", + "MessageNoSeries": "No series", "MessageNoUpdatesWereNecessary": "无需更新", "MessageNoUserPlaylists": "你没有播放列表", "MessageReportBugsAndContribute": "报告错误, 请求功能和贡献在", @@ -292,4 +293,4 @@ "ToastPodcastCreateSuccess": "已成功创建播客", "ToastRSSFeedCloseFailed": "关闭 RSS 源失败", "ToastRSSFeedCloseSuccess": "RSS 源已关闭" -} +} \ No newline at end of file