Skip to content

Commit

Permalink
Add more localization #1375
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Nov 14, 2024
1 parent efbb0e1 commit ad7ca59
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/bookshelf/LazyBookshelf.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
</template>

<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>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/stats/YearInReviewBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="flex items-center">
<p class="hidden md:block text-xl font-semibold">{{ yearInReviewYear }} Year in Review</p>
<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>

<!-- your year in review -->
Expand Down
4 changes: 2 additions & 2 deletions pages/item/_id/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
<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>
</div>
</div>
Expand Down Expand Up @@ -609,7 +609,7 @@ export default {
this.download(localFolder)
},
async downloadClick() {
if (this.downloadItem || this.startingDownload) return
if (this.downloadItem || this.startingDownload) return
const hasPermission = await this.checkCellularPermission('download')
if (!hasPermission) return
Expand Down
5 changes: 5 additions & 0 deletions strings/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"ButtonPlaying": "Playing",
"ButtonPlaylists": "Playlists",
"ButtonRead": "Read",
"ButtonReadLess": "Read less",
"ButtonReadMore": "Read more",
"ButtonRemove": "Remove",
"ButtonRemoveFromServer": "Remove from Server",
"ButtonSave": "Save",
Expand Down Expand Up @@ -252,6 +254,8 @@
"LabelUsername": "Username",
"LabelVeryHigh": "Very High",
"LabelVeryLow": "Very Low",
"LabelYearReviewHide": "Hide Year in Review",
"LabelYearReviewShow": "See Year in Review",
"LabelYourBookmarks": "Your Bookmarks",
"LabelYourProgress": "Your Progress",
"MessageAndroid10Downloads": "Android 10 and below will use internal app storage for downloads.",
Expand Down Expand Up @@ -285,6 +289,7 @@
"MessageMediaNotLinkedToServer": "Media is not linked to an Audiobookshelf server. No progress will be synced.",
"MessageNoBookmarks": "No Bookmarks",
"MessageNoChapters": "No Chapters",
"MessageNoCollections": "No Collections",
"MessageNoItems": "No Items",
"MessageNoItemsFound": "No items found",
"MessageNoListeningSessions": "No Listening Sessions",
Expand Down

0 comments on commit ad7ca59

Please sign in to comment.