fix(themes): remove 'unkown' mapping from hydrants, the unkown case is handled by MapComplete

This commit is contained in:
Pieter Vander Vennet 2023-03-09 23:25:07 +01:00
parent 28b28de0f9
commit 4850e5094a
12 changed files with 87 additions and 151 deletions

View file

@ -78,25 +78,6 @@
"key": "colour" "key": "colour"
}, },
"mappings": [ "mappings": [
{
"if": {
"and": [
"colour="
]
},
"then": {
"en": "The hydrant color is unknown.",
"ja": "消火栓の色は不明です。",
"ru": "Цвет гидранта не определён.",
"fr": "La borne est de couleur inconnue.",
"de": "Die Farbe des Hydranten ist unbekannt.",
"it": "Il colore dellidrante è sconosciuto.",
"nl": "De kleur van de brandkraan is onbekend.",
"es": "Se desconoce el color de la boca de incendios.",
"ca": "El color de l'hidrant és desconegut."
},
"hideInAnswer": true
},
{ {
"if": { "if": {
"and": [ "and": [
@ -162,24 +143,6 @@
"es": " Tipo de boca de incendios: {fire_hydrant:type}" "es": " Tipo de boca de incendios: {fire_hydrant:type}"
}, },
"mappings": [ "mappings": [
{
"if": {
"and": [
"fire_hydrant:type="
]
},
"then": {
"en": "The hydrant type is unknown.",
"ja": "消火栓の種類は不明です。",
"it": "Il tipo di idrante è sconosciuto.",
"ru": "Тип гидранта не определён.",
"fr": "La borne est de type inconnu.",
"de": "Der Typ des Hydranten ist unbekannt.",
"nl": "Het type brandkraan is onbekend.",
"es": "Se desconoce el tipo de la boca de incendios"
},
"hideInAnswer": true
},
{ {
"if": { "if": {
"and": [ "and": [

View file

@ -1,13 +1,16 @@
{ {
"id": "mapcomplete-changes", "id": "mapcomplete-changes",
"title": { "title": {
"en": "Changes made with MapComplete" "en": "Changes made with MapComplete",
"de": "Mit MapComplete vorgenommene Änderungen"
}, },
"shortDescription": { "shortDescription": {
"en": "Shows changes made by MapComplete" "en": "Shows changes made by MapComplete",
"de": "Zeigt Änderungen, die von MapComplete vorgenommen wurden"
}, },
"description": { "description": {
"en": "This maps shows all the changes made with MapComplete" "en": "This maps shows all the changes made with MapComplete",
"de": "Diese Karte zeigt alle mit MapComplete vorgenommenen Änderungen"
}, },
"icon": "./assets/svg/logo.svg", "icon": "./assets/svg/logo.svg",
"hideFromOverview": true, "hideFromOverview": true,
@ -20,7 +23,8 @@
{ {
"id": "mapcomplete-changes", "id": "mapcomplete-changes",
"name": { "name": {
"en": "Changeset centers" "en": "Changeset centers",
"de": "Zentrum der Änderungssätze"
}, },
"minzoom": 0, "minzoom": 0,
"source": { "source": {
@ -31,41 +35,48 @@
}, },
"title": { "title": {
"render": { "render": {
"en": "Changeset for {theme}" "en": "Changeset for {theme}",
"de": "Änderungssatz für {theme}"
} }
}, },
"description": { "description": {
"en": "Shows all MapComplete changes" "en": "Shows all MapComplete changes",
"de": "Zeigt alle MapComplete-Änderungen"
}, },
"tagRenderings": [ "tagRenderings": [
{ {
"id": "show_changeset_id", "id": "show_changeset_id",
"render": { "render": {
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>" "en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"de": "Änderungssatz <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
} }
}, },
{ {
"id": "contributor", "id": "contributor",
"question": { "question": {
"en": "What contributor did make this change?" "en": "What contributor did make this change?",
"de": "Welcher Mitwirkende hat diese Änderung vorgenommen?"
}, },
"freeform": { "freeform": {
"key": "user" "key": "user"
}, },
"render": { "render": {
"en": "Change made by <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>" "en": "Change made by <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>",
"de": "Änderung vorgenommen von <a href='https://openstreetmap.org/user/{user}' target='_blank'>{user}</a>"
} }
}, },
{ {
"id": "theme-id", "id": "theme-id",
"question": { "question": {
"en": "What theme was used to make this change?" "en": "What theme was used to make this change?",
"de": "Welches Thema wurde für diese Änderung verwendet?"
}, },
"freeform": { "freeform": {
"key": "theme" "key": "theme"
}, },
"render": { "render": {
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>" "en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"de": "Geändert mit Thema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
} }
}, },
{ {
@ -74,19 +85,23 @@
"key": "locale" "key": "locale"
}, },
"question": { "question": {
"en": "What locale (language) was this change made in?" "en": "What locale (language) was this change made in?",
"de": "In welchem Gebietsschema (Sprache) wurde diese Änderung vorgenommen?"
}, },
"render": { "render": {
"en": "User locale is {locale}" "en": "User locale is {locale}",
"de": "Benutzergebietsschema ist {locale}"
} }
}, },
{ {
"id": "host", "id": "host",
"render": { "render": {
"en": "Change with with <a href='{host}'>{host}</a>" "en": "Change with with <a href='{host}'>{host}</a>",
"de": "Geändert über <a href='{host}'>{host}</a>"
}, },
"question": { "question": {
"en": "What host (website) was this change made with?" "en": "What host (website) was this change made with?",
"de": "Über welchen Host (Webseite) wurde diese Änderung vorgenommen?"
}, },
"freeform": { "freeform": {
"key": "host" "key": "host"
@ -431,7 +446,8 @@
} }
], ],
"question": { "question": {
"en": "Themename contains {search}" "en": "Themename contains {search}",
"de": "Themename enthält {search}"
} }
} }
] ]
@ -447,7 +463,8 @@
} }
], ],
"question": { "question": {
"en": "Made by contributor {search}" "en": "Made by contributor {search}",
"de": "Erstellt von {search}"
} }
} }
] ]
@ -463,7 +480,8 @@
} }
], ],
"question": { "question": {
"en": "<b>Not</b> made by contributor {search}" "en": "<b>Not</b> made by contributor {search}",
"de": "<b>Nicht</b> erstellt von {search}"
} }
} }
] ]
@ -480,7 +498,8 @@
} }
], ],
"question": { "question": {
"en": "Made before {search}" "en": "Made before {search}",
"de": "Erstellt vor {search}"
} }
} }
] ]
@ -497,7 +516,8 @@
} }
], ],
"question": { "question": {
"en": "Made after {search}" "en": "Made after {search}",
"de": "Erstellt nach {search}"
} }
} }
] ]
@ -513,7 +533,8 @@
} }
], ],
"question": { "question": {
"en": "User language (iso-code) {search}" "en": "User language (iso-code) {search}",
"de": "Benutzersprache (ISO-Code) {search}"
} }
} }
] ]
@ -529,7 +550,8 @@
} }
], ],
"question": { "question": {
"en": "Made with host {search}" "en": "Made with host {search}",
"de": "Erstellt mit host {search}"
} }
} }
] ]
@ -540,7 +562,8 @@
{ {
"osmTags": "add-image>0", "osmTags": "add-image>0",
"question": { "question": {
"en": "Changeset added at least one image" "en": "Changeset added at least one image",
"de": "Im Änderungssatz wurde mindestens ein Bild hinzugefügt"
} }
} }
] ]
@ -555,7 +578,8 @@
{ {
"id": "link_to_more", "id": "link_to_more",
"render": { "render": {
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>" "en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>",
"de": "Weitere Statistiken <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>hier</a>"
} }
}, },
{ {

View file

@ -1859,12 +1859,9 @@
"hydrant-color": { "hydrant-color": {
"mappings": { "mappings": {
"0": { "0": {
"then": "El color de l'hidrant és desconegut."
},
"1": {
"then": "L'hidrant és de color groc." "then": "L'hidrant és de color groc."
}, },
"2": { "1": {
"then": "L'hidrant és de color roig." "then": "L'hidrant és de color roig."
} }
}, },
@ -1909,16 +1906,16 @@
}, },
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"1": { "0": {
"then": "De pilar." "then": "De pilar."
}, },
"2": { "1": {
"then": "De tuberia." "then": "De tuberia."
}, },
"3": { "2": {
"then": "De paret." "then": "De paret."
}, },
"4": { "3": {
"then": "Subterrani." "then": "Subterrani."
} }
}, },

