mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-01 19:49:26 +01:00
parent
1a93103e50
commit
bcd224f534
@ -7,17 +7,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div v-if="initialized && !totalShelves && !hasFilter && entityName === 'books'" class="w-full flex flex-col items-center justify-center py-12">
|
<div v-if="initialized && !totalShelves && !hasFilter && entityName === 'books'" class="w-full flex flex-col items-center justify-center py-12">
|
||||||
<p class="text-center text-2xl font-book mb-4 py-4">{{ libraryName }} Library is empty!</p>
|
<p class="text-center text-2xl font-book mb-4 py-4">{{ $getString('MessageXLibraryIsEmpty', [libraryName]) }}</p>
|
||||||
<div v-if="userIsAdminOrUp" class="flex">
|
<div v-if="userIsAdminOrUp" class="flex">
|
||||||
<ui-btn to="/config" color="primary" class="w-52 mr-2">Configure Scanner</ui-btn>
|
<ui-btn to="/config" color="primary" class="w-52 mr-2">{{ $strings.ButtonConfigureScanner }}</ui-btn>
|
||||||
<ui-btn color="success" class="w-52" @click="scan">Scan Library</ui-btn>
|
<ui-btn color="success" class="w-52" @click="scan">{{ $strings.ButtonScanLibrary }}</ui-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="!totalShelves && initialized" class="w-full py-16">
|
<div v-else-if="!totalShelves && initialized" class="w-full py-16">
|
||||||
<p class="text-xl text-center">{{ emptyMessage }}</p>
|
<p class="text-xl text-center">{{ emptyMessage }}</p>
|
||||||
<!-- Clear filter only available on Library bookshelf -->
|
<!-- Clear filter only available on Library bookshelf -->
|
||||||
<div v-if="entityName === 'books'" class="flex justify-center mt-2">
|
<div v-if="entityName === 'books'" class="flex justify-center mt-2">
|
||||||
<ui-btn v-if="hasFilter" color="primary" @click="clearFilter">Clear Filter</ui-btn>
|
<ui-btn v-if="hasFilter" color="primary" @click="clearFilter">{{ $strings.ButtonClearFilter }}</ui-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -85,14 +85,15 @@ export default {
|
|||||||
return this.$store.getters['libraries/getCurrentLibraryMediaType'] == 'podcast'
|
return this.$store.getters['libraries/getCurrentLibraryMediaType'] == 'podcast'
|
||||||
},
|
},
|
||||||
emptyMessage() {
|
emptyMessage() {
|
||||||
if (this.page === 'series') return 'You have no series'
|
if (this.page === 'series') return this.$strings.MessageBookshelfNoSeries
|
||||||
if (this.page === 'collections') return "You haven't made any collections yet"
|
if (this.page === 'collections') return this.$strings.MessageBookshelfNoCollections
|
||||||
if (this.hasFilter) {
|
if (this.hasFilter) {
|
||||||
if (this.filterName === 'Issues') return 'No Issues'
|
if (this.filterName === 'Issues') return this.$strings.MessageNoIssues
|
||||||
else if (this.filterName === 'Feed-open') return 'No RSS feeds are open'
|
else if (this.filterName === 'Feed-open') return this.$strings.MessageBookshelfNoRSSFeeds
|
||||||
return `No Results for filter "${this.filterName}: ${this.filterValue}"`
|
return this.$getString('MessageBookshelfNoResultsForFilter', [this.filterName, this.filterValue])
|
||||||
|
// return `No Results for filter "${this.filterName}: ${this.filterValue}"`
|
||||||
}
|
}
|
||||||
return 'No results'
|
return this.$strings.MessageNoResults
|
||||||
},
|
},
|
||||||
entityName() {
|
entityName() {
|
||||||
if (!this.page) return 'books'
|
if (!this.page) return 'books'
|
||||||
|
@ -13,8 +13,10 @@
|
|||||||
"ButtonCheckAndDownloadNewEpisodes": "Check & Download New Episodes",
|
"ButtonCheckAndDownloadNewEpisodes": "Check & Download New Episodes",
|
||||||
"ButtonChooseAFolder": "Choose a folder",
|
"ButtonChooseAFolder": "Choose a folder",
|
||||||
"ButtonChooseFiles": "Choose files",
|
"ButtonChooseFiles": "Choose files",
|
||||||
|
"ButtonClearFilter": "Clear Filter",
|
||||||
"ButtonCloseFeed": "Close Feed",
|
"ButtonCloseFeed": "Close Feed",
|
||||||
"ButtonCollections": "Collections",
|
"ButtonCollections": "Collections",
|
||||||
|
"ButtonConfigureScanner": "Configure Scanner",
|
||||||
"ButtonCreate": "Create",
|
"ButtonCreate": "Create",
|
||||||
"ButtonCreateBackup": "Create Backup",
|
"ButtonCreateBackup": "Create Backup",
|
||||||
"ButtonDelete": "Delete",
|
"ButtonDelete": "Delete",
|
||||||
@ -58,6 +60,7 @@
|
|||||||
"ButtonSaveAndClose": "Save & Close",
|
"ButtonSaveAndClose": "Save & Close",
|
||||||
"ButtonSaveTracklist": "Save Tracklist",
|
"ButtonSaveTracklist": "Save Tracklist",
|
||||||
"ButtonScan": "Scan",
|
"ButtonScan": "Scan",
|
||||||
|
"ButtonScanLibrary": "Scan Library",
|
||||||
"ButtonSearch": "Search",
|
"ButtonSearch": "Search",
|
||||||
"ButtonSelectFolderPath": "Select Folder Path",
|
"ButtonSelectFolderPath": "Select Folder Path",
|
||||||
"ButtonSeries": "Series",
|
"ButtonSeries": "Series",
|
||||||
@ -387,6 +390,10 @@
|
|||||||
"MessageBackupsDescription": "Backups include users, user progress, library item details, server settings, and images stored in",
|
"MessageBackupsDescription": "Backups include users, user progress, library item details, server settings, and images stored in",
|
||||||
"MessageBackupsNote": "Backups do not include any files stored in your library folders.",
|
"MessageBackupsNote": "Backups do not include any files stored in your library folders.",
|
||||||
"MessageBatchQuickMatchDescription": "Quick Match will attempt to add missing covers and metadata for the selected items. Enable the options below to allow Quick Match to overwrite existing covers and/or metadata.",
|
"MessageBatchQuickMatchDescription": "Quick Match will attempt to add missing covers and metadata for the selected items. Enable the options below to allow Quick Match to overwrite existing covers and/or metadata.",
|
||||||
|
"MessageBookshelfNoCollections": "You haven't made any collections yet",
|
||||||
|
"MessageBookshelfNoResultsForFilter": "No Results for filter \"{0}: {1}\"",
|
||||||
|
"MessageBookshelfNoRSSFeeds": "No RSS feeds are open",
|
||||||
|
"MessageBookshelfNoSeries": "You have no series",
|
||||||
"MessageChapterEndIsAfter": "Chapter end is after the end of your audiobook",
|
"MessageChapterEndIsAfter": "Chapter end is after the end of your audiobook",
|
||||||
"MessageChapterStartIsAfter": "Chapter start is after the end of your audiobook",
|
"MessageChapterStartIsAfter": "Chapter start is after the end of your audiobook",
|
||||||
"MessageCheckingCron": "Checking cron...",
|
"MessageCheckingCron": "Checking cron...",
|
||||||
@ -429,6 +436,7 @@
|
|||||||
"MessageNoEpisodes": "No Episodes",
|
"MessageNoEpisodes": "No Episodes",
|
||||||
"MessageNoFoldersAvailable": "No Folders Available",
|
"MessageNoFoldersAvailable": "No Folders Available",
|
||||||
"MessageNoGenres": "No Genres",
|
"MessageNoGenres": "No Genres",
|
||||||
|
"MessageNoIssues": "No Issues",
|
||||||
"MessageNoItems": "No Items",
|
"MessageNoItems": "No Items",
|
||||||
"MessageNoItemsFound": "No items found",
|
"MessageNoItemsFound": "No items found",
|
||||||
"MessageNoListeningSessions": "No Listening Sessions",
|
"MessageNoListeningSessions": "No Listening Sessions",
|
||||||
@ -459,6 +467,7 @@
|
|||||||
"MessageUploading": "Uploading...",
|
"MessageUploading": "Uploading...",
|
||||||
"MessageValidCronExpression": "Valid cron expression",
|
"MessageValidCronExpression": "Valid cron expression",
|
||||||
"MessageWatcherIsDisabledGlobally": "Watcher is disabled globally in server settings",
|
"MessageWatcherIsDisabledGlobally": "Watcher is disabled globally in server settings",
|
||||||
|
"MessageXLibraryIsEmpty": "{0} Library is empty!",
|
||||||
"MessageYourAudiobookDurationIsLonger": "Your audiobook duration is longer than the duration found",
|
"MessageYourAudiobookDurationIsLonger": "Your audiobook duration is longer than the duration found",
|
||||||
"MessageYourAudiobookDurationIsShorter": "Your audiobook duration is shorter than duration found",
|
"MessageYourAudiobookDurationIsShorter": "Your audiobook duration is shorter than duration found",
|
||||||
"NoteChangeRootPassword": "Root user is the only user that can have an empty password",
|
"NoteChangeRootPassword": "Root user is the only user that can have an empty password",
|
||||||
|
Loading…
Reference in New Issue
Block a user