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 | |
parent | 07d78c126e9fb8d1129d728df9347b2c94f2c707 (diff) | |
download | ldgallery-09624c0089f0e29ffb1abc578525b6a07fd95e81.tar.gz |
viewer/GallerySearch: use proper i18n pluralisation
Diffstat (limited to 'viewer/src')
-rw-r--r-- | viewer/src/locales/en.json | 3 | ||||
-rw-r--r-- | viewer/src/views/GallerySearch.vue | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/viewer/src/locales/en.json b/viewer/src/locales/en.json index 9e0fd4b..e6c1df2 100644 --- a/viewer/src/locales/en.json +++ b/viewer/src/locales/en.json | |||
@@ -1,8 +1,7 @@ | |||
1 | { | 1 | { |
2 | "tagInput.placeholder": "Filters", | 2 | "tagInput.placeholder": "Filters", |
3 | "tagInput.nomatch": "No match", | 3 | "tagInput.nomatch": "No match", |
4 | "search.no-results": "No results", | 4 | "search.no-result-fmt": "No result<br>({0} match in other folders) | No result<br>({0} matches in other folders)", |
5 | "search.no-results.otherfolders": "No results • {0} result{1} in other folders", | ||
6 | "panelLeft.propositions": "Related filters", | 5 | "panelLeft.propositions": "Related filters", |
7 | "tag-propositions.substraction": "Exclude items with this tag", | 6 | "tag-propositions.substraction": "Exclude items with this tag", |
8 | "tag-propositions.addition": "Include all items with this tag", | 7 | "tag-propositions.addition": "Include all items with this tag", |
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> |