From eed12fdf875918d243a84557ff1fd305e71d37ac Mon Sep 17 00:00:00 2001 From: 3st3ban3 Date: Wed, 22 Feb 2023 17:36:22 +0100 Subject: [PATCH] Update wording to avoid confusion for data checkboxes --- umap/static/umap/js/umap.js | 6 +++--- umap/static/umap/locale/fr.js | 1 + umap/static/umap/locale/fr.json | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 89bcb857..7365afac 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -969,7 +969,7 @@ L.U.Map.include({ var filter = L.DomUtil.create('li', ''); L.DomUtil.create('i', 'umap-icon-16 umap-add', filter); var labelFilter = L.DomUtil.create('span', '', filter); - labelFilter.textContent = labelFilter.title = L._('Filter data'); + labelFilter.textContent = labelFilter.title = L._('Select data'); L.DomEvent.on(filter, 'click', this.openFilter, this); actions.push(filter) } @@ -1471,7 +1471,7 @@ L.U.Map.include({ L.DomEvent.on(browser, 'click', L.DomEvent.stop) .on(browser, 'click', this.openBrowser, this); if (this.options.advancedFilterKey) { - var filter = L.DomUtil.add('a', 'umap-open-filter-link', container, ' | ' + L._('Filter data')); + var filter = L.DomUtil.add('a', 'umap-open-filter-link', container, ' | ' + L._('Select data')); filter.href = '#'; L.DomEvent.on(filter, 'click', L.DomEvent.stop) .on(filter, 'click', this.openFilter, this); @@ -1663,7 +1663,7 @@ L.U.Map.include({ }); if (this.options.advancedFilterKey) { items.push({ - text: L._('Filter data'), + text: L._('Select data'), callback: this.openFilter }) } diff --git a/umap/static/umap/locale/fr.js b/umap/static/umap/locale/fr.js index 08d54ad8..bce3005f 100644 --- a/umap/static/umap/locale/fr.js +++ b/umap/static/umap/locale/fr.js @@ -262,6 +262,7 @@ var locale = { "See all": "Tout voir", "See data layers": "Voir les calques", "See full screen": "Voir en plein écran", + "Select data": "Sélectionner les données", "Set it to false to hide this layer from the slideshow, the data browser, the popup navigation…": "Désactiver pour masquer ce calque du diaporama, du navigateur de données…", "Shape properties": "Propriétés de la forme", "Short URL": "URL courte", diff --git a/umap/static/umap/locale/fr.json b/umap/static/umap/locale/fr.json index 176e8027..e1b11741 100644 --- a/umap/static/umap/locale/fr.json +++ b/umap/static/umap/locale/fr.json @@ -262,6 +262,7 @@ "See all": "Tout voir", "See data layers": "Voir les calques", "See full screen": "Voir en plein écran", + "Select data": "Sélectionner les données", "Set it to false to hide this layer from the slideshow, the data browser, the popup navigation…": "Désactiver pour masquer ce calque du diaporama, du navigateur de données…", "Shape properties": "Propriétés de la forme", "Short URL": "URL courte",