From 9c09da3c137a6af88b935108fe55aa8e1163ed2c Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 17 Sep 2024 02:35:07 +0200 Subject: [PATCH] Themes(note): add filter removing anything matching one or more keywords --- assets/layers/note/note.json | 17 +++++++++++++++++ langs/layers/ca.json | 22 +++++++++++----------- langs/layers/cs.json | 22 +++++++++++----------- langs/layers/da.json | 2 +- langs/layers/de.json | 27 ++++++++++++--------------- langs/layers/en.json | 23 +++++++++++++++-------- langs/layers/es.json | 22 +++++++++++----------- langs/layers/fr.json | 22 +++++++++++----------- langs/layers/nl.json | 22 +++++++++++----------- 9 files changed, 100 insertions(+), 79 deletions(-) diff --git a/assets/layers/note/note.json b/assets/layers/note/note.json index 9405256f86..39e251fec8 100644 --- a/assets/layers/note/note.json +++ b/assets/layers/note/note.json @@ -291,6 +291,23 @@ } ] }, + { + "id": "search_not_any", + "options": [ + { + "osmTags": "_all_comments!~i~.*{search}.*", + "fields": [ + { + "name": "search" + } + ], + "question": { + "en": "Should not mention {search} in any comment" + } + } + ] + }, + { "id": "opened_by", "options": [ diff --git a/langs/layers/ca.json b/langs/layers/ca.json index e92ff82db6..32b1ce0dbe 100644 --- a/langs/layers/ca.json +++ b/langs/layers/ca.json @@ -5137,14 +5137,21 @@ } } }, - "11": { + "10": { + "options": { + "0": { + "question": "Editat per última vega pel contribuïdor {search}" + } + } + }, + "12": { "options": { "0": { "question": "Creada abans de {search}" } } }, - "12": { + "13": { "options": { "0": { "question": "Creada després de {search}" @@ -5178,26 +5185,19 @@ } } }, - "6": { + "7": { "options": { "0": { "question": "Obert pel contribuïdor {search}" } } }, - "7": { + "8": { "options": { "0": { "question": "No obert pel contribuïdor {search}" } } - }, - "9": { - "options": { - "0": { - "question": "Editat per última vega pel contribuïdor {search}" - } - } } }, "name": "Notes d'OpenStreetMap", diff --git a/langs/layers/cs.json b/langs/layers/cs.json index f0cf51d7fd..72389b3711 100644 --- a/langs/layers/cs.json +++ b/langs/layers/cs.json @@ -5363,14 +5363,21 @@ } } }, - "11": { + "10": { + "options": { + "0": { + "question": "Naposledy upravil přispěvatel {search}" + } + } + }, + "12": { "options": { "0": { "question": "Vytvořeno před {search}" } } }, - "12": { + "13": { "options": { "0": { "question": "Vytvořeno po {search}" @@ -5404,26 +5411,19 @@ } } }, - "6": { + "7": { "options": { "0": { "question": "Otevřeno přispěvatelem {search}" } } }, - "7": { + "8": { "options": { "0": { "question": "Není otevřeno přispěvatelem {search}" } } - }, - "9": { - "options": { - "0": { - "question": "Naposledy upravil přispěvatel {search}" - } - } } }, "name": "Poznámky OpenStreetMap", diff --git a/langs/layers/da.json b/langs/layers/da.json index 2d570bcc66..9ea5bbee4b 100644 --- a/langs/layers/da.json +++ b/langs/layers/da.json @@ -1633,7 +1633,7 @@ }, "note": { "filter": { - "9": { + "10": { "options": { "0": { "question": "Senest redigeret af bidragsyder {search}" diff --git a/langs/layers/de.json b/langs/layers/de.json index 378413c6b2..5a57184471 100644 --- a/langs/layers/de.json +++ b/langs/layers/de.json @@ -5176,9 +5176,6 @@ "4": { "then": "Sandwichladen" }, - "5": { - "then": "Burgerrestaurant" - }, "6": { "then": "Hier wird Sushi serviert" }, @@ -6773,14 +6770,21 @@ } } }, - "11": { + "10": { + "options": { + "0": { + "question": "Zuletzt bearbeitet von {search}" + } + } + }, + "12": { "options": { "0": { "question": "Erstellt vor dem {search}" } } }, - "12": { + "13": { "options": { "0": { "question": "Erstellt nach dem {search}" @@ -6814,26 +6818,19 @@ } } }, - "6": { + "7": { "options": { "0": { "question": "Erstellt von {search}" } } }, - "7": { + "8": { "options": { "0": { "question": "Nicht erstellt von {search}" } } - }, - "9": { - "options": { - "0": { - "question": "Zuletzt bearbeitet von {search}" - } - } } }, "name": "OpenStreetMap-Hinweise", @@ -12231,4 +12228,4 @@ "render": "Windrad" } } -} +} \ No newline at end of file diff --git a/langs/layers/en.json b/langs/layers/en.json index 5dc29a970e..c67d85317d 100644 --- a/langs/layers/en.json +++ b/langs/layers/en.json @@ -6786,32 +6786,39 @@ "10": { "options": { "0": { - "question": "Not edited as last by {search}" + "question": "Last edited by contributor {search}" } } }, "11": { "options": { "0": { - "question": "Created before {search}" + "question": "Not edited as last by {search}" } } }, "12": { "options": { "0": { - "question": "Created after {search}" + "question": "Created before {search}" } } }, "13": { "options": { "0": { - "question": "Last edited before {search}" + "question": "Created after {search}" } } }, "14": { + "options": { + "0": { + "question": "Last edited before {search}" + } + } + }, + "15": { "options": { "0": { "question": "Last edited after {search}" @@ -6855,28 +6862,28 @@ "6": { "options": { "0": { - "question": "Opened by contributor {search}" + "question": "Should not mention {search} in any comment" } } }, "7": { "options": { "0": { - "question": "Not opened by contributor {search}" + "question": "Opened by contributor {search}" } } }, "8": { "options": { "0": { - "question": "Edited or commented on by any user with name {search}" + "question": "Not opened by contributor {search}" } } }, "9": { "options": { "0": { - "question": "Last edited by contributor {search}" + "question": "Edited or commented on by any user with name {search}" } } } diff --git a/langs/layers/es.json b/langs/layers/es.json index 5a98818705..0279b5b2db 100644 --- a/langs/layers/es.json +++ b/langs/layers/es.json @@ -3146,14 +3146,21 @@ } } }, - "11": { + "10": { + "options": { + "0": { + "question": "Editada por última vez por el contributor {search}" + } + } + }, + "12": { "options": { "0": { "question": "Creada antes de {search}" } } }, - "12": { + "13": { "options": { "0": { "question": "Creada después de {search}" @@ -3187,26 +3194,19 @@ } } }, - "6": { + "7": { "options": { "0": { "question": "Abierto por el contributor {search}" } } }, - "7": { + "8": { "options": { "0": { "question": "No abierto por el contributor {search}" } } - }, - "9": { - "options": { - "0": { - "question": "Editada por última vez por el contributor {search}" - } - } } }, "name": "Notas de OpenStreetMap", diff --git a/langs/layers/fr.json b/langs/layers/fr.json index 0a320cd472..42d05b6af2 100644 --- a/langs/layers/fr.json +++ b/langs/layers/fr.json @@ -4439,14 +4439,21 @@ } } }, - "11": { + "10": { + "options": { + "0": { + "question": "Dernière modification par {search}" + } + } + }, + "12": { "options": { "0": { "question": "Créée avant le {search}" } } }, - "12": { + "13": { "options": { "0": { "question": "Créée après le {search}" @@ -4460,26 +4467,19 @@ } } }, - "6": { + "7": { "options": { "0": { "question": "Ouverte par {search}" } } }, - "7": { + "8": { "options": { "0": { "question": "Exclureles notes ouvertes par {search}" } } - }, - "9": { - "options": { - "0": { - "question": "Dernière modification par {search}" - } - } } }, "name": "Notes OpenStreetMap", diff --git a/langs/layers/nl.json b/langs/layers/nl.json index fb412fb08c..6936378376 100644 --- a/langs/layers/nl.json +++ b/langs/layers/nl.json @@ -5534,14 +5534,21 @@ } } }, - "11": { + "10": { + "options": { + "0": { + "question": "Laatst bewerkt door bijdrager {search}" + } + } + }, + "12": { "options": { "0": { "question": "Aangemaakt voor {search}" } } }, - "12": { + "13": { "options": { "0": { "question": "Aangemaakt na {search}" @@ -5575,26 +5582,19 @@ } } }, - "6": { + "7": { "options": { "0": { "question": "Geopend door bijdrager {search}" } } }, - "7": { + "8": { "options": { "0": { "question": "Niet geopend door bijdrager {search}" } } - }, - "9": { - "options": { - "0": { - "question": "Laatst bewerkt door bijdrager {search}" - } - } } }, "name": "OpenStreetMap Notes",