From 6462a50713340bbb38be457c863f257f465fecdc Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 13 May 2024 17:25:01 -0500 Subject: [PATCH] Add more translation strings --- client/components/cards/BookMatchCard.vue | 14 +++++++------- client/components/cards/ItemSearchCard.vue | 6 +++--- client/components/modals/ListeningSessionModal.vue | 2 +- client/components/modals/item/tabs/Match.vue | 8 ++++---- client/pages/audiobook/_id/chapters.vue | 4 ++-- client/pages/item/_id/index.vue | 4 ++-- client/pages/library/_library/podcast/search.vue | 2 +- client/strings/bg.json | 9 +++++++++ client/strings/bn.json | 9 +++++++++ client/strings/cs.json | 9 +++++++++ client/strings/da.json | 9 +++++++++ client/strings/de.json | 9 +++++++++ client/strings/en-us.json | 9 +++++++++ client/strings/es.json | 9 +++++++++ client/strings/et.json | 9 +++++++++ client/strings/fr.json | 9 +++++++++ client/strings/gu.json | 9 +++++++++ client/strings/he.json | 9 +++++++++ client/strings/hi.json | 9 +++++++++ client/strings/hr.json | 9 +++++++++ client/strings/hu.json | 9 +++++++++ client/strings/it.json | 9 +++++++++ client/strings/lt.json | 9 +++++++++ client/strings/nl.json | 9 +++++++++ client/strings/no.json | 9 +++++++++ client/strings/pl.json | 9 +++++++++ client/strings/pt-br.json | 9 +++++++++ client/strings/ru.json | 9 +++++++++ client/strings/sv.json | 9 +++++++++ client/strings/uk.json | 9 +++++++++ client/strings/vi-vn.json | 9 +++++++++ client/strings/zh-cn.json | 9 +++++++++ client/strings/zh-tw.json | 9 +++++++++ 33 files changed, 254 insertions(+), 20 deletions(-) diff --git a/client/components/cards/BookMatchCard.vue b/client/components/cards/BookMatchCard.vue index cbe4f7a4..d5355e91 100644 --- a/client/components/cards/BookMatchCard.vue +++ b/client/components/cards/BookMatchCard.vue @@ -13,9 +13,9 @@

{{ book.publishedYear }}

-

by {{ book.author }}

-

Narrated by {{ book.narrator }}

-

Runtime: {{ $elapsedPrettyExtended(bookDuration, false) }} {{ bookDurationComparison }}

+

{{ $getString('LabelByAuthor', [book.author]) }}

+

{{ $strings.LabelNarrators }}: {{ book.narrator }}

+

{{ $strings.LabelDuration }}: {{ $elapsedPrettyExtended(bookDuration, false) }} {{ bookDurationComparison }}

@@ -31,7 +31,7 @@

{{ book.title }}

-

by {{ book.author }}

+

{{ $getString('LabelByAuthor', [book.author]) }}

{{ book.genres.join(', ') }}

{{ book.trackCount }} Episodes

@@ -75,11 +75,11 @@ export default { let differenceInMinutes = currentBookDurationMinutes - this.book.duration if (differenceInMinutes < 0) { differenceInMinutes = Math.abs(differenceInMinutes) - return `(${this.$elapsedPrettyExtended(differenceInMinutes * 60, false, false)} shorter)` + return this.$getString('LabelDurationComparisonLonger', [this.$elapsedPrettyExtended(differenceInMinutes * 60, false, false)]) } else if (differenceInMinutes > 0) { - return `(${this.$elapsedPrettyExtended(differenceInMinutes * 60, false, false)} longer)` + return this.$getString('LabelDurationComparisonShorter', [this.$elapsedPrettyExtended(differenceInMinutes * 60, false, false)]) } - return '(exact match)' + return this.$strings.LabelDurationComparisonExactMatch } }, methods: { diff --git a/client/components/cards/ItemSearchCard.vue b/client/components/cards/ItemSearchCard.vue index f1b5bf3d..bfcac8f0 100644 --- a/client/components/cards/ItemSearchCard.vue +++ b/client/components/cards/ItemSearchCard.vue @@ -7,7 +7,7 @@

-

by {{ authorName }}

+

{{ $getString('LabelByAuthor', [authorName]) }}

@@ -69,7 +69,7 @@ export default { if (this.matchKey === 'episode') return `

${this.$strings.LabelEpisode}: ${html}

` if (this.matchKey === 'tags') return `

${this.$strings.LabelTags}: ${html}

` if (this.matchKey === 'subtitle') return `

${html}

` - if (this.matchKey === 'authors') return `by ${html}` + if (this.matchKey === 'authors') this.$getString('LabelByAuthor', [html]) if (this.matchKey === 'isbn') return `

ISBN: ${html}

` if (this.matchKey === 'asin') return `

ASIN: ${html}

` if (this.matchKey === 'series') return `

${this.$strings.LabelSeries}: ${html}

` @@ -90,4 +90,4 @@ export default { flex-direction: column; justify-content: center; } - \ No newline at end of file + diff --git a/client/components/modals/ListeningSessionModal.vue b/client/components/modals/ListeningSessionModal.vue index 20753234..6b4a0d8a 100644 --- a/client/components/modals/ListeningSessionModal.vue +++ b/client/components/modals/ListeningSessionModal.vue @@ -8,7 +8,7 @@

{{ _session.displayTitle }}

-

by {{ _session.displayAuthor }}

+

{{ $getString('LabelByAuthor', [_session.displayAuthor]) }}

diff --git a/client/components/modals/item/tabs/Match.vue b/client/components/modals/item/tabs/Match.vue index c566f600..ed4db87a 100644 --- a/client/components/modals/item/tabs/Match.vue +++ b/client/components/modals/item/tabs/Match.vue @@ -42,13 +42,13 @@
-

New

+

{{ $strings.LabelNew }}

-

Current

+

{{ $strings.LabelCurrent }}

@@ -180,14 +180,14 @@
-

{{ $strings.LabelCurrently }} {{ mediaMetadata.explicit ? 'Explicit (checked)' : 'Not Explicit (unchecked)' }}

+

{{ $strings.LabelCurrently }} {{ mediaMetadata.explicit ? $strings.LabelExplicitChecked : $strings.LabelExplicitUnchecked }}

-

{{ $strings.LabelCurrently }} {{ mediaMetadata.abridged ? 'Abridged (checked)' : 'Unabridged (unchecked)' }}

+

{{ $strings.LabelCurrently }} {{ mediaMetadata.abridged ? $strings.LabelAbridgedChecked : $strings.LabelAbridgedUnchecked }}

diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index ef4bbee4..a403478b 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -18,7 +18,7 @@