From 0ba556a41299e3847cd0333bb04ded26344a0766 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 5 Mar 2024 00:31:29 +0100 Subject: [PATCH] Add opening_hours=closed option, reset translations --- assets/layers/questions/questions.json | 14 ++++++++++++-- langs/layers/ca.json | 2 +- langs/layers/cs.json | 2 +- langs/layers/de.json | 2 +- langs/layers/en.json | 7 ++++++- langs/layers/es.json | 2 +- langs/layers/fr.json | 2 +- langs/layers/hu.json | 2 +- langs/layers/id.json | 2 +- langs/layers/nb_NO.json | 2 +- langs/layers/nl.json | 2 +- langs/layers/pl.json | 2 +- langs/layers/zh_Hant.json | 2 +- 13 files changed, 29 insertions(+), 14 deletions(-) diff --git a/assets/layers/questions/questions.json b/assets/layers/questions/questions.json index e2f06be10..47d455bb1 100644 --- a/assets/layers/questions/questions.json +++ b/assets/layers/questions/questions.json @@ -726,13 +726,23 @@ "freeform": { "key": "opening_hours", "type": "opening_hours" - } + }, + "mappings": [ + { + "#": "Just here to be able to handle those ~5000 incorrect 'opening_hours=closed' elements.", + "if": "opening_hours=closed", + "then": { + "en": "Marked as closed for an unspecified time" + }, + "hideInAnswer": true + } + ] }, { "id": "opening_hours_24_7", "builtin": "opening_hours", "override": { - "mappings": [ + "+mappings": [ { "if": "opening_hours=24/7", "then": { diff --git a/langs/layers/ca.json b/langs/layers/ca.json index 60ace47c2..93561172f 100644 --- a/langs/layers/ca.json +++ b/langs/layers/ca.json @@ -6324,7 +6324,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "Obert 24/7 (incloent-hi festius)" } diff --git a/langs/layers/cs.json b/langs/layers/cs.json index d64630803..f6b4e1f3a 100644 --- a/langs/layers/cs.json +++ b/langs/layers/cs.json @@ -6553,7 +6553,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "Otevřeno 24/7 (včetně svátků)" } diff --git a/langs/layers/de.json b/langs/layers/de.json index 7466d52ac..e1abe4eef 100644 --- a/langs/layers/de.json +++ b/langs/layers/de.json @@ -7690,7 +7690,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "durchgehend geöffnet (auch an Feiertagen)" } diff --git a/langs/layers/en.json b/langs/layers/en.json index 2fdf6441d..0a7d8debf 100644 --- a/langs/layers/en.json +++ b/langs/layers/en.json @@ -7728,12 +7728,17 @@ } }, "opening_hours": { + "mappings": { + "0": { + "then": "Marked as closed for an unspecified time" + } + }, "question": "What are the opening hours of {title()}?", "render": "

Opening hours

{opening_hours_table(opening_hours)}" }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "24/7 opened (including holidays)" } diff --git a/langs/layers/es.json b/langs/layers/es.json index cb4b1ebab..a00de44b8 100644 --- a/langs/layers/es.json +++ b/langs/layers/es.json @@ -3607,7 +3607,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "Abierta 24/7 (incluyendo festivos)" } diff --git a/langs/layers/fr.json b/langs/layers/fr.json index d342a0c2f..7970b50e0 100644 --- a/langs/layers/fr.json +++ b/langs/layers/fr.json @@ -4712,7 +4712,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "Ouvert 24h/24 (jours fériés compris)" } diff --git a/langs/layers/hu.json b/langs/layers/hu.json index 35c9b9cc6..92a8b9157 100644 --- a/langs/layers/hu.json +++ b/langs/layers/hu.json @@ -801,7 +801,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "Éjjel-nappal nyitva (munkaszüneti napokon is)" } diff --git a/langs/layers/id.json b/langs/layers/id.json index 5daff07d9..b33cd73a2 100644 --- a/langs/layers/id.json +++ b/langs/layers/id.json @@ -515,7 +515,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "Buka 24 jam (termasuk hari libur)" } diff --git a/langs/layers/nb_NO.json b/langs/layers/nb_NO.json index 5d33f4964..1bdf05dd2 100644 --- a/langs/layers/nb_NO.json +++ b/langs/layers/nb_NO.json @@ -654,7 +654,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "Døgnåpent (inkludert helligdager)" } diff --git a/langs/layers/nl.json b/langs/layers/nl.json index 2e8917784..103eb5db3 100644 --- a/langs/layers/nl.json +++ b/langs/layers/nl.json @@ -6550,7 +6550,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "24/7 open (ook tijdens feestdagen)" } diff --git a/langs/layers/pl.json b/langs/layers/pl.json index 2fb3b184e..685d02975 100644 --- a/langs/layers/pl.json +++ b/langs/layers/pl.json @@ -2424,7 +2424,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "Otwarte 24/7 (również w święta)" } diff --git a/langs/layers/zh_Hant.json b/langs/layers/zh_Hant.json index a95bcf459..f4f16ce60 100644 --- a/langs/layers/zh_Hant.json +++ b/langs/layers/zh_Hant.json @@ -634,7 +634,7 @@ }, "opening_hours_24_7": { "override": { - "mappings": { + "+mappings": { "0": { "then": "24/7 開放 (包括假日)" }