From ec4f275d526c2b7c2083085d853b36f8836c8468 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 23 Mar 2025 18:09:59 -0500 Subject: [PATCH] Remove tooltip for re-scan in item modal, add missing translations #4017 --- client/components/modals/item/tabs/Details.vue | 4 +--- client/components/modals/podcast/EpisodeFeed.vue | 2 +- client/components/widgets/SeriesInputWidget.vue | 2 +- client/pages/upload/index.vue | 3 +-- client/strings/en-us.json | 2 ++ 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/client/components/modals/item/tabs/Details.vue b/client/components/modals/item/tabs/Details.vue index 48b97088..2765ae2e 100644 --- a/client/components/modals/item/tabs/Details.vue +++ b/client/components/modals/item/tabs/Details.vue @@ -11,9 +11,7 @@ {{ $strings.ButtonQuickMatch }} - - {{ $strings.ButtonReScan }} - + {{ $strings.ButtonReScan }}
diff --git a/client/components/modals/podcast/EpisodeFeed.vue b/client/components/modals/podcast/EpisodeFeed.vue index 167344bc..c3556faf 100644 --- a/client/components/modals/podcast/EpisodeFeed.vue +++ b/client/components/modals/podcast/EpisodeFeed.vue @@ -42,7 +42,7 @@
{{ buttonText }} -

All episodes are downloaded

+

{{ $strings.LabelAllEpisodesDownloaded }}

diff --git a/client/components/widgets/SeriesInputWidget.vue b/client/components/widgets/SeriesInputWidget.vue index 1d8b64fe..916b108d 100644 --- a/client/components/widgets/SeriesInputWidget.vue +++ b/client/components/widgets/SeriesInputWidget.vue @@ -81,7 +81,7 @@ export default { var existingSeriesSameName = this.seriesItems.findIndex((se) => se.name.toLowerCase() === this.selectedSeries.name.toLowerCase()) if (existingSeriesSameName >= 0 && existingSeriesIndex < 0) { console.error('Attempt to add duplicate series') - this.$toast.error('Cannot add two of the same series') + this.$toast.error(this.$strings.ToastSeriesSubmitFailedSameName) return } diff --git a/client/pages/upload/index.vue b/client/pages/upload/index.vue index 441ce88e..7fd74b78 100644 --- a/client/pages/upload/index.vue +++ b/client/pages/upload/index.vue @@ -54,8 +54,7 @@
-

{{ items.length }} item{{ items.length === 1 ? '' : 's' }}

-

 | {{ ignoredFiles.length }} file{{ ignoredFiles.length === 1 ? '' : 's' }} ignored

+

{{ items.length === 1 ? `1 ${$strings.LabelItem}` : $getString('LabelXItems', [items.length]) }}

{{ $strings.ButtonReset }}
diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 4d0c6ec4..c67c1630 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -229,6 +229,7 @@ "LabelAddedDate": "Added {0}", "LabelAdminUsersOnly": "Admin users only", "LabelAll": "All", + "LabelAllEpisodesDownloaded": "All episodes downloaded", "LabelAllUsers": "All Users", "LabelAllUsersExcludingGuests": "All users excluding guests", "LabelAllUsersIncludingGuests": "All users including guests", @@ -1066,6 +1067,7 @@ "ToastSelectAtLeastOneUser": "Select at least one user", "ToastSendEbookToDeviceFailed": "Failed to send ebook to device", "ToastSendEbookToDeviceSuccess": "Ebook sent to device \"{0}\"", + "ToastSeriesSubmitFailedSameName": "Cannot add two series with the same name", "ToastSeriesUpdateFailed": "Series update failed", "ToastSeriesUpdateSuccess": "Series update success", "ToastServerSettingsUpdateSuccess": "Server settings updated",