From 1cac42aec5a8002980e9e1f2acf6521b98051f57 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 12 Oct 2024 15:32:51 -0500 Subject: [PATCH] Add localization on logs page and confirm embed #3495 --- client/pages/audiobook/_id/manage.vue | 2 +- client/pages/config/log.vue | 4 ++-- client/strings/en-us.json | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/pages/audiobook/_id/manage.vue b/client/pages/audiobook/_id/manage.vue index fb5ccc29..56d78d1c 100644 --- a/client/pages/audiobook/_id/manage.vue +++ b/client/pages/audiobook/_id/manage.vue @@ -370,7 +370,7 @@ export default { }, embedClick() { const payload = { - message: `Are you sure you want to embed metadata in ${this.audioFiles.length} audio files?`, + message: this.$getString('MessageConfirmEmbedMetadataInAudioFiles', [this.audioFiles.length]), callback: (confirmed) => { if (confirmed) { this.updateAudioFileMetadata() diff --git a/client/pages/config/log.vue b/client/pages/config/log.vue index 41df00e2..4015a9f6 100644 --- a/client/pages/config/log.vue +++ b/client/pages/config/log.vue @@ -10,9 +10,9 @@
- + - +
diff --git a/client/strings/en-us.json b/client/strings/en-us.json index edad1672..adfe1001 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -515,6 +515,7 @@ "LabelSeries": "Series", "LabelSeriesName": "Series Name", "LabelSeriesProgress": "Series Progress", + "LabelServerLogLevel": "Server Log Level", "LabelServerYearReview": "Server Year in Review ({0})", "LabelSetEbookAsPrimary": "Set as primary", "LabelSetEbookAsSupplementary": "Set as supplementary", @@ -685,6 +686,7 @@ "MessageConfirmDeleteMetadataProvider": "Are you sure you want to delete custom metadata provider \"{0}\"?", "MessageConfirmDeleteNotification": "Are you sure you want to delete this notification?", "MessageConfirmDeleteSession": "Are you sure you want to delete this session?", + "MessageConfirmEmbedMetadataInAudioFiles": "Are you sure you want to embed metadata in {0} audio files?", "MessageConfirmForceReScan": "Are you sure you want to force re-scan?", "MessageConfirmMarkAllEpisodesFinished": "Are you sure you want to mark all episodes as finished?", "MessageConfirmMarkAllEpisodesNotFinished": "Are you sure you want to mark all episodes as not finished?",