diff options
author | pacien | 2020-05-03 23:05:38 +0200 |
---|---|---|
committer | pacien | 2020-05-03 23:05:38 +0200 |
commit | 09624c0089f0e29ffb1abc578525b6a07fd95e81 (patch) | |
tree | f1399d5e3dc2ff9b8e528b331de9424b85883110 /viewer/src/views | |
parent | 07d78c126e9fb8d1129d728df9347b2c94f2c707 (diff) | |
download | ldgallery-09624c0089f0e29ffb1abc578525b6a07fd95e81.tar.gz |
viewer/GallerySearch: use proper i18n pluralisation
Diffstat (limited to 'viewer/src/views')
-rw-r--r-- | viewer/src/views/GallerySearch.vue | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/viewer/src/views/GallerySearch.vue b/viewer/src/views/GallerySearch.vue index e75a37e..dfaa5d3 100644 --- a/viewer/src/views/GallerySearch.vue +++ b/viewer/src/views/GallerySearch.vue | |||
@@ -29,8 +29,7 @@ import IndexSearch from "@/services/indexsearch"; | |||
29 | @Component | 29 | @Component |
30 | export default class GalleryPicture extends Vue { | 30 | export default class GalleryPicture extends Vue { |
31 | @Prop(String) readonly path!: string; | 31 | @Prop(String) readonly path!: string; |
32 | 32 | otherCount: number = 0; | |
33 | otherCount: Number = 0; | ||
34 | 33 | ||
35 | mounted() { | 34 | mounted() { |
36 | this.$uiStore.toggleFullscreen(false); | 35 | this.$uiStore.toggleFullscreen(false); |
@@ -50,8 +49,7 @@ export default class GalleryPicture extends Vue { | |||
50 | } | 49 | } |
51 | 50 | ||
52 | noResult() { | 51 | noResult() { |
53 | const params = [this.otherCount, this.otherCount > 1 ? "s" : ""]; | 52 | return this.$tc("search.no-result-fmt", this.otherCount, [this.otherCount]); |
54 | return this.$t("search.no-results.otherfolders", params); | ||
55 | } | 53 | } |
56 | } | 54 | } |
57 | </script> | 55 | </script> |