From 371ca42047cf625bcb8802cd48ad102ffd7eac30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Wed, 11 Jul 2018 21:49:08 +0200 Subject: [PATCH] pt: sub lists --- pt.json | 50 ++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/pt.json b/pt.json index 0ed5eb157..29cbfa7f1 100644 --- a/pt.json +++ b/pt.json @@ -19,18 +19,43 @@ "pt-br": "Transporte Público", "pt": "Transportes públicos" }, - "name_routes": { - "de": "Routen", - "en": "Routes", - "fr": "Lignes", - "pt": "Rotas", - "pt-br": "Rotas" - }, "query": { "12": "relation[type=route][route~\"^(subway|monorail|ferry|train)$\"];", "14": "relation[type=route][route~\"^(subway|monorail|aerialway|bus|trolleybus|ferry|train|tram)$\"];" }, "members": true, + "lists": { + "stops": { + "prefix": "listStops", + "name": { + "ast": "Paraes y estaciones", + "cs": "Zastávky & Stanice", + "de": "Haltestellen", + "el": "Στάσεις & Σταθμοί", + "en": "Stops & Stations", + "es": "Paradas y estaciones", + "fr": "Arrêts/Stops, Stations", + "hu": "Megállók és állomások", + "it": "Stazioni e fermate", + "ja": "停留所と駅", + "nl": "Haltes en Stations", + "pl": "Przystanki i Stacje", + "pt-br": "Paradas e Estações", + "ru": "Остановки и станции", + "uk": "Зупинки та станції" + } + }, + "routes": { + "prefix": "listRoutes", + "name": { + "de": "Routen", + "en": "Routes", + "fr": "Lignes", + "pt": "Rotas", + "pt-br": "Rotas" + } + } + }, "feature": { "styles": "", "title": [ @@ -40,19 +65,20 @@ ], "description": "{{ tagTrans('route', tags.route) }}", "body": [ - "

Stops

", + "

Stops {{ map.zoom }}

", "{% for member in members %}", "{% if member.role|slice(-4) == 'stop' %}", "
{{ member.tags.name }}
", "{% endif %}", "{% endfor %}" ], - "listMarkerSign": "{{ const[tags.route].sign|raw }}", + "listStopsExclude": "true", + "listRoutesMarkerSign": "{{ const[tags.route].sign|raw }}", "markerSymbol": null, - "listMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}" + "listRoutesMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}" }, "memberFeature": { - "listMarkerSymbol": "{{ markerCircle({})|raw }}", + "listStopsMarkerSymbol": "{{ markerCircle({})|raw }}", "style": { "color": [ "{% set master = masters[0] %}", @@ -61,7 +87,7 @@ "width": "{% if map.zoom>=15 %}5{% else %}3{% endif %}" }, "title": "{% if tags.public_transport == 'stop_position' %}{{ tags.name }}{% endif %}", - "listStopsTitle": "{{ tags.name }}: {% for master in masters %}{{ master.tags.ref }} {% endfor %}", + "listStopsTitle": "{{ tags.name }}
{% for master in masters %}{{ master.tags.ref }} {% endfor %}", "body": [ "{% for master in masters %}", " '
{{ master.tags.name|default(master.tags.ref) }} ({{ master.id }})
",