View file

@ -4907,12 +4907,9 @@
"hydrant-color": { "hydrant-color": {
"mappings": { "mappings": {
"0": { "0": {
"then": "Die Farbe des Hydranten ist unbekannt."
},
"1": {
"then": "Die Farbe des Hydranten ist gelb." "then": "Die Farbe des Hydranten ist gelb."
}, },
"2": { "1": {
"then": "Die Farbe des Hydranten ist rot." "then": "Die Farbe des Hydranten ist rot."
} }
}, },
@ -4975,18 +4972,15 @@
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"0": { "0": {
"then": "Der Typ des Hydranten ist unbekannt."
},
"1": {
"then": "Überflurhydrant." "then": "Überflurhydrant."
}, },
"2": { "1": {
"then": "Druckloses Rohr." "then": "Druckloses Rohr."
}, },
"3": { "2": {
"then": "Wandhydrant." "then": "Wandhydrant."
}, },
"4": { "3": {
"then": "Unterflurhydrant." "then": "Unterflurhydrant."
} }
}, },

View file

@ -4907,12 +4907,9 @@
"hydrant-color": { "hydrant-color": {
"mappings": { "mappings": {
"0": { "0": {
"then": "The hydrant color is unknown."
},
"1": {
"then": "The hydrant color is yellow." "then": "The hydrant color is yellow."
}, },
"2": { "1": {
"then": "The hydrant color is red." "then": "The hydrant color is red."
} }
}, },
@ -4975,18 +4972,15 @@
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"0": { "0": {
"then": "The hydrant type is unknown."
},
"1": {
"then": "Pillar type." "then": "Pillar type."
}, },
"2": { "1": {
"then": "Pipe type." "then": "Pipe type."
}, },
"3": { "2": {
"then": "Wall type." "then": "Wall type."
}, },
"4": { "3": {
"then": "Underground type." "then": "Underground type."
} }
}, },

