From c52feb548d608ffa0719853bb4f109e97efb27f6 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 8 Sep 2023 23:17:18 +0200 Subject: [PATCH] Renaming min/max persons to faces #587 --- docs/index.html | 2 ++ src/frontend/app/ui/EnumTranslations.ts | 4 ++-- .../app/ui/gallery/search/search-query-parser.service.ts | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/index.html b/docs/index.html index 72af93c8..ed4689ce 100644 --- a/docs/index.html +++ b/docs/index.html @@ -135,6 +135,8 @@ maxRating:5
minResolution:1
maxResolution:10
+ minResolution:1
+ maxResolution:10
keyword:"house"
caption:"caption"
diff --git a/src/frontend/app/ui/EnumTranslations.ts b/src/frontend/app/ui/EnumTranslations.ts index ccab7bba..8903276f 100644 --- a/src/frontend/app/ui/EnumTranslations.ts +++ b/src/frontend/app/ui/EnumTranslations.ts @@ -71,8 +71,8 @@ EnumTranslations[SearchQueryTypes[SearchQueryTypes.to_date]] = $localize`Until`; EnumTranslations[SearchQueryTypes[SearchQueryTypes.distance]] = $localize`Distance`; EnumTranslations[SearchQueryTypes[SearchQueryTypes.min_rating]] = $localize`Min rating`; EnumTranslations[SearchQueryTypes[SearchQueryTypes.max_rating]] = $localize`Max rating`; -EnumTranslations[SearchQueryTypes[SearchQueryTypes.min_person_count]] = $localize`Min persons`; -EnumTranslations[SearchQueryTypes[SearchQueryTypes.max_person_count]] = $localize`Max persons`; +EnumTranslations[SearchQueryTypes[SearchQueryTypes.min_person_count]] = $localize`Min faces`; +EnumTranslations[SearchQueryTypes[SearchQueryTypes.max_person_count]] = $localize`Max faces`; EnumTranslations[SearchQueryTypes[SearchQueryTypes.min_resolution]] = $localize`Min resolution`; EnumTranslations[SearchQueryTypes[SearchQueryTypes.max_resolution]] = $localize`Max resolution`; EnumTranslations[SearchQueryTypes[SearchQueryTypes.directory]] = $localize`Directory`; diff --git a/src/frontend/app/ui/gallery/search/search-query-parser.service.ts b/src/frontend/app/ui/gallery/search/search-query-parser.service.ts index abfdc91c..5cd17c6b 100644 --- a/src/frontend/app/ui/gallery/search/search-query-parser.service.ts +++ b/src/frontend/app/ui/gallery/search/search-query-parser.service.ts @@ -17,8 +17,8 @@ export class SearchQueryParserService { landscape: 'landscape', maxRating: 'max-rating', minRating: 'min-rating', - minPersonCount: 'min-persons', - maxPersonCount: 'max-persons', + minPersonCount: 'min-faces', + maxPersonCount: 'max-faces', maxResolution: 'max-resolution', minResolution: 'min-resolution', orientation: 'orientation',