mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-04-30 01:15:24 +02:00
Adds locale
This commit is contained in:
parent
38957d4f32
commit
65aec6a099
@ -149,7 +149,7 @@
|
|||||||
<ui-btn color="bg-primary flex-1" @click="findChapters">{{ $strings.ButtonSearch }}</ui-btn>
|
<ui-btn color="bg-primary flex-1" @click="findChapters">{{ $strings.ButtonSearch }}</ui-btn>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<ui-checkbox v-model="removeBranding" label="Remove Audible branding from chapters" small checkbox-bg="bg" label-class="pl-2 text-base text-sm" @click="toggleRemoveBranding" />
|
<ui-checkbox v-model="removeBranding" :label="$strings.LabelRemoveAudibleBranding" small checkbox-bg="bg" label-class="pl-2 text-base text-sm" @click="toggleRemoveBranding" />
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute left-0 mt-1.5 text-error text-s h-5">
|
<div class="absolute left-0 mt-1.5 text-error text-s h-5">
|
||||||
<p v-if="asinError">{{ asinError }}</p>
|
<p v-if="asinError">{{ asinError }}</p>
|
||||||
@ -337,12 +337,12 @@ export default {
|
|||||||
|
|
||||||
const lastChapter = this.newChapters[this.newChapters.length - 1]
|
const lastChapter = this.newChapters[this.newChapters.length - 1]
|
||||||
if (lastChapter.start + amount > this.mediaDurationRounded) {
|
if (lastChapter.start + amount > this.mediaDurationRounded) {
|
||||||
this.$toast.error('Invalid shift amount. Last chapter start time would extend beyond the duration of this audiobook.')
|
this.$toast.error($strings.ToastInvalidShiftAmountLast)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.newChapters[1].start + amount <= 0) {
|
if (this.newChapters[1].start + amount <= 0) {
|
||||||
this.$toast.error('Invalid shift amount. The first chapter would have zero or negative length and would be overwritten by the second chapter. Increase the start duration of second chapter. ')
|
this.$toast.error($strings.ToastInvalidShiftAmountStart)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -530,6 +530,7 @@
|
|||||||
"LabelReleaseDate": "Release Date",
|
"LabelReleaseDate": "Release Date",
|
||||||
"LabelRemoveAllMetadataAbs": "Remove all metadata.abs files",
|
"LabelRemoveAllMetadataAbs": "Remove all metadata.abs files",
|
||||||
"LabelRemoveAllMetadataJson": "Remove all metadata.json files",
|
"LabelRemoveAllMetadataJson": "Remove all metadata.json files",
|
||||||
|
"LabelRemoveAudibleBranding": "Remove Audible intro and outro from chapters",
|
||||||
"LabelRemoveCover": "Remove cover",
|
"LabelRemoveCover": "Remove cover",
|
||||||
"LabelRemoveMetadataFile": "Remove metadata files in library item folders",
|
"LabelRemoveMetadataFile": "Remove metadata files in library item folders",
|
||||||
"LabelRemoveMetadataFileHelp": "Remove all metadata.json and metadata.abs files in your {0} folders.",
|
"LabelRemoveMetadataFileHelp": "Remove all metadata.json and metadata.abs files in your {0} folders.",
|
||||||
@ -998,6 +999,8 @@
|
|||||||
"ToastFailedToUpdate": "Failed to update",
|
"ToastFailedToUpdate": "Failed to update",
|
||||||
"ToastInvalidImageUrl": "Invalid image URL",
|
"ToastInvalidImageUrl": "Invalid image URL",
|
||||||
"ToastInvalidMaxEpisodesToDownload": "Invalid max episodes to download",
|
"ToastInvalidMaxEpisodesToDownload": "Invalid max episodes to download",
|
||||||
|
"ToastInvalidShiftAmountLast": "Invalid shift amount. The last chapter start time would extend beyond the duration of this audiobook.",
|
||||||
|
"ToastInvalidShiftAmountStart": "Invalid shift amount. The first chapter would have zero or negative length and would be overwritten by the second chapter. Increase the start duration of second chapter.",
|
||||||
"ToastInvalidUrl": "Invalid URL",
|
"ToastInvalidUrl": "Invalid URL",
|
||||||
"ToastItemCoverUpdateSuccess": "Item cover updated",
|
"ToastItemCoverUpdateSuccess": "Item cover updated",
|
||||||
"ToastItemDeletedFailed": "Failed to delete item",
|
"ToastItemDeletedFailed": "Failed to delete item",
|
||||||
|
Loading…
Reference in New Issue
Block a user