diff options
-rw-r--r-- | viewer/src/locales/en.json | 6 | ||||
-rw-r--r-- | viewer/src/views/GallerySearch.vue | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/viewer/src/locales/en.json b/viewer/src/locales/en.json index 81ddd1e..58adcd2 100644 --- a/viewer/src/locales/en.json +++ b/viewer/src/locales/en.json | |||
@@ -2,6 +2,7 @@ | |||
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-results": "No results", |
5 | "search.no-results.otherfolders": "No results • {0} result{1} in other folders", | ||
5 | "panelLeft.propositions": "Related filters", | 6 | "panelLeft.propositions": "Related filters", |
6 | "tag-propositions.substraction": "Exclude items with this tag", | 7 | "tag-propositions.substraction": "Exclude items with this tag", |
7 | "tag-propositions.addition": "Include all items with this tag", | 8 | "tag-propositions.addition": "Include all items with this tag", |
@@ -13,6 +14,5 @@ | |||
13 | "command.search.search": "Search", | 14 | "command.search.search": "Search", |
14 | "command.back": "Go back", | 15 | "command.back": "Go back", |
15 | "command.parent": "Go to parent directory", | 16 | "command.parent": "Go to parent directory", |
16 | "directory.no-results": "Empty directory", | 17 | "directory.no-results": "Empty directory" |
17 | "search.no-results.otherfolders": "result(s) in other folders" | 18 | } |
18 | } \ No newline at end of file | ||
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> |