aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views
diff options
context:
space:
mode:
authorZero~Informatique2020-02-27 19:20:51 +0100
committerZero~Informatique2020-02-27 19:20:51 +0100
commit27a7bebc32a527cc86857008b491b9571e807183 (patch)
treef1fe3ccefe2b49bbb80e4351aede83b834503b58 /viewer/src/views
parent5c88a08ee28ea37054144c336b14e55ab957f844 (diff)
downloadldgallery-27a7bebc32a527cc86857008b491b9571e807183.tar.gz
viewer: added a count of results found in other folders when no-results are found
Using list formatting for the no-result translation, instead of string concatenation
Diffstat (limited to 'viewer/src/views')
-rw-r--r--viewer/src/views/GallerySearch.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/viewer/src/views/GallerySearch.vue b/viewer/src/views/GallerySearch.vue
index 9f2ac17..d638df2 100644
--- a/viewer/src/views/GallerySearch.vue
+++ b/viewer/src/views/GallerySearch.vue
@@ -49,7 +49,8 @@ export default class GalleryPicture extends Vue {
49 } 49 }
50 50
51 noResult() { 51 noResult() {
52 return `${this.$t("search.no-results")} • ${this.otherCount} ${this.$t("search.no-results.otherfolders")}`; 52 const params = [this.otherCount, this.otherCount > 1 ? "s" : ""];
53 return this.$t("search.no-results.otherfolders", params);
53 } 54 }
54} 55}
55</script> 56</script>