From a53a0f3b6f88db7dfbd3192c54343b0fea9c6144 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 26 Sep 2021 18:16:18 +0200 Subject: [PATCH] Add translation names in an automated way --- assets/layers/bench/bench.json | 18 ++++++--- assets/layers/bench_at_pt/bench_at_pt.json | 6 ++- .../bicycle_library/bicycle_library.json | 6 ++- .../bicycle_tube_vending_machine.json | 9 +++-- assets/layers/bike_cafe/bike_cafe.json | 15 ++++--- .../layers/bike_cleaning/bike_cleaning.json | 6 ++- .../bike_repair_station.json | 15 ++++--- assets/layers/bike_shop/bike_shop.json | 18 ++++++--- assets/layers/binocular/binocular.json | 6 ++- assets/layers/birdhide/birdhide.json | 3 +- .../cycleways_and_roads.json | 3 +- .../layers/defibrillator/defibrillator.json | 39 ++++++++++++------- assets/layers/ghost_bike/ghost_bike.json | 12 ++++-- assets/layers/map/map.json | 3 +- assets/layers/picnic_table/picnic_table.json | 3 +- assets/layers/play_forest/play_forest.json | 9 +++-- assets/layers/playground/playground.json | 21 ++++++---- .../public_bookcase/public_bookcase.json | 21 ++++++---- assets/layers/slow_roads/slow_roads.json | 3 +- assets/layers/sport_pitch/sport_pitch.json | 15 ++++--- assets/layers/toilet/toilet.json | 9 +++-- assets/layers/tree_node/tree_node.json | 9 +++-- assets/layers/viewpoint/viewpoint.json | 3 +- 23 files changed, 168 insertions(+), 84 deletions(-) diff --git a/assets/layers/bench/bench.json b/assets/layers/bench/bench.json index a18a31723..5a94c40ad 100644 --- a/assets/layers/bench/bench.json +++ b/assets/layers/bench/bench.json @@ -121,7 +121,8 @@ "nb_NO": "Har denne beken et rygglene?", "pl": "Czy ta ławka ma oparcie?", "pt_BR": "Este assento tem um escosto?" - } + }, + "id": "bench-backrest" }, { "render": { @@ -157,7 +158,8 @@ "nb_NO": "Hvor mange sitteplasser har denne benken?", "pl": "Ile siedzeń ma ta ławka?", "pt_BR": "Quantos assentos este banco tem?" - } + }, + "id": "bench-seats" }, { "render": { @@ -308,7 +310,8 @@ "zh_Hant": "這個長椅 (座位) 是什麼做的?", "pt_BR": "De que é feito o banco (assento)?", "pl": "Z czego wykonana jest ławka (siedzisko)?" - } + }, + "id": "bench-material" }, { "question": { @@ -340,7 +343,8 @@ "freeform": { "key": "direction", "type": "direction" - } + }, + "id": "bench-direction" }, { "render": { @@ -521,7 +525,8 @@ "pl": "Kolor: żółty" } } - ] + ], + "id": "bench-colour" }, { "question": { @@ -557,7 +562,8 @@ "if": "survey:date:={_now:date}", "then": "Surveyed today!" } - ] + ], + "id": "bench-survey:date" } ], "icon": { diff --git a/assets/layers/bench_at_pt/bench_at_pt.json b/assets/layers/bench_at_pt/bench_at_pt.json index e585bae45..f619ededa 100644 --- a/assets/layers/bench_at_pt/bench_at_pt.json +++ b/assets/layers/bench_at_pt/bench_at_pt.json @@ -106,7 +106,8 @@ }, "freeform": { "key": "name" - } + }, + "id": "bench_at_pt-name" }, { "render": { @@ -127,7 +128,8 @@ "and": [ "bench=stand_up_bench" ] - } + }, + "id": "bench_at_pt-bench" } ], "icon": { diff --git a/assets/layers/bicycle_library/bicycle_library.json b/assets/layers/bicycle_library/bicycle_library.json index f2751c175..ac01b7ee2 100644 --- a/assets/layers/bicycle_library/bicycle_library.json +++ b/assets/layers/bicycle_library/bicycle_library.json @@ -79,7 +79,8 @@ }, "freeform": { "key": "name" - } + }, + "id": "bicycle_library-name" }, "website", "phone", @@ -155,7 +156,8 @@ "pt_BR": "Emprestar uma bicicleta custa €20/ano e €20 de garantia" } } - ] + ], + "id": "bicycle_library-charge" }, { "question": { diff --git a/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json b/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json index f8aceeb7c..2f2f97f4e 100644 --- a/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json +++ b/assets/layers/bicycle_tube_vending_machine/bicycle_tube_vending_machine.json @@ -161,7 +161,8 @@ "render": "A bicycle tube costs {charge}", "freeform": { "key": "charge" - } + }, + "id": "bicycle_tube_vending_machine-charge" }, { "question": "How can one pay at this tube vending machine?", @@ -200,7 +201,8 @@ "then": "Schwalbe tubes are sold here" } ], - "multiAnswer": true + "multiAnswer": true, + "id": "bicycle_tube_vending_machine-brand" }, { "question": "Who maintains this vending machine?", @@ -217,7 +219,8 @@ ], "freeform": { "key": "operator" - } + }, + "id": "bicycle_tube_vending_machine-operator" }, { "question": "Are other bicycle bicycle accessories sold here?", diff --git a/assets/layers/bike_cafe/bike_cafe.json b/assets/layers/bike_cafe/bike_cafe.json index 93b07cd19..c4b2822c4 100644 --- a/assets/layers/bike_cafe/bike_cafe.json +++ b/assets/layers/bike_cafe/bike_cafe.json @@ -97,7 +97,8 @@ }, "freeform": { "key": "name" - } + }, + "id": "bike_cafe-name" }, { "question": { @@ -250,7 +251,8 @@ "render": "{website}", "freeform": { "key": "website" - } + }, + "id": "bike_cafe-website" }, { "question": { @@ -269,7 +271,8 @@ "freeform": { "key": "phone", "type": "phone" - } + }, + "id": "bike_cafe-phone" }, { "question": { @@ -288,7 +291,8 @@ "freeform": { "key": "email", "type": "email" - } + }, + "id": "bike_cafe-email" }, { "question": { @@ -305,7 +309,8 @@ "freeform": { "key": "opening_hours", "type": "opening_hours" - } + }, + "id": "bike_cafe-opening_hours" } ], "icon": { diff --git a/assets/layers/bike_cleaning/bike_cleaning.json b/assets/layers/bike_cleaning/bike_cleaning.json index bf92b1987..6c76d519b 100644 --- a/assets/layers/bike_cleaning/bike_cleaning.json +++ b/assets/layers/bike_cleaning/bike_cleaning.json @@ -114,7 +114,8 @@ "then": "The cleaning service has a fee" } ], - "roaming": true + "roaming": true, + "id": "bike_cleaning-service:bicycle:cleaning:charge" }, { "question": "How much does it cost to use the cleaning service?", @@ -141,7 +142,8 @@ "then": "The cleaning service has a fee" } ], - "roaming": false + "roaming": false, + "id": "bike_cleaning-charge" } ] } \ No newline at end of file diff --git a/assets/layers/bike_repair_station/bike_repair_station.json b/assets/layers/bike_repair_station/bike_repair_station.json index f082e3862..77382279c 100644 --- a/assets/layers/bike_repair_station/bike_repair_station.json +++ b/assets/layers/bike_repair_station/bike_repair_station.json @@ -224,7 +224,8 @@ "then": "De Fietsambassade Gent", "hideInAnswer": "_country!=be" } - ] + ], + "id": "bike_repair_station-operator" }, { "question": { @@ -235,7 +236,8 @@ "key": "email", "type": "email" }, - "render": "{email}" + "render": "{email}", + "id": "bike_repair_station-email" }, { "question": { @@ -246,7 +248,8 @@ "key": "phone", "type": "phone" }, - "render": "{phone}" + "render": "{phone}", + "id": "bike_repair_station-phone" }, { "question": { @@ -287,7 +290,8 @@ }, "hideInAnswer": true } - ] + ], + "id": "bike_repair_station-opening_hours" }, { "question": { @@ -481,7 +485,8 @@ "it": "Schrader (valvola delle auto)" } } - ] + ], + "id": "bike_repair_station-valves" }, { "question": { diff --git a/assets/layers/bike_shop/bike_shop.json b/assets/layers/bike_shop/bike_shop.json index 77d3833b1..23c471351 100644 --- a/assets/layers/bike_shop/bike_shop.json +++ b/assets/layers/bike_shop/bike_shop.json @@ -225,7 +225,8 @@ }, "freeform": { "key": "name" - } + }, + "id": "bike_shop-name" }, { "question": { @@ -243,7 +244,8 @@ "freeform": { "key": "website", "type": "url" - } + }, + "id": "bike_shop-website" }, { "question": { @@ -260,7 +262,8 @@ "freeform": { "key": "phone", "type": "phone" - } + }, + "id": "bike_shop-phone" }, { "question": { @@ -277,7 +280,8 @@ "freeform": { "key": "email", "type": "email" - } + }, + "id": "bike_shop-email" }, { "render": "{opening_hours_table(opening_hours)}", @@ -285,14 +289,16 @@ "freeform": { "key": "opening_hours", "type": "opening_hours" - } + }, + "id": "bike_shop-opening_hours" }, "description", { "render": "Enkel voor {access}", "freeform": { "key": "access" - } + }, + "id": "bike_shop-access" }, { "question": { diff --git a/assets/layers/binocular/binocular.json b/assets/layers/binocular/binocular.json index 1b2573e29..46ba8fe42 100644 --- a/assets/layers/binocular/binocular.json +++ b/assets/layers/binocular/binocular.json @@ -45,7 +45,8 @@ "question": { "en": "How much does one have to pay to use these binoculars?", "nl": "Hoeveel moet men betalen om deze verrekijker te gebruiken?" - } + }, + "id": "binocular-charge" }, { "question": { @@ -59,7 +60,8 @@ "freeform": { "key": "direction", "type": "direction" - } + }, + "id": "binocular-direction" } ], "icon": { diff --git a/assets/layers/birdhide/birdhide.json b/assets/layers/birdhide/birdhide.json index 4e1504864..a8c232bf5 100644 --- a/assets/layers/birdhide/birdhide.json +++ b/assets/layers/birdhide/birdhide.json @@ -184,7 +184,8 @@ "nl": "Beheer door het Agentschap Natuur en Bos " } } - ] + ], + "id": "birdhide-operator" } ], "icon": { diff --git a/assets/layers/cycleways_and_roads/cycleways_and_roads.json b/assets/layers/cycleways_and_roads/cycleways_and_roads.json index 491a232db..b622043a2 100644 --- a/assets/layers/cycleways_and_roads/cycleways_and_roads.json +++ b/assets/layers/cycleways_and_roads/cycleways_and_roads.json @@ -1007,7 +1007,8 @@ "20", "map" ] - } + }, + "id": "cycleways_and_roads-cycleway:buffer" }, { "question": { diff --git a/assets/layers/defibrillator/defibrillator.json b/assets/layers/defibrillator/defibrillator.json index f0d193c22..e0e4f44a7 100644 --- a/assets/layers/defibrillator/defibrillator.json +++ b/assets/layers/defibrillator/defibrillator.json @@ -191,7 +191,8 @@ "it": "Non accessibile, potrebbe essere solo per uso professionale" } } - ] + ], + "id": "defibrillator-access" }, { "render": { @@ -236,7 +237,8 @@ "ru": "Это обычный автоматический дефибриллятор" } } - ] + ], + "id": "defibrillator-defibrillator" }, { "question": { @@ -287,7 +289,8 @@ "de": "Dieser Defibrillator befindet sich in der ersten Etage" } } - ] + ], + "id": "defibrillator-level" }, { "render": { @@ -309,7 +312,8 @@ "freeform": { "type": "text", "key": "defibrillator:location" - } + }, + "id": "defibrillator-defibrillator:location" }, { "render": { @@ -331,7 +335,8 @@ "freeform": { "type": "text", "key": "defibrillator:location:en" - } + }, + "id": "defibrillator-defibrillator:location:en" }, { "render": { @@ -353,7 +358,8 @@ "freeform": { "type": "text", "key": "defibrillator:location:fr" - } + }, + "id": "defibrillator-defibrillator:location:fr" }, "wheelchair-access", { @@ -374,7 +380,8 @@ "freeform": { "type": "text", "key": "ref" - } + }, + "id": "defibrillator-ref" }, { "render": { @@ -394,7 +401,8 @@ "freeform": { "key": "email", "type": "email" - } + }, + "id": "defibrillator-email" }, { "render": { @@ -414,7 +422,8 @@ "freeform": { "key": "phone", "type": "phone" - } + }, + "id": "defibrillator-phone" }, { "render": { @@ -447,7 +456,8 @@ "de": "24/7 geöffnet (auch an Feiertagen)" } } - ] + ], + "id": "defibrillator-opening_hours" }, { "render": { @@ -469,7 +479,8 @@ "freeform": { "key": "description", "type": "text" - } + }, + "id": "defibrillator-description" }, { "question": { @@ -502,7 +513,8 @@ "de": "Heute überprüft!" } } - ] + ], + "id": "defibrillator-survey:date" }, { "render": { @@ -523,7 +535,8 @@ "freeform": { "key": "fixme", "type": "text" - } + }, + "id": "defibrillator-fixme" } ] } \ No newline at end of file diff --git a/assets/layers/ghost_bike/ghost_bike.json b/assets/layers/ghost_bike/ghost_bike.json index 3183b7283..5207992b4 100644 --- a/assets/layers/ghost_bike/ghost_bike.json +++ b/assets/layers/ghost_bike/ghost_bike.json @@ -117,7 +117,8 @@ "fr": "Aucun nom n'est marqué sur le vélo" } } - ] + ], + "id": "ghost_bike-name" }, { "question": { @@ -139,7 +140,8 @@ "freeform": { "type": "url", "key": "source" - } + }, + "id": "ghost_bike-source" }, { "question": { @@ -161,7 +163,8 @@ }, "freeform": { "key": "inscription" - } + }, + "id": "ghost_bike-inscription" }, { "question": { @@ -180,7 +183,8 @@ "freeform": { "key": "start_date", "type": "date" - } + }, + "id": "ghost_bike-start_date" } ] } \ No newline at end of file diff --git a/assets/layers/map/map.json b/assets/layers/map/map.json index 3bc09c947..991aa1524 100644 --- a/assets/layers/map/map.json +++ b/assets/layers/map/map.json @@ -71,7 +71,8 @@ "ru": "Эта карта основана на {map_source}", "fr": "Cette carte est basée sur {map_source}", "de": "Diese Karte basiert auf {map_source}" - } + }, + "id": "map-map_source" }, { "question": { diff --git a/assets/layers/picnic_table/picnic_table.json b/assets/layers/picnic_table/picnic_table.json index 9bea66671..dbe67a9af 100644 --- a/assets/layers/picnic_table/picnic_table.json +++ b/assets/layers/picnic_table/picnic_table.json @@ -73,7 +73,8 @@ "fr": "C’est une table en béton" } } - ] + ], + "id": "picnic_table-material" } ], "icon": { diff --git a/assets/layers/play_forest/play_forest.json b/assets/layers/play_forest/play_forest.json index cc6edbb31..4be4071ee 100644 --- a/assets/layers/play_forest/play_forest.json +++ b/assets/layers/play_forest/play_forest.json @@ -51,7 +51,8 @@ "if": "operator=Agenstchap Natuur en Bos", "then": "Dit gebied wordt beheerd door het Agentschap Natuur en Bos" } - ] + ], + "id": "play_forest-operator" }, { "question": "Wanneer is deze speelzone toegankelijk?", @@ -72,7 +73,8 @@ "freeform": { "key": "email", "type": "email" - } + }, + "id": "play_forest-email" }, { "question": "Wie kan men bellen indien er problemen zijn met de speelzone?", @@ -80,7 +82,8 @@ "freeform": { "key": "phone", "type": "phone" - } + }, + "id": "play_forest-phone" }, "questions", { diff --git a/assets/layers/playground/playground.json b/assets/layers/playground/playground.json index e2d3e8a72..9d5cdb5b0 100644 --- a/assets/layers/playground/playground.json +++ b/assets/layers/playground/playground.json @@ -161,7 +161,8 @@ }, "hideInAnswer": true } - ] + ], + "id": "playground-surface" }, { "question": { @@ -215,7 +216,8 @@ "freeform": { "key": "min_age", "type": "pnat" - } + }, + "id": "playground-min_age" }, { "render": { @@ -234,7 +236,8 @@ "freeform": { "key": "max_age", "type": "pnat" - } + }, + "id": "playground-max_age" }, { "question": { @@ -253,7 +256,8 @@ }, "freeform": { "key": "operator" - } + }, + "id": "playground-operator" }, { "question": { @@ -339,7 +343,8 @@ "freeform": { "key": "email", "type": "email" - } + }, + "id": "playground-email" }, { "question": { @@ -361,7 +366,8 @@ "freeform": { "key": "phone", "type": "phone" - } + }, + "id": "playground-phone" }, { "question": { @@ -453,7 +459,8 @@ }, "hideInAnswer": true } - ] + ], + "id": "playground-opening_hours" }, "questions", { diff --git a/assets/layers/public_bookcase/public_bookcase.json b/assets/layers/public_bookcase/public_bookcase.json index 786d7e220..258fff091 100644 --- a/assets/layers/public_bookcase/public_bookcase.json +++ b/assets/layers/public_bookcase/public_bookcase.json @@ -121,7 +121,8 @@ "it": "Questa microbiblioteca non ha un nome proprio" } } - ] + ], + "id": "public_bookcase-name" }, { "render": { @@ -144,7 +145,8 @@ "key": "capacity", "type": "nat", "inline": true - } + }, + "id": "public_bookcase-capacity" }, { "question": { @@ -285,7 +287,8 @@ "freeform": { "type": "string", "key": "operator" - } + }, + "id": "public_bookcase-operator" }, { "question": { @@ -337,7 +340,8 @@ "it": "Questa microbiblioteca non fa parte di una rete" } } - ] + ], + "id": "public_bookcase-brand" }, { "render": { @@ -375,7 +379,8 @@ ] } } - ] + ], + "id": "public_bookcase-ref" }, { "question": { @@ -397,7 +402,8 @@ "freeform": { "key": "start_date", "type": "date" - } + }, + "id": "public_bookcase-start_date" }, { "render": { @@ -419,7 +425,8 @@ "freeform": { "key": "website", "type": "url" - } + }, + "id": "public_bookcase-website" } ], "deletion": { diff --git a/assets/layers/slow_roads/slow_roads.json b/assets/layers/slow_roads/slow_roads.json index 5ef6d2feb..7e3a763d5 100644 --- a/assets/layers/slow_roads/slow_roads.json +++ b/assets/layers/slow_roads/slow_roads.json @@ -201,7 +201,8 @@ }, "hideInAnswer": true } - ] + ], + "id": "slow_roads-surface" }, { "question": "Is deze weg 's nachts verlicht?", diff --git a/assets/layers/sport_pitch/sport_pitch.json b/assets/layers/sport_pitch/sport_pitch.json index 17e47f206..6666ed6c9 100644 --- a/assets/layers/sport_pitch/sport_pitch.json +++ b/assets/layers/sport_pitch/sport_pitch.json @@ -140,7 +140,8 @@ }, "hideInAnswer": true } - ] + ], + "id": "sport_pitch-sport" }, { "question": { @@ -211,7 +212,8 @@ "it": "La superficie è calcestruzzo" } } - ] + ], + "id": "sport_pitch-surface" }, { "question": { @@ -331,7 +333,8 @@ "key": "phone", "type": "phone" }, - "render": "{phone}" + "render": "{phone}", + "id": "sport_pitch-phone" }, { "question": { @@ -344,7 +347,8 @@ "key": "email", "type": "email" }, - "render": "{email}" + "render": "{email}", + "id": "sport_pitch-email" }, { "question": { @@ -376,7 +380,8 @@ } } ], - "condition": "access~*" + "condition": "access~*", + "id": "sport_pitch-opening_hours" }, "questions", { diff --git a/assets/layers/toilet/toilet.json b/assets/layers/toilet/toilet.json index 0963a1bab..0b946addc 100644 --- a/assets/layers/toilet/toilet.json +++ b/assets/layers/toilet/toilet.json @@ -167,7 +167,8 @@ }, "hideInAnswer": true } - ] + ], + "id": "toilet-access" }, { "question": { @@ -222,7 +223,8 @@ "freeform": { "key": "charge", "type": "string" - } + }, + "id": "toilet-charge" }, { "question": { @@ -399,7 +401,8 @@ "it": "Il fasciatoio è in una stanza dedicata. " } } - ] + ], + "id": "toilet-changing_table:location" } ] } \ No newline at end of file diff --git a/assets/layers/tree_node/tree_node.json b/assets/layers/tree_node/tree_node.json index 3ae7384d6..34be5dbad 100644 --- a/assets/layers/tree_node/tree_node.json +++ b/assets/layers/tree_node/tree_node.json @@ -324,7 +324,8 @@ "denotation=natural_monument", "name~*" ] - } + }, + "id": "tree_node-name" }, { "question": { @@ -435,7 +436,8 @@ "heritage=4", "heritage:operator=OnroerendErfgoed" ] - } + }, + "id": "tree_node-ref:OnroerendErfgoed" }, { "render": { @@ -461,7 +463,8 @@ "denotation=natural_monument", "wikidata~*" ] - } + }, + "id": "tree_node-wikidata" } ], "icon": { diff --git a/assets/layers/viewpoint/viewpoint.json b/assets/layers/viewpoint/viewpoint.json index 31f2452bc..6f34c3159 100644 --- a/assets/layers/viewpoint/viewpoint.json +++ b/assets/layers/viewpoint/viewpoint.json @@ -67,7 +67,8 @@ "render": "{description}", "freeform": { "key": "description" - } + }, + "id": "viewpoint-description" } ] } \ No newline at end of file