From f572a86e04b797db0e65fc5d6325c2d4d63028e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 20 Jan 2022 19:17:57 +0100 Subject: [PATCH] communication: warn for deprecated tagging vending=parcel_pickup;parcel_mail_in --- communication.json | 6 +++++- lang/en.json | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/communication.json b/communication.json index 3382980b..2168b38a 100644 --- a/communication.json +++ b/communication.json @@ -40,6 +40,7 @@ "{% if tags.vending %}", " {% set key = 'amenity' %}", " {% set value = 'parcel_locker' %}", + " {% set deprecated = ['vending=' ~ tags.vending, 'https://wiki.openstreetmap.org/wiki/Proposed_features/amenity%3Dparcel_locker'] %}", "{% elseif tags.amenity %}", " {% set key = 'amenity' %}", " {% set value = tags.amenity %}", @@ -55,7 +56,10 @@ " {{ tagTransList(key, value) }}", "{% endif %}" ], - "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}
{% endif %}", + "body": [ + "{% if deprecated %}
{{ repoTrans('deprecated', deprecated[0], deprecated[1])|raw }}
{% endif %}", + "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}
{% endif %}" + ], "markerSign": [ "{% set data = const[key ~ '=' ~ value] %}", "{% if data %}", diff --git a/lang/en.json b/lang/en.json index c97dad07..1c34a2f1 100644 --- a/lang/en.json +++ b/lang/en.json @@ -96,5 +96,6 @@ "category:xmas": "Christmas", "date format not understood": "Invalid Date Format", "outdated feature": "Features outdated", - "xmas:outdated-warning": "Feature has not been updated for the current season! Please check and set the tag 'xmas:lastcheck' to the current date." + "xmas:outdated-warning": "Feature has not been updated for the current season! Please check and set the tag 'xmas:lastcheck' to the current date.", + "deprecated": "Tag %s is deprecated. See here for details." }