From 40b53687ac374a99f91ca1818686942c5944e205 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 30 Oct 2022 20:29:17 +0100 Subject: [PATCH] Change opening_hours rendering --- .../bike_repair_station.json | 47 +++++-------------- langs/layers/ca.json | 9 +--- langs/layers/da.json | 8 ---- langs/layers/de.json | 8 ---- langs/layers/en.json | 8 ---- langs/layers/es.json | 8 ---- langs/layers/fr.json | 8 ---- langs/layers/it.json | 8 ---- langs/layers/nl.json | 8 ---- langs/layers/pt.json | 7 --- langs/layers/pt_BR.json | 7 --- langs/layers/ru.json | 8 ---- 12 files changed, 14 insertions(+), 120 deletions(-) diff --git a/assets/layers/bike_repair_station/bike_repair_station.json b/assets/layers/bike_repair_station/bike_repair_station.json index 127c3beb5..b91443e02 100644 --- a/assets/layers/bike_repair_station/bike_repair_station.json +++ b/assets/layers/bike_repair_station/bike_repair_station.json @@ -281,40 +281,19 @@ "id": "Operational status" }, { - "question": { - "nl": "Wanneer is dit fietsherstelpunt open?", - "en": "When is this bicycle repair point open?", - "fr": "Quand ce point de réparation de vélo est-il ouvert ?", - "it": "Quando è aperto questo punto riparazione bici?", - "de": "Wann ist die Fahrradreparaturstation geöffnet?", - "ru": "Когда работает эта точка обслуживания велосипедов?", - "es": "¿Cuándo está abierto este punto de reparación de bicicletas?", - "da": "Hvornår er dette cykelreparationssted åbent?" - }, - "render": "{opening_hours_table()}", - "freeform": { - "key": "opening_hours", - "type": "opening_hours" - }, - "mappings": [ - { - "if": "opening_hours=24/7", - "then": { - "nl": "Dag en nacht open", - "en": "Always open", - "fr": "Ouvert en permanence", - "it": "Sempre aperto", - "de": "Die Station ist durchgehend geöffnet", - "ru": "Всегда открыто", - "pt_BR": "Sempre aberto", - "pt": "Sempre aberto", - "ca": "Sempre obert", - "es": "Siempre abierto", - "da": "Altid åben" - } + "builtin": "opening_hours_24_7", + "override": { + "question": { + "nl": "Wanneer is dit fietsherstelpunt open?", + "en": "When is this bicycle repair point open?", + "fr": "Quand ce point de réparation de vélo est-il ouvert ?", + "it": "Quando è aperto questo punto riparazione bici?", + "de": "Wann ist die Fahrradreparaturstation geöffnet?", + "ru": "Когда работает эта точка обслуживания велосипедов?", + "es": "¿Cuándo está abierto este punto de reparación de bicicletas?", + "da": "Hvornår er dette cykelreparationssted åbent?" } - ], - "id": "bike_repair_station-opening_hours" + } }, { "id": "access", @@ -979,4 +958,4 @@ "da": "Et lag med cykelpumper og cykelreværktøjsstativer", "fr": "Une couche montrant les pompes à vélo et les centres de réparation" } -} \ No newline at end of file +} diff --git a/langs/layers/ca.json b/langs/layers/ca.json index 1c6adb430..dff2505aa 100644 --- a/langs/layers/ca.json +++ b/langs/layers/ca.json @@ -264,13 +264,6 @@ "then": "Bomba elèctrica" } } - }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Sempre obert" - } - } } }, "title": { @@ -1116,4 +1109,4 @@ } } } -} \ No newline at end of file +} diff --git a/langs/layers/da.json b/langs/layers/da.json index e8289eb0d..1e40dcf8a 100644 --- a/langs/layers/da.json +++ b/langs/layers/da.json @@ -878,14 +878,6 @@ }, "question": "Har pumpen trykindikator eller manometer?" }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Altid åben" - } - }, - "question": "Hvornår er dette cykelreparationssted åbent?" - }, "bike_repair_station-operator": { "question": "Hvem vedligeholder denne cykluspumpe?", "render": "Vedligeholdt af {operator}" diff --git a/langs/layers/de.json b/langs/layers/de.json index 0cab45d52..cde580448 100644 --- a/langs/layers/de.json +++ b/langs/layers/de.json @@ -895,14 +895,6 @@ }, "question": "Verfügt die Pumpe über einen Druckanzeiger oder ein Manometer?" }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Die Station ist durchgehend geöffnet" - } - }, - "question": "Wann ist die Fahrradreparaturstation geöffnet?" - }, "bike_repair_station-operator": { "question": "Wer betreibt die Reparaturstation?", "render": "Gewartet von {operator}" diff --git a/langs/layers/en.json b/langs/layers/en.json index 7eab351bf..bd9059310 100644 --- a/langs/layers/en.json +++ b/langs/layers/en.json @@ -895,14 +895,6 @@ }, "question": "Does the pump have a pressure indicator or manometer?" }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Always open" - } - }, - "question": "When is this bicycle repair point open?" - }, "bike_repair_station-operator": { "question": "Who maintains this cycle pump?", "render": "Maintained by {operator}" diff --git a/langs/layers/es.json b/langs/layers/es.json index 9dbce139c..bf98c53bc 100644 --- a/langs/layers/es.json +++ b/langs/layers/es.json @@ -804,14 +804,6 @@ }, "question": "¿La bomba tiene un indicador de presión o manómetro?" }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Siempre abierto" - } - }, - "question": "¿Cuándo está abierto este punto de reparación de bicicletas?" - }, "bike_repair_station-operator": { "question": "¿Quién mantiene esta bomba para bicicletas?", "render": "Mantenido por {operator}" diff --git a/langs/layers/fr.json b/langs/layers/fr.json index 271504773..9e8bf15a3 100644 --- a/langs/layers/fr.json +++ b/langs/layers/fr.json @@ -884,14 +884,6 @@ }, "question": "Est-ce que la pompe à un manomètre integré ?" }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Ouvert en permanence" - } - }, - "question": "Quand ce point de réparation de vélo est-il ouvert ?" - }, "bike_repair_station-operator": { "question": "Qui maintient cette pompe à vélo ?", "render": "Mantenue par {operator}" diff --git a/langs/layers/it.json b/langs/layers/it.json index 7567cfc5c..9c49cbeec 100644 --- a/langs/layers/it.json +++ b/langs/layers/it.json @@ -573,14 +573,6 @@ }, "question": "Questa pompa ha l’indicatore della pressione o il manometro?" }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Sempre aperto" - } - }, - "question": "Quando è aperto questo punto riparazione bici?" - }, "bike_repair_station-operator": { "question": "Chi gestisce questa pompa per bici?", "render": "Manutenuta da {operator}" diff --git a/langs/layers/nl.json b/langs/layers/nl.json index abb93ad08..a9c6c2458 100644 --- a/langs/layers/nl.json +++ b/langs/layers/nl.json @@ -895,14 +895,6 @@ }, "question": "Heeft deze pomp een luchtdrukmeter?" }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Dag en nacht open" - } - }, - "question": "Wanneer is dit fietsherstelpunt open?" - }, "bike_repair_station-operator": { "question": "Wie beheert deze fietspomp?", "render": "Beheer door {operator}" diff --git a/langs/layers/pt.json b/langs/layers/pt.json index cf359a74f..c00ac3940 100644 --- a/langs/layers/pt.json +++ b/langs/layers/pt.json @@ -458,13 +458,6 @@ } } }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Sempre aberto" - } - } - }, "bike_repair_station-operator": { "question": "Quem faz a manutenção desta bomba de ciclo?", "render": "Mantida por {operator}" diff --git a/langs/layers/pt_BR.json b/langs/layers/pt_BR.json index 80909df8e..478c37cb8 100644 --- a/langs/layers/pt_BR.json +++ b/langs/layers/pt_BR.json @@ -402,13 +402,6 @@ } } }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Sempre aberto" - } - } - }, "bike_repair_station-operator": { "question": "Quem faz a manutenção desta bomba de ciclo?", "render": "Mantida por {operator}" diff --git a/langs/layers/ru.json b/langs/layers/ru.json index 6e199449c..005fcae6f 100644 --- a/langs/layers/ru.json +++ b/langs/layers/ru.json @@ -504,14 +504,6 @@ } } }, - "bike_repair_station-opening_hours": { - "mappings": { - "0": { - "then": "Всегда открыто" - } - }, - "question": "Когда работает эта точка обслуживания велосипедов?" - }, "bike_repair_station-valves": { "mappings": { "0": {