From cb1e436b69ef4a182aa6b492104dd5cf1c2c9bcd Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 19 Jul 2022 12:06:57 +0200 Subject: [PATCH] Small fixes to the entrances --- assets/layers/entrance/entrance.json | 45 +++++++++++++++++++++------- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/assets/layers/entrance/entrance.json b/assets/layers/entrance/entrance.json index 8683d4106..053393634 100644 --- a/assets/layers/entrance/entrance.json +++ b/assets/layers/entrance/entrance.json @@ -344,28 +344,25 @@ { "id": "kerb-height", "question": { - "en": "What is the height of this kerb?", - "nl": "Hoe hoog is deze stoeprand?", - "de": "Wie hoch ist der Bordstein?" + "en": "What is the height of this kerb?" }, "render": { - "en": "Kerb height: {kerb:height}", - "nl": "Stoeprandhoogte: {kerb:height}", - "de": "Bordsteinhöhe: {kerb:height}" + "en": "The kerb height of this door is {kerb:height}" }, "freeform": { "key": "kerb:height", "placeholder": { - "en": "Height of the kerb", - "nl": "Hoogte van de stoeprand", - "de": "Höhe des Bordsteins" + "en": "Height of the door kerb" }, "type": "pnat" }, "mappings": [ { "if": "kerb-height=", - "then": "kerb-height=0" + "then": { + "en": "This door does not have a kerb", + "nl": "Deze deur heeft geen drempel" + } } ] } @@ -403,5 +400,33 @@ "entrance=yes" ] } + ], + "units": [ + { + "appliesToKey": [ + "kerb:height" + ], + "applicableUnits": [ + { + "canonicalDenomination": "m", + "alternativeDenomination": [ + "meter" + ], + "human": { + "en": "meter" + } + }, + { + "canonicalDenomination": "cm", + "alternativeDenomination": [ + "centimeter", + "cms" + ], + "human": { + "en": "centimeter" + } + } + ] + } ] } \ No newline at end of file