Browse Source

communication: warn for deprecated tagging vending=parcel_pickup;parcel_mail_in

pedestrian
parent
commit
3842f2dd4a
  1. 6
      communication.json
  2. 3
      lang/en.json

6
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') }}<br/>{% endif %}",
"body": [
"{% if deprecated %}<div class='warning'>{{ repoTrans('deprecated', deprecated[0], deprecated[1])|raw }}</div>{% endif %}",
"{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}"
],
"markerSign": [
"{% set data = const[key ~ '=' ~ value] %}",
"{% if data %}",

3
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 <a target='_blank' href=\"%s\">here</a> for details."
}
Loading…
Cancel
Save