From 8b67f92fd3700560e9365c4308330ca400b39931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 23 Jun 2017 10:11:22 +0200 Subject: [PATCH] Category: tag translations --- children.json | 4 ++-- gastro.json | 4 ++-- shop.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/children.json b/children.json index 8236df178..3d0f3ce95 100644 --- a/children.json +++ b/children.json @@ -4,7 +4,7 @@ "minZoom": 15, "feature": { "markerSign": "{% if tags.leisure=='playground' %}⛹{% elseif tags.leisure=='summer_camp'%}🏕{% elseif tags.leisure=='indoor_play' or tags.kids_area %}🏠{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}{% elseif tags.amenity=='toilets' and tags.diaper %}🚽🚼{% endif %}", - "body": "{% if tags.leisure=='playground' %}playground{% elseif tags.leisure=='summer_camp'%}summer_camp{% elseif tags.leisure=='indoor_play' %}indoor_play{% elseif tags.kids_area %}kids_area{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}shop for {{ tags.shop }}{% elseif tags.amenity=='toilets' and tags.diaper %}toilets with diaper changing table{% endif %}", - "description": "{% if tags.leisure=='playground' %}playground{% elseif tags.leisure=='summer_camp'%}summer_camp{% elseif tags.leisure=='indoor_play' %}indoor_play{% elseif tags.kids_area %}kids_area{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}shop for {{ tags.shop }}{% elseif tags.amenity=='toilets' and tags.diaper %}toilets with diaper changing table{% endif %}" + "body": "{% if tags.leisure=='playground' %}{{ tagTrans('leisure', 'playground') }}{% elseif tags.leisure=='summer_camp'%}{{ tagTrans('leisure', 'summer_camp') }}{% elseif tags.leisure=='indoor_play' %}{{ tagTrans('leisure', 'indoor_play') }}{% elseif tags.kids_area %}{{ tagTrans('kids_area') }}{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}{{ tagTrans('shop') }}: {{ tagTrans('shop', tags.shop) }}{% elseif tags.amenity=='toilets' and tags.diaper %}{{ tagTrans('amenity', 'toilets') }} with diaper changing table{% endif %}", + "description": "{% if tags.leisure=='playground' %}{{ tagTrans('leisure', 'playground') }}{% elseif tags.leisure=='summer_camp'%}{{ tagTrans('leisure', 'summer_camp') }}{% elseif tags.leisure=='indoor_play' %}{{ tagTrans('leisure', 'indoor_play') }}{% elseif tags.kids_area %}{{ tagTrans('kids_area') }}{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}{{ tagTrans('shop') }}: {{ tagTrans('shop', tags.shop) }}{% elseif tags.amenity=='toilets' and tags.diaper %}{{ tagTrans('amenity', 'toilets') }} with diaper changing table{% endif %}" } } diff --git a/gastro.json b/gastro.json index 1cf1d23df..19a361977 100644 --- a/gastro.json +++ b/gastro.json @@ -4,7 +4,7 @@ "minZoom": 16, "feature": { "markerSign": "{% if tags.amenity=='bar' %}🍸{% elseif tags.amenity=='biergarten'%}🍻{% elseif tags.amenity=='cafe' %}☕{% elseif tags.amenity=='fast_food' %}🍔{% elseif tags.amenity=='ice_cream' %}🍨{% elseif tags.amenity=='pub' %}🍺{% else %}🍴{% endif %}", - "body": "{{ tags.amenity }}
Cuisine: {{ tags.cuisine|default('unknown') }}", - "description": "{{ tags.amenity }}" + "body": "{{ tagTrans('amenity', tags.amenity) }}
{{ tagTrans('cuisine') }}: {{ tagTrans('cuisine', tags.cuisine)|default('unknown') }}", + "description": "{{ tagTrans('amenity', tags.amenity) }}" } } diff --git a/shop.json b/shop.json index 6c06ef5f9..dadc6bb3d 100644 --- a/shop.json +++ b/shop.json @@ -3,8 +3,8 @@ "query": "(node[shop];way[shop];relation[shop];);", "minZoom": 16, "feature": { - "body": "{{ tags.shop }}", - "description": "{{ tags.shop }}", + "body": "{{ tagTrans('shop', tags.shop) }}", + "description": "{{ tagTrans('shop', tags.shop) }}", "markerSign": "{% set c = { alcohol: 'fa-beer', baby_goods: '🚼', bag: 'fa-shopping-bag', bakery: 'fa-birthday-cake', beverages: 'fa-beer', boutique: '👚', butcher: 'fa-cutlery', cheese: 'fa-cutlery', chocolate: 'fa-cutlery', clothes: '👚', coffee: 'ia-coffee', confectionery: 'fa-birthday-cake', convenience: 'fa-shopping-basket', deli: 'fa-cutlery', dairy: 'fa-cutlery', department_store: 'fa-building', fabric: '👚', farm: 'fa-cutlery', fashion: '👚', general: 'fa-shopping-bag', greengrocer: 'fa-cutlery', hairdresser: '👱', ice_cream: '🍨', jewelry: '💍', kiosk: 'fa-newspaper-o', leather: '👚', mall: 'fa-building', pasta: 'fa-cutlery', pastry: 'fa-birthday-cake', seafood: 'fa-cutlery', sewing: '👚', shoes: '👟', spices: 'fa-cutlery', supermarket: 'fa-shopping-cart', tailor: '👚', tea: 'fa-coffee', watches: '⌚' }[tags.shop]|default('fa-shopping-bag') %}{% if c|slice(0, 3) == 'fa-' %}{% else %}{{ c|raw }}{% endif %}", "__": "need better icons for: bakery, butcher, cheese, ice_cream, ", "__": "no icons for: brewing_supplies, charity, second_hand, variety_store"