From faac6f677a7ceb367fcc569a8788b37fed1be2f6 Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 7 Nov 2022 18:27:17 -0600 Subject: [PATCH] Update:More localization strings #1103 --- client/components/app/BookShelfToolbar.vue | 43 +-- client/components/app/ConfigSideNav.vue | 26 +- client/components/cards/ItemUploadCard.vue | 22 +- client/components/controls/GlobalSearch.vue | 2 +- client/components/modals/AccountModal.vue | 34 +- .../components/modals/EditCollectionModal.vue | 10 +- .../modals/EditSeriesInputInnerModal.vue | 6 +- client/components/modals/item/EditModal.vue | 100 +++--- .../components/modals/item/tabs/Chapters.vue | 4 +- client/components/modals/item/tabs/Cover.vue | 33 +- .../components/modals/item/tabs/Details.vue | 16 +- client/components/modals/item/tabs/Match.vue | 80 ++--- client/components/modals/item/tabs/Tools.vue | 6 +- .../modals/libraries/EditLibrary.vue | 14 +- .../components/modals/libraries/EditModal.vue | 40 ++- .../modals/libraries/FolderChooser.vue | 12 +- .../modals/libraries/LibrarySettings.vue | 17 +- .../modals/libraries/ScheduleScan.vue | 4 +- .../notification/NotificationEditModal.vue | 16 +- client/components/prompt/Confirm.vue | 6 +- .../components/stats/DailyListeningChart.vue | 18 +- client/components/stats/PreviewIcons.vue | 10 +- client/components/tables/BackupsTable.vue | 24 +- client/components/tables/ChaptersTable.vue | 10 +- .../components/tables/LibraryFilesTable.vue | 12 +- .../components/tables/UploadedFilesTable.vue | 6 +- client/components/tables/UsersTable.vue | 14 +- .../tables/library/LibrariesTable.vue | 10 +- .../components/tables/library/LibraryItem.vue | 6 +- client/components/widgets/BookDetailsEdit.vue | 22 +- .../widgets/CronExpressionBuilder.vue | 34 +- .../components/widgets/SeriesInputWidget.vue | 2 +- client/pages/audiobook/_id/chapters.vue | 46 +-- client/pages/audiobook/_id/manage.vue | 2 +- client/pages/config/backups.vue | 22 +- client/pages/config/index.vue | 73 +--- client/pages/config/library-stats.vue | 14 +- client/pages/config/log.vue | 4 +- client/pages/config/notifications.vue | 18 +- client/pages/config/sessions.vue | 22 +- client/pages/config/stats.vue | 14 +- client/pages/config/users/_id/index.vue | 28 +- client/pages/config/users/_id/sessions.vue | 18 +- client/pages/upload/index.vue | 36 +- client/plugins/i18n.js | 17 + client/strings/en-us.json | 326 ++++++++++++++++-- 46 files changed, 772 insertions(+), 527 deletions(-) diff --git a/client/components/app/BookShelfToolbar.vue b/client/components/app/BookShelfToolbar.vue index 00da52c3..53dc2a2e 100644 --- a/client/components/app/BookShelfToolbar.vue +++ b/client/components/app/BookShelfToolbar.vue @@ -2,19 +2,19 @@
-

Home

+

{{ $strings.ButtonHome }}

-

Library

+

{{ $strings.ButtonLibrary }}

-

Series

+

{{ $strings.ButtonSeries }}

-

Collections

+

{{ $strings.ButtonCollections }}

-

Search

+

{{ $strings.ButtonSearch }}

