Add more localization #1375

This commit is contained in:
advplyr 2024-11-14 17:51:16 -06:00
parent efbb0e1b1c
commit ad7ca59532
4 changed files with 10 additions and 4 deletions

View file

@ -8,7 +8,8 @@
</template> </template>
<div v-show="!entities.length && initialized" class="w-full py-16 text-center text-xl"> <div v-show="!entities.length && initialized" class="w-full py-16 text-center text-xl">
<div class="py-4 capitalize">No {{ entityName }}</div> <div v-if="page === 'collections'" class="py-4">{{ $strings.MessageNoCollections }}</div>
<div v-else class="py-4 capitalize">No {{ entityName }}</div>
<ui-btn v-if="hasFilter" @click="clearFilter">{{ $strings.ButtonClearFilter }}</ui-btn> <ui-btn v-if="hasFilter" @click="clearFilter">{{ $strings.ButtonClearFilter }}</ui-btn>
</div> </div>
</div> </div>

View file

@ -9,7 +9,7 @@
<div class="flex items-center"> <div class="flex items-center">
<p class="hidden md:block text-xl font-semibold">{{ yearInReviewYear }} Year in Review</p> <p class="hidden md:block text-xl font-semibold">{{ yearInReviewYear }} Year in Review</p>
<div class="hidden md:block flex-grow" /> <div class="hidden md:block flex-grow" />
<ui-btn class="w-full md:w-auto" @click.stop="clickShowYearInReview">{{ showYearInReview ? 'Hide Year in Review' : `See ${yearInReviewYear} Year in Review` }}</ui-btn> <ui-btn class="w-full md:w-auto" @click.stop="clickShowYearInReview">{{ showYearInReview ? $strings.LabelYearReviewHide : $strings.LabelYearReviewShow }}</ui-btn>
</div> </div>
<!-- your year in review --> <!-- your year in review -->

View file

@ -138,7 +138,7 @@
<p ref="description" class="text-sm text-justify whitespace-pre-line font-light" :class="{ 'line-clamp-4': !showFullDescription }" style="hyphens: auto">{{ description }}</p> <p ref="description" class="text-sm text-justify whitespace-pre-line font-light" :class="{ 'line-clamp-4': !showFullDescription }" style="hyphens: auto">{{ description }}</p>
<div v-if="descriptionClamped" class="text-fg text-sm py-2" @click="showFullDescription = !showFullDescription"> <div v-if="descriptionClamped" class="text-fg text-sm py-2" @click="showFullDescription = !showFullDescription">
{{ showFullDescription ? 'Read less' : 'Read more' }} {{ showFullDescription ? $strings.ButtonReadLess : $strings.ButtonReadMore }}
<span class="material-icons align-middle text-base -mt-px">{{ showFullDescription ? 'expand_less' : 'expand_more' }}</span> <span class="material-icons align-middle text-base -mt-px">{{ showFullDescription ? 'expand_less' : 'expand_more' }}</span>
</div> </div>
</div> </div>
@ -609,7 +609,7 @@ export default {
this.download(localFolder) this.download(localFolder)
}, },
async downloadClick() { async downloadClick() {
if (this.downloadItem || this.startingDownload) return if (this.downloadItem || this.startingDownload) return
const hasPermission = await this.checkCellularPermission('download') const hasPermission = await this.checkCellularPermission('download')
if (!hasPermission) return if (!hasPermission) return

View file

@ -37,6 +37,8 @@
"ButtonPlaying": "Playing", "ButtonPlaying": "Playing",
"ButtonPlaylists": "Playlists", "ButtonPlaylists": "Playlists",
"ButtonRead": "Read", "ButtonRead": "Read",
"ButtonReadLess": "Read less",
"ButtonReadMore": "Read more",
"ButtonRemove": "Remove", "ButtonRemove": "Remove",
"ButtonRemoveFromServer": "Remove from Server", "ButtonRemoveFromServer": "Remove from Server",
"ButtonSave": "Save", "ButtonSave": "Save",
@ -252,6 +254,8 @@
"LabelUsername": "Username", "LabelUsername": "Username",
"LabelVeryHigh": "Very High", "LabelVeryHigh": "Very High",
"LabelVeryLow": "Very Low", "LabelVeryLow": "Very Low",
"LabelYearReviewHide": "Hide Year in Review",
"LabelYearReviewShow": "See Year in Review",
"LabelYourBookmarks": "Your Bookmarks", "LabelYourBookmarks": "Your Bookmarks",
"LabelYourProgress": "Your Progress", "LabelYourProgress": "Your Progress",
"MessageAndroid10Downloads": "Android 10 and below will use internal app storage for downloads.", "MessageAndroid10Downloads": "Android 10 and below will use internal app storage for downloads.",
@ -285,6 +289,7 @@
"MessageMediaNotLinkedToServer": "Media is not linked to an Audiobookshelf server. No progress will be synced.", "MessageMediaNotLinkedToServer": "Media is not linked to an Audiobookshelf server. No progress will be synced.",
"MessageNoBookmarks": "No Bookmarks", "MessageNoBookmarks": "No Bookmarks",
"MessageNoChapters": "No Chapters", "MessageNoChapters": "No Chapters",
"MessageNoCollections": "No Collections",
"MessageNoItems": "No Items", "MessageNoItems": "No Items",
"MessageNoItemsFound": "No items found", "MessageNoItemsFound": "No items found",
"MessageNoListeningSessions": "No Listening Sessions", "MessageNoListeningSessions": "No Listening Sessions",