From 99effc880b49240351215958e5bd536037232b31 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 8 May 2024 18:46:47 +0200 Subject: [PATCH] wip: rename facet by filters in user facing labels --- umap/static/umap/js/umap.core.js | 4 ++-- umap/static/umap/js/umap.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/umap/static/umap/js/umap.core.js b/umap/static/umap/js/umap.core.js index 11d1dc53..2180b05c 100644 --- a/umap/static/umap/js/umap.core.js +++ b/umap/static/umap/js/umap.core.js @@ -556,9 +556,9 @@ U.Help = L.Class.extend({ 'Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.' ), slugKey: L._('The name of the property to use as feature unique identifier.'), - filterKey: L._('Comma separated list of properties to use when filtering features'), + filterKey: L._('Comma separated list of properties to use when filtering features by text input'), facetKey: L._( - 'Comma separated list of properties to use for facet search (eg.: mykey,otherkey). To control label, add it after a | (eg.: mykey|My Key,otherkey|Other Key). To control input field type, add it after another | (eg.: mykey|My Key|checkbox,otherkey|Other Key|datetime). Allowed values for the input field type are checkbox (default), radio, number, date and datetime.' + 'Comma separated list of properties to use for filters (eg.: mykey,otherkey). To control label, add it after a | (eg.: mykey|My Key,otherkey|Other Key). To control input field type, add it after another | (eg.: mykey|My Key|checkbox,otherkey|Other Key|datetime). Allowed values for the input field type are checkbox (default), radio, number, date and datetime.' ), interactive: L._( 'If false, the polygon or line will act as a part of the underlying map.' diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index e7e02465..bcb6b2e6 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -1222,7 +1222,7 @@ U.Map = L.Map.extend({ handler: 'Input', helpEntries: 'filterKey', placeholder: L._('Default: name'), - label: L._('Filter keys'), + label: L._('Search keys'), inheritable: true, }, ], @@ -1232,7 +1232,7 @@ U.Map = L.Map.extend({ handler: 'BlurInput', helpEntries: 'facetKey', placeholder: L._('Example: key1,key2|Label 2,key3|Label 3|checkbox'), - label: L._('Facet keys'), + label: L._('Filters keys'), }, ], [ @@ -1601,7 +1601,7 @@ U.Map = L.Map.extend({ L.DomUtil.createButton( 'umap-open-filter-link flat', container, - L._('Select data'), + L._('Filter data'), () => this.openBrowser('filters') ) }