From d7cc8a052aa4acb95e0a45e78537a755d580b26c Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 17 Dec 2022 17:47:35 -0600 Subject: [PATCH] New translation strings for collections/playlist #1166 --- client/pages/collection/_id.vue | 8 ++++---- client/strings/de.json | 5 ++++- client/strings/en-us.json | 3 +++ client/strings/es.json | 3 +++ client/strings/fr.json | 5 ++++- client/strings/hr.json | 3 +++ client/strings/it.json | 3 +++ client/strings/pl.json | 3 +++ client/strings/zh-cn.json | 3 +++ 9 files changed, 30 insertions(+), 6 deletions(-) diff --git a/client/pages/collection/_id.vue b/client/pages/collection/_id.vue index 0aa313ea..3d1a0ddc 100644 --- a/client/pages/collection/_id.vue +++ b/client/pages/collection/_id.vue @@ -108,13 +108,13 @@ export default { contextMenuItems() { const items = [ { - text: 'Create playlist from collection', + text: this.$strings.MessagePlaylistCreateFromCollection, action: 'create-playlist' } ] if (this.userCanDelete) { items.push({ - text: 'Delete collection', + text: this.$strings.ButtonDelete, action: 'delete' }) } @@ -135,13 +135,13 @@ export default { .$post(`/api/playlists/collection/${this.collectionId}`) .then((playlist) => { if (playlist) { - this.$toast.success('Playlist created') + this.$toast.success(this.$strings.ToastPlaylistCreateSuccess) this.$router.push(`/playlist/${playlist.id}`) } }) .catch((error) => { const errMsg = error.response ? error.response.data || '' : '' - this.$toast.error(errMsg || 'Failed to create playlist') + this.$toast.error(errMsg || this.$strings.ToastPlaylistCreateFailed) }) .finally(() => { this.processing = false diff --git a/client/strings/de.json b/client/strings/de.json index 7e78810f..a6ac2146 100644 --- a/client/strings/de.json +++ b/client/strings/de.json @@ -492,6 +492,7 @@ "MessageOr": "oder", "MessagePauseChapter": "Kapitelwiedergabe pausieren", "MessagePlayChapter": "Kapitelanfang anhören", + "MessagePlaylistCreateFromCollection": "Create playlist from collection", "MessagePodcastHasNoRSSFeedForMatching": "Podcast hat keine RSS-Feed-Url welche für den Online-Abgleich verwendet werden kann", "MessageQuickMatchDescription": "Füllt leere Details und Titelbilder mit dem ersten Treffer aus '{0}'. Überschreibt keine Details, es sei denn, die Server-Einstellung \"Passende Metadaten bevorzugen\" ist aktiviert.", "MessageRemoveAllItemsWarning": "WARNUNG! Bei dieser Aktion werden alle Bibliotheksobjekte aus der Datenbank entfernt, einschließlich aller Aktualisierungen oder Online-Abgleichs, die Sie vorgenommen haben. Ihre eigentlichen Dateien bleiben davon unberührt. Sind Sie sicher?", @@ -577,6 +578,8 @@ "ToastLibraryScanStarted": "Bibliotheksscan gestartet", "ToastLibraryUpdateFailed": "Aktualisierung der Bibliothek fehlgeschlagen", "ToastLibraryUpdateSuccess": "Bibliothek \"{0}\" aktualisiert", + "ToastPlaylistCreateFailed": "Failed to create playlist", + "ToastPlaylistCreateSuccess": "Playlist created", "ToastPlaylistRemoveFailed": "Failed to remove playlist", "ToastPlaylistRemoveSuccess": "Playlist removed", "ToastPlaylistUpdateFailed": "Failed to update playlist", @@ -601,4 +604,4 @@ "WeekdayThursday": "Donnerstag", "WeekdayTuesday": "Dienstag", "WeekdayWednesday": "Mittwoch" -} +} \ No newline at end of file diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 0fa9c393..d48ca18f 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -492,6 +492,7 @@ "MessageOr": "or", "MessagePauseChapter": "Pause chapter playback", "MessagePlayChapter": "Listen to beginning of chapter", + "MessagePlaylistCreateFromCollection": "Create playlist from collection", "MessagePodcastHasNoRSSFeedForMatching": "Podcast has no RSS feed url to use for matching", "MessageQuickMatchDescription": "Populate empty item details & cover with first match result from '{0}'. Does not overwrite details unless 'Prefer matched metadata' server setting is enabled.", "MessageRemoveAllItemsWarning": "WARNING! This action will remove all library items from the database including any updates or matches you have made. This does not do anything to your actual files. Are you sure?", @@ -577,6 +578,8 @@ "ToastLibraryScanStarted": "Library scan started", "ToastLibraryUpdateFailed": "Failed to update library", "ToastLibraryUpdateSuccess": "Library \"{0}\" updated", + "ToastPlaylistCreateFailed": "Failed to create playlist", + "ToastPlaylistCreateSuccess": "Playlist created", "ToastPlaylistRemoveFailed": "Failed to remove playlist", "ToastPlaylistRemoveSuccess": "Playlist removed", "ToastPlaylistUpdateFailed": "Failed to update playlist", diff --git a/client/strings/es.json b/client/strings/es.json index 0fa9c393..d48ca18f 100644 --- a/client/strings/es.json +++ b/client/strings/es.json @@ -492,6 +492,7 @@ "MessageOr": "or", "MessagePauseChapter": "Pause chapter playback", "MessagePlayChapter": "Listen to beginning of chapter", + "MessagePlaylistCreateFromCollection": "Create playlist from collection", "MessagePodcastHasNoRSSFeedForMatching": "Podcast has no RSS feed url to use for matching", "MessageQuickMatchDescription": "Populate empty item details & cover with first match result from '{0}'. Does not overwrite details unless 'Prefer matched metadata' server setting is enabled.", "MessageRemoveAllItemsWarning": "WARNING! This action will remove all library items from the database including any updates or matches you have made. This does not do anything to your actual files. Are you sure?", @@ -577,6 +578,8 @@ "ToastLibraryScanStarted": "Library scan started", "ToastLibraryUpdateFailed": "Failed to update library", "ToastLibraryUpdateSuccess": "Library \"{0}\" updated", + "ToastPlaylistCreateFailed": "Failed to create playlist", + "ToastPlaylistCreateSuccess": "Playlist created", "ToastPlaylistRemoveFailed": "Failed to remove playlist", "ToastPlaylistRemoveSuccess": "Playlist removed", "ToastPlaylistUpdateFailed": "Failed to update playlist", diff --git a/client/strings/fr.json b/client/strings/fr.json index de7c545b..4c20f4b1 100644 --- a/client/strings/fr.json +++ b/client/strings/fr.json @@ -492,6 +492,7 @@ "MessageOr": "ou", "MessagePauseChapter": "Suspendre la lecture du chapitre", "MessagePlayChapter": "Ecouter depuis le début du chapitre", + "MessagePlaylistCreateFromCollection": "Create playlist from collection", "MessagePodcastHasNoRSSFeedForMatching": "Le Podcast n'a pas d'URL de flux RSS à utiliser pour la correspondance", "MessageQuickMatchDescription": "Renseigne les détails manquants ainsi que la couverture avec la première correspondance de '{0}'. N'écrase pas les données présentes à moins que le paramètre 'Préférer les Métadonnées par correspondance' soit activé.", "MessageRemoveAllItemsWarning": "ATTENTION! Cette action supprimera toute la base de données de la bibliothèque ainsi que les mises à jour ou correspondances qui auraient été effectuées. Cela n'a aucune incidence sur les fichiers de la bibliothèque. Voulez-vous continuer?", @@ -577,6 +578,8 @@ "ToastLibraryScanStarted": "Analyse de la bibliothèque démarrée", "ToastLibraryUpdateFailed": "Echec de la mise à jour de la bibliothèque", "ToastLibraryUpdateSuccess": "Bibliothèque \"{0}\" mise à jour", + "ToastPlaylistCreateFailed": "Failed to create playlist", + "ToastPlaylistCreateSuccess": "Playlist created", "ToastPlaylistRemoveFailed": "Echec de la suppression de la liste de lecture", "ToastPlaylistRemoveSuccess": "Liste de lecture supprimée", "ToastPlaylistUpdateFailed": "Echec de la mise à jour de la liste de lecture", @@ -601,4 +604,4 @@ "WeekdayThursday": "Jeudi", "WeekdayTuesday": "Mardi", "WeekdayWednesday": "Mercredi" -} +} \ No newline at end of file diff --git a/client/strings/hr.json b/client/strings/hr.json index d7a12e53..f2490b66 100644 --- a/client/strings/hr.json +++ b/client/strings/hr.json @@ -492,6 +492,7 @@ "MessageOr": "or", "MessagePauseChapter": "Pause chapter playback", "MessagePlayChapter": "Listen to beginning of chapter", + "MessagePlaylistCreateFromCollection": "Create playlist from collection", "MessagePodcastHasNoRSSFeedForMatching": "Podcast nema RSS feed url za matchanje", "MessageQuickMatchDescription": "Popuni prazne detalje stavki i cover sa prvim match rezultato iz '{0}'. Ne briše detalje osim ako 'Prefer matched metadata' server postavka nije uključena.", "MessageRemoveAllItemsWarning": "UPOZORENJE! Ova radnja briše sve stavke iz biblioteke uključujući bilokakve aktualizacije ili matcheve. Ovo ne mjenja vaše lokalne datoteke. Jeste li sigurni?", @@ -577,6 +578,8 @@ "ToastLibraryScanStarted": "Sken biblioteke pokrenut", "ToastLibraryUpdateFailed": "Aktualiziranje biblioteke neuspješno", "ToastLibraryUpdateSuccess": "Biblioteka \"{0}\" aktualizirana", + "ToastPlaylistCreateFailed": "Failed to create playlist", + "ToastPlaylistCreateSuccess": "Playlist created", "ToastPlaylistRemoveFailed": "Failed to remove playlist", "ToastPlaylistRemoveSuccess": "Playlist removed", "ToastPlaylistUpdateFailed": "Failed to update playlist", diff --git a/client/strings/it.json b/client/strings/it.json index f42004f0..3694ecfe 100644 --- a/client/strings/it.json +++ b/client/strings/it.json @@ -492,6 +492,7 @@ "MessageOr": "o", "MessagePauseChapter": "Metti in Pausa Capitolo", "MessagePlayChapter": "Ascolta dall'inizio del capitolo", + "MessagePlaylistCreateFromCollection": "Create playlist from collection", "MessagePodcastHasNoRSSFeedForMatching": "Podcast non ha l'URL del feed RSS da utilizzare per il match", "MessageQuickMatchDescription": "Compila i dettagli dell'articolo vuoto e copri con il risultato della prima corrispondenza di '{0}'. Non sovrascrive i dettagli a meno che non sia abilitata l'impostazione del server \"Preferisci metadati corrispondenti\".", "MessageRemoveAllItemsWarning": "AVVERTIMENTO! Questa azione rimuoverà tutti gli elementi della libreria dal database, inclusi eventuali aggiornamenti o corrispondenze apportate. Questo non fa nulla ai tuoi file effettivi. Sei sicuro?", @@ -577,6 +578,8 @@ "ToastLibraryScanStarted": "Scansione Libreria iniziata", "ToastLibraryUpdateFailed": "Errore Aggiornamento libreria", "ToastLibraryUpdateSuccess": "Libreria \"{0}\" aggiornata", + "ToastPlaylistCreateFailed": "Failed to create playlist", + "ToastPlaylistCreateSuccess": "Playlist created", "ToastPlaylistRemoveFailed": "Rimozione Playlist Fallita", "ToastPlaylistRemoveSuccess": "Playlist rimossa", "ToastPlaylistUpdateFailed": "Aggiornamento Playlist Fallita", diff --git a/client/strings/pl.json b/client/strings/pl.json index abb982d9..becadd0f 100644 --- a/client/strings/pl.json +++ b/client/strings/pl.json @@ -492,6 +492,7 @@ "MessageOr": "lub", "MessagePauseChapter": "Zatrzymaj odtwarzanie rozdziały", "MessagePlayChapter": "Rozpocznij odtwarzanie od początku rozdziału", + "MessagePlaylistCreateFromCollection": "Create playlist from collection", "MessagePodcastHasNoRSSFeedForMatching": "Podcast nie ma adresu url kanału RSS, który mógłby zostać użyty do dopasowania", "MessageQuickMatchDescription": "Wypełnij puste informacje i okładkę pierwszym wynikiem dopasowania z '{0}'. Nie nadpisuje szczegółów, chyba że włączone jest ustawienie serwera 'Preferuj dopasowane metadane'.", "MessageRemoveAllItemsWarning": "UWAGA! Ta akcja usunie wszystkie elementy biblioteki z bazy danych, w tym wszystkie aktualizacje lub dopasowania, które zostały wykonane. Pliki pozostaną niezmienione. Czy jesteś pewien?", @@ -577,6 +578,8 @@ "ToastLibraryScanStarted": "Rozpoczęto skanowanie biblioteki", "ToastLibraryUpdateFailed": "Nie udało się zaktualizować biblioteki", "ToastLibraryUpdateSuccess": "Zaktualizowano \"{0}\" pozycji", + "ToastPlaylistCreateFailed": "Failed to create playlist", + "ToastPlaylistCreateSuccess": "Playlist created", "ToastPlaylistRemoveFailed": "Failed to remove playlist", "ToastPlaylistRemoveSuccess": "Playlist removed", "ToastPlaylistUpdateFailed": "Failed to update playlist", diff --git a/client/strings/zh-cn.json b/client/strings/zh-cn.json index ccc15e78..ae73a6f5 100644 --- a/client/strings/zh-cn.json +++ b/client/strings/zh-cn.json @@ -492,6 +492,7 @@ "MessageOr": "或", "MessagePauseChapter": "暂停章节播放", "MessagePlayChapter": "开始章节播放", + "MessagePlaylistCreateFromCollection": "Create playlist from collection", "MessagePodcastHasNoRSSFeedForMatching": "播客没有可用于匹配 RSS 源的 url", "MessageQuickMatchDescription": "使用来自 '{0}' 的第一个匹配结果填充空白详细信息和封面. 除非启用 '首选匹配元数据' 服务器设置, 否则不会覆盖详细信息.", "MessageRemoveAllItemsWarning": "警告! 此操作将从数据库中删除所有的媒体库项, 包括您所做的任何更新或匹配. 这不会对实际文件产生任何影响. 你确定吗?", @@ -577,6 +578,8 @@ "ToastLibraryScanStarted": "媒体库扫描已启动", "ToastLibraryUpdateFailed": "更新图书库失败", "ToastLibraryUpdateSuccess": "媒体库 \"{0}\" 已更新", + "ToastPlaylistCreateFailed": "Failed to create playlist", + "ToastPlaylistCreateSuccess": "Playlist created", "ToastPlaylistRemoveFailed": "删除播放列表失败", "ToastPlaylistRemoveSuccess": "播放列表已删除", "ToastPlaylistUpdateFailed": "更新播放列表失败",