View file

@ -2617,12 +2617,9 @@
"hydrant-color": { "hydrant-color": {
"mappings": { "mappings": {
"0": { "0": {
"then": "Se desconoce el color de la boca de incendios."
},
"1": {
"then": "La boca de incendios es amarilla." "then": "La boca de incendios es amarilla."
}, },
"2": { "1": {
"then": "La boca de incendios es roja." "then": "La boca de incendios es roja."
} }
}, },
@ -2646,18 +2643,15 @@
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"0": { "0": {
"then": "Se desconoce el tipo de la boca de incendios"
},
"1": {
"then": "De pilar." "then": "De pilar."
}, },
"2": { "1": {
"then": "De tubería." "then": "De tubería."
}, },
"3": { "2": {
"then": "De pared." "then": "De pared."
}, },
"4": { "3": {
"then": "Bajo tierra." "then": "Bajo tierra."
} }
}, },

View file

@ -3193,12 +3193,9 @@
"hydrant-color": { "hydrant-color": {
"mappings": { "mappings": {
"0": { "0": {
"then": "La borne est de couleur inconnue."
},
"1": {
"then": "La borne est jaune." "then": "La borne est jaune."
}, },
"2": { "1": {
"then": "La borne est rouge." "then": "La borne est rouge."
} }
}, },
@ -3222,18 +3219,15 @@
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"0": { "0": {
"then": "La borne est de type inconnu."
},
"1": {
"then": "Pilier." "then": "Pilier."
}, },
"2": { "1": {
"then": "Tuyau." "then": "Tuyau."
}, },
"3": { "2": {
"then": "Mural." "then": "Mural."
}, },
"4": { "3": {
"then": "Enterré." "then": "Enterré."
} }
}, },

