From f0742ab81266411158e97a5d1f2bfdd42456b3ff Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 1 Mar 2021 21:14:22 +0100 Subject: [PATCH] Less options for picnic tables, add dutch translation --- Models/Constants.ts | 2 +- assets/layers/benches/picnic_tables.json | 41 +++++++++++++++--------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/Models/Constants.ts b/Models/Constants.ts index 62ce66e..f3f1faa 100644 --- a/Models/Constants.ts +++ b/Models/Constants.ts @@ -2,7 +2,7 @@ import { Utils } from "../Utils"; export default class Constants { - public static vNumber = "0.5.4c"; + public static vNumber = "0.5.5"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = { diff --git a/assets/layers/benches/picnic_tables.json b/assets/layers/benches/picnic_tables.json index 02531a4..6bc4f25 100644 --- a/assets/layers/benches/picnic_tables.json +++ b/assets/layers/benches/picnic_tables.json @@ -1,7 +1,8 @@ { "id": "picnic_tables", "name": { - "en": "Picnic tables" + "en": "Picnic tables", + "nl": "Picnictafels" }, "minzoom": 12, "overpassTags": { @@ -11,19 +12,23 @@ }, "title": { "render": { - "en": "Picnic table" + "en": "Picnic table", + "nl": "Picnictafel" } }, "description": { - "en": "The layer showing picnic tables" + "en": "The layer showing picnic tables", + "nl": "Deze laag toont picnictafels" }, "tagRenderings": [ { "question": { - "en": "What material is this picnic table made of?" + "en": "What material is this picnic table made of?", + "nl": "Van welk materiaal is deze picnictafel gemaakt?" }, "render": { - "en": "This picnic table is made of {material}" + "en": "This picnic table is made of {material}", + "nl": "Deze picnictafel is gemaakt van {material}" }, "freeform": { "key": "material" @@ -36,7 +41,19 @@ ] }, "then": { - "en": "This is a wooden picnic table" + "en": "This is a wooden picnic table", + "nl": "Deze picnictafel is gemaakt uit hout" + } + }, + { + "if": { + "and": [ + "material=concrete" + ] + }, + "then": { + "en": "This is a concrete picnic table", + "nl": "Deze picnictafel is gemaakt uit beton" } } ] @@ -61,16 +78,8 @@ "leisure=picnic_table" ], "title": { - "en": "Picnic table" - } - }, - { - "tags": [ - "leisure=picnic_table", - "material=wood" - ], - "title": { - "en": "Wooden picnic table" + "en": "Picnic table", + "nl": "Picnic-tafel" } } ],