@@ -28,42 +28,37 @@ {{ numShowing }}
- - + +
- - + + - +
- Mark Series {{ isSeriesFinished ? 'Not Finished' : 'Finished' }} + {{ $strings.LabelMarkSeries }} {{ isSeriesFinished ? $strings.LabelNotFinished : $strings.LabelFinished }}
@@ -150,10 +145,10 @@ export default { return this.totalEntities }, entityName() { - if (this.isPodcastLibrary) return 'Podcasts' - if (!this.page) return 'Books' - if (this.isSeriesPage) return 'Series' - if (this.isCollectionsPage) return 'Collections' + if (this.isPodcastLibrary) return this.$strings.LabelPodcasts + if (!this.page) return this.$strings.LabelBooks + if (this.isSeriesPage) return this.$strings.LabelSeries + if (this.isCollectionsPage) return this.$strings.LabelCollections return '' }, seriesName() { diff --git a/client/components/app/ConfigSideNav.vue b/client/components/app/ConfigSideNav.vue index af7e0f65..1a096a1d 100644 --- a/client/components/app/ConfigSideNav.vue +++ b/client/components/app/ConfigSideNav.vue @@ -18,7 +18,7 @@ Latest: {{ latestVersion }} - + @@ -47,7 +47,7 @@ export default { return [ { id: 'config-stats', - title: 'Your Stats', + title: this.$strings.HeaderYourStats, path: '/config/stats' } ] @@ -55,37 +55,37 @@ export default { const configRoutes = [ { id: 'config', - title: 'Settings', + title: this.$strings.HeaderSettings, path: '/config' }, { id: 'config-libraries', - title: 'Libraries', + title: this.$strings.HeaderLibraries, path: '/config/libraries' }, { id: 'config-users', - title: 'Users', + title: this.$strings.HeaderUsers, path: '/config/users' }, { id: 'config-sessions', - title: 'Listening Sessions', + title: this.$strings.HeaderListeningSessions, path: '/config/sessions' }, { id: 'config-backups', - title: 'Backups', + title: this.$strings.HeaderBackups, path: '/config/backups' }, { id: 'config-log', - title: 'Logs', + title: this.$strings.HeaderLogs, path: '/config/log' }, { id: 'config-notifications', - title: 'Notifications', + title: this.$strings.HeaderNotifications, path: '/config/notifications' } ] @@ -93,12 +93,12 @@ export default { if (this.currentLibraryId) { configRoutes.push({ id: 'config-library-stats', - title: 'Library Stats', + title: this.$strings.HeaderLibraryStats, path: '/config/library-stats' }) configRoutes.push({ id: 'config-stats', - title: 'Your Stats', + title: this.$strings.HeaderYourStats, path: '/config/stats' }) } @@ -146,7 +146,7 @@ export default { } }, methods: { - clickChangelog(){ + clickChangelog() { this.showChangelogModal = true }, clickOutside() { @@ -155,7 +155,7 @@ export default { }, closeDrawer() { this.$emit('update:isOpen', false) - }, + } } } \ No newline at end of file diff --git a/client/components/cards/ItemUploadCard.vue b/client/components/cards/ItemUploadCard.vue index 16f789b3..96616dd5 100644 --- a/client/components/cards/ItemUploadCard.vue +++ b/client/components/cards/ItemUploadCard.vue @@ -15,41 +15,41 @@
- +
- +
-

Directory (auto)

+

{{ $strings.LabelDirectory }} (auto)

- +
-

Directory (auto)

+

{{ $strings.LabelDirectory }} (auto)

- - - + + + -

Successfully Uploaded!

+

{{ $strings.MessageUploaderItemSuccess }}

-

Failed to upload

+

{{ $strings.MessageUploaderItemFailed }}

- +
diff --git a/client/components/controls/GlobalSearch.vue b/client/components/controls/GlobalSearch.vue index 185b1363..2d970db6 100644 --- a/client/components/controls/GlobalSearch.vue +++ b/client/components/controls/GlobalSearch.vue @@ -1,7 +1,7 @@ diff --git a/client/components/modals/EditSeriesInputInnerModal.vue b/client/components/modals/EditSeriesInputInnerModal.vue index c09a6f99..89b66130 100644 --- a/client/components/modals/EditSeriesInputInnerModal.vue +++ b/client/components/modals/EditSeriesInputInnerModal.vue @@ -8,14 +8,14 @@
- +
- +
- Save + {{ $strings.ButtonSave }}
diff --git a/client/components/modals/item/EditModal.vue b/client/components/modals/item/EditModal.vue index f7a106ba..55b16610 100644 --- a/client/components/modals/item/EditModal.vue +++ b/client/components/modals/item/EditModal.vue @@ -31,55 +31,7 @@ export default { processing: false, libraryItem: null, availableHeight: 0, - marginTop: 0, - tabs: [ - { - id: 'details', - title: 'Details', - component: 'modals-item-tabs-details' - }, - { - id: 'cover', - title: 'Cover', - component: 'modals-item-tabs-cover' - }, - { - id: 'chapters', - title: 'Chapters', - component: 'modals-item-tabs-chapters', - mediaType: 'book' - }, - { - id: 'episodes', - title: 'Episodes', - component: 'modals-item-tabs-episodes', - mediaType: 'podcast' - }, - { - id: 'files', - title: 'Files', - component: 'modals-item-tabs-files' - }, - { - id: 'match', - title: 'Match', - component: 'modals-item-tabs-match' - }, - { - id: 'tools', - title: 'Tools', - component: 'modals-item-tabs-tools', - mediaType: 'book', - admin: true - }, - { - id: 'schedule', - title: 'Schedule', - component: 'modals-item-tabs-schedule', - mediaType: 'podcast', - admin: true - } - ] + marginTop: 0 } }, watch: { @@ -122,6 +74,56 @@ export default { this.$store.commit('setEditModalTab', val) } }, + tabs() { + return [ + { + id: 'details', + title: this.$strings.HeaderDetails, + component: 'modals-item-tabs-details' + }, + { + id: 'cover', + title: this.$strings.HeaderCover, + component: 'modals-item-tabs-cover' + }, + { + id: 'chapters', + title: this.$strings.HeaderChapters, + component: 'modals-item-tabs-chapters', + mediaType: 'book' + }, + { + id: 'episodes', + title: this.$strings.HeaderEpisodes, + component: 'modals-item-tabs-episodes', + mediaType: 'podcast' + }, + { + id: 'files', + title: this.$strings.HeaderFiles, + component: 'modals-item-tabs-files' + }, + { + id: 'match', + title: this.$strings.HeaderMatch, + component: 'modals-item-tabs-match' + }, + { + id: 'tools', + title: this.$strings.HeaderTools, + component: 'modals-item-tabs-tools', + mediaType: 'book', + admin: true + }, + { + id: 'schedule', + title: this.$strings.HeaderSchedule, + component: 'modals-item-tabs-schedule', + mediaType: 'podcast', + admin: true + } + ] + }, showExperimentalFeatures() { return this.$store.state.showExperimentalFeatures }, diff --git a/client/components/modals/item/tabs/Chapters.vue b/client/components/modals/item/tabs/Chapters.vue index 779c3e86..3e2b02ee 100644 --- a/client/components/modals/item/tabs/Chapters.vue +++ b/client/components/modals/item/tabs/Chapters.vue @@ -3,8 +3,8 @@
-

No Chapters

- Add Chapters +

{{ $strings.MessageNoChapters }}

+ {{ $strings.ButtonAddChapters }}
diff --git a/client/components/modals/item/tabs/Cover.vue b/client/components/modals/item/tabs/Cover.vue index f8f62332..73f4d99c 100644 --- a/client/components/modals/item/tabs/Cover.vue +++ b/client/components/modals/item/tabs/Cover.vue @@ -14,11 +14,14 @@
- upload + upload
- - Update + + {{ $strings.ButtonSave }}
@@ -26,7 +29,7 @@

{{ localCovers.length }} local image{{ localCovers.length !== 1 ? 's' : '' }}

- {{ showLocalCovers ? 'Hide' : 'Show' }} + {{ showLocalCovers ? $strings.ButtonHide : $strings.ButtonShow }}
@@ -44,19 +47,19 @@
- +
- +
- +
- Search + {{ $strings.ButtonSearch }}
-

No Covers Found

+

{{ $strings.MessageNoCoversFound }}