View file

@ -349,7 +349,7 @@
"tagRenderings": { "tagRenderings": {
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"3": { "2": {
"then": "Jenis dinding." "then": "Jenis dinding."
} }
} }

View file

@ -1354,12 +1354,9 @@
"hydrant-color": { "hydrant-color": {
"mappings": { "mappings": {
"0": { "0": {
"then": "Il colore dellidrante è sconosciuto."
},
"1": {
"then": "Il colore dellidrante è giallo." "then": "Il colore dellidrante è giallo."
}, },
"2": { "1": {
"then": "L'idrante è rosso." "then": "L'idrante è rosso."
} }
}, },
@ -1383,18 +1380,15 @@
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"0": { "0": {
"then": "Il tipo di idrante è sconosciuto."
},
"1": {
"then": "Soprasuolo." "then": "Soprasuolo."
}, },
"2": { "1": {
"then": "Tubo." "then": "Tubo."
}, },
"3": { "2": {
"then": "A muro." "then": "A muro."
}, },
"4": { "3": {
"then": "Sottosuolo." "then": "Sottosuolo."
} }
}, },

View file

@ -454,12 +454,9 @@
"hydrant-color": { "hydrant-color": {
"mappings": { "mappings": {
"0": { "0": {
"then": "消火栓の色は不明です。"
},
"1": {
"then": "消火栓の色は黄色です。" "then": "消火栓の色は黄色です。"
}, },
"2": { "1": {
"then": "消火栓の色は赤です。" "then": "消火栓の色は赤です。"
} }
}, },
@ -483,18 +480,15 @@
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"0": { "0": {
"then": "消火栓の種類は不明です。"
},
"1": {
"then": "ピラー型。" "then": "ピラー型。"
}, },
"2": { "1": {
"then": "パイプ型。" "then": "パイプ型。"
}, },
"3": { "2": {
"then": "壁型。" "then": "壁型。"
}, },
"4": { "3": {
"then": "地下式。" "then": "地下式。"
} }
}, },

View file

@ -4811,12 +4811,9 @@
"hydrant-color": { "hydrant-color": {
"mappings": { "mappings": {
"0": { "0": {
"then": "De kleur van de brandkraan is onbekend."
},
"1": {
"then": "De brandkraan is geel." "then": "De brandkraan is geel."
}, },
"2": { "1": {
"then": "De brandkraan is rood." "then": "De brandkraan is rood."
} }
}, },
@ -4879,18 +4876,15 @@
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"0": { "0": {
"then": "Het type brandkraan is onbekend."
},
"1": {
"then": "Pillaar type." "then": "Pillaar type."
}, },
"2": { "1": {
"then": "Buis type." "then": "Buis type."
}, },
"3": { "2": {
"then": "Muur type." "then": "Muur type."
}, },
"4": { "3": {
"then": "Ondergronds type." "then": "Ondergronds type."
} }
}, },

View file

@ -1059,12 +1059,9 @@
"hydrant-color": { "hydrant-color": {
"mappings": { "mappings": {
"0": { "0": {
"then": "Цвет гидранта не определён."
},
"1": {
"then": "Гидрант жёлтого цвета." "then": "Гидрант жёлтого цвета."
}, },
"2": { "1": {
"then": "Гидрант красного цвета." "then": "Гидрант красного цвета."
} }
}, },
@ -1120,18 +1117,15 @@
"hydrant-type": { "hydrant-type": {
"mappings": { "mappings": {
"0": { "0": {
"then": "Тип гидранта не определён."
},
"1": {
"then": "Наземный." "then": "Наземный."
}, },
"2": { "1": {
"then": "Труба." "then": "Труба."
}, },
"3": { "2": {
"then": "Настенный." "then": "Настенный."
}, },
"4": { "3": {
"then": "Подземный." "then": "Подземный."
} }
}, },