diff --git a/Docs/BuiltinQuestions.md b/Docs/BuiltinQuestions.md index aa7daa342c..ccbfca14a7 100644 --- a/Docs/BuiltinQuestions.md +++ b/Docs/BuiltinQuestions.md @@ -233,7 +233,7 @@ Are dogs allowed in this business? {description} -Is there still something relevant you couldn't give in the previous questions? Add it here. +Is there still some relevant info that the previous questions did not cover? Feel free to add it here. diff --git a/Docs/Layers/advertising.md b/Docs/Layers/advertising.md index 9e716e0df1..749cd262a2 100644 --- a/Docs/Layers/advertising.md +++ b/Docs/Layers/advertising.md @@ -191,7 +191,7 @@ The question is *What kind of message is shown?* - Unselecting this answer will add - *Electoral advertising* corresponds with `message=political` - Unselecting this answer will add - - *Inormation related to theatre, concerts, ...* corresponds with `message=showbiz` + - *Information related to theatre, concerts, …* corresponds with `message=showbiz` - Unselecting this answer will add - *Message from non-profit organizations* corresponds with `message=non_profit` - Unselecting this answer will add diff --git a/Docs/Layers/bicycle_library.md b/Docs/Layers/bicycle_library.md index 06a7087c95..fff4eecf6c 100644 --- a/Docs/Layers/bicycle_library.md +++ b/Docs/Layers/bicycle_library.md @@ -226,7 +226,7 @@ The question is *Who can loan bicycles here?* -The question is *Is there still something relevant you couldn't give in the previous questions? Add it here.* +The question is *Is there still some relevant info that the previous questions did not cover? Feel free to add it here.* This rendering asks information about the property [description](https://wiki.openstreetmap.org/wiki/Key:description) diff --git a/Docs/Layers/bike_cleaning.md b/Docs/Layers/bike_cleaning.md index 22ad6baf26..1edfd3cb47 100644 --- a/Docs/Layers/bike_cleaning.md +++ b/Docs/Layers/bike_cleaning.md @@ -120,7 +120,7 @@ This is rendered with `Using the cleaning service costs {charge}` - *This cleaning service is free to use* corresponds with `fee=no` - - *This cleaning service is paid* corresponds with `fee=yes` + - *There is a fee to use this cleaning service* corresponds with `fee=yes` This tagrendering is only visible in the popup if the following condition is met: `amenity=bike_wash|amenity=bicycle_wash` diff --git a/Docs/Layers/bike_shop.md b/Docs/Layers/bike_shop.md index cc22ed5966..2aa996d07c 100644 --- a/Docs/Layers/bike_shop.md +++ b/Docs/Layers/bike_shop.md @@ -530,7 +530,7 @@ This is rendered with `Using the cleaning service costs {service:bicycle:cleani -The question is *Is there still something relevant you couldn't give in the previous questions? Add it here.* +The question is *Is there still some relevant info that the previous questions did not cover? Feel free to add it here.* This rendering asks information about the property [description](https://wiki.openstreetmap.org/wiki/Key:description) diff --git a/Docs/Layers/bike_themed_object.md b/Docs/Layers/bike_themed_object.md index 648e6b5d8c..8a66060f87 100644 --- a/Docs/Layers/bike_themed_object.md +++ b/Docs/Layers/bike_themed_object.md @@ -91,7 +91,7 @@ This tagrendering has no question and is thus read-only -The question is *Is there still something relevant you couldn't give in the previous questions? Add it here.* +The question is *Is there still some relevant info that the previous questions did not cover? Feel free to add it here.* This rendering asks information about the property [description](https://wiki.openstreetmap.org/wiki/Key:description) diff --git a/Docs/Layers/climbing_route.md b/Docs/Layers/climbing_route.md index 668898b8b5..12e0795847 100644 --- a/Docs/Layers/climbing_route.md +++ b/Docs/Layers/climbing_route.md @@ -159,7 +159,7 @@ This is rendered with `This route has {climbing:bolts} bolts
{id}", - "de": "Änderungssatz {id}" + "en": "Changeset {id}" } }, { "id": "contributor", "question": { - "en": "Which contributor made this change?", - "nl": "Welke bijdrager maakte deze wijziging?", - "de": "Welcher Mitwirkende hat diese Änderung vorgenommen?" + "en": "What contributor did make this change?" }, "freeform": { "key": "user" }, "render": { - "en": "Change made by {user}", - "nl": "Wijziging gemaakt door {user}", - "de": "Änderung gemacht von {user}" + "en": "Change made by {user}" } }, { "id": "theme-id", "question": { - "en": "What theme was used to make this change?", - "de": "Welches Thema wurde für diese Änderung verwendet?\"" + "en": "What theme was used to make this change?" }, "freeform": { "key": "theme" }, "render": { - "en": "Change with theme {theme}", - "de": "Geändert mit Thema {theme}" + "en": "Change with theme {theme}" } }, { @@ -92,27 +74,19 @@ "key": "locale" }, "question": { - "en": "What locale (language) was this change made in?", - "nl": "In welke locale (taal) werd deze wijziging gemaakt?", - "de": "In welcher Sprache wurde diese Änderung vorgenommen?" + "en": "What locale (language) was this change made in?" }, "render": { - "en": "User locale is {locale}", - "nl": "De gebruikerstaal is {locale}", - "de": "Usersprache ist {locale}" + "en": "User locale is {locale}" } }, { "id": "host", "render": { - "en": "Change made with {host}", - "nl": "Wijziging gemaakt met {host}", - "de": "Änderung vorgenommen mit {host}" + "en": "Change with with {host}" }, "question": { - "en": "What host (website) was this change made with?", - "nl": "Met welke host (website) werd deze wijziging gemaakt?", - "de": "Mit welchem Host / welcher Website wurde diese Änderung gemacht?" + "en": "What host (website) was this change made with?" }, "freeform": { "key": "host" @@ -133,12 +107,10 @@ { "id": "version", "question": { - "en": "What version of MapComplete was used to make this change?", - "de": "Mit welcher Version von MapComplete wurde diese Änderung gemacht?" + "en": "What version of MapComplete was used to make this change?" }, "render": { - "en": "Made with {editor}", - "de": "Erstellt mit {editor}" + "en": "Made with {editor}" }, "freeform": { "key": "editor" @@ -472,9 +444,7 @@ } ], "question": { - "en": "Theme name contains {search}", - "nl": "Themenaam bevat {search}", - "de": "Themenname enthält {search}" + "en": "Themename contains {search}" } } ] @@ -490,9 +460,7 @@ } ], "question": { - "en": "Made by contributor {search}", - "nl": "Gemaakt door bijdrager {search}", - "de": "Erstellt von {search}" + "en": "Made by contributor {search}" } } ] @@ -508,9 +476,7 @@ } ], "question": { - "en": "Not made by contributor {search}", - "nl": "Niet gemaakt door bijdrager {search}", - "de": "Nicht erstellt von {search}" + "en": "Not made by contributor {search}" } } ] @@ -527,9 +493,7 @@ } ], "question": { - "en": "Made before {search}", - "nl": "Gemaakt voor {search}", - "de": "Erstellt vor {search}" + "en": "Made before {search}" } } ] @@ -546,9 +510,7 @@ } ], "question": { - "en": "Made after {search}", - "nl": "Gemaakt na {search}", - "de": "Erstellt nach {search}" + "en": "Made after {search}" } } ] @@ -564,9 +526,7 @@ } ], "question": { - "en": "User language (iso-code) {search}", - "nl": "De taal van de bijdrager is {search}", - "de": "Benutzersprache (ISO-Code) {search}" + "en": "User language (iso-code) {search}" } } ] @@ -582,9 +542,7 @@ } ], "question": { - "en": "Made with host {search}", - "nl": "Gemaakt met host {search}", - "de": "Erstellt mit Host {search}" + "en": "Made with host {search}" } } ] @@ -595,9 +553,7 @@ { "osmTags": "add-image>0", "question": { - "en": "Changeset added at least one image", - "nl": "Changeset bevat minstens één afbeelding", - "de": "Changeset fügte mindestens ein Bild hinzu" + "en": "Changeset added at least one image" } } ] @@ -612,8 +568,7 @@ { "id": "link_to_more", "render": { - "en": "More statistics can be found here", - "de": "Mehr Statistiken gibt es hier" + "en": "More statistics can be found here" } }, { diff --git a/scripts/generateDocs.ts b/scripts/generateDocs.ts index ed2e0c639e..9d0e90c48a 100644 --- a/scripts/generateDocs.ts +++ b/scripts/generateDocs.ts @@ -34,6 +34,9 @@ function WriteFile( noTableOfContents: boolean } ): void { + if (!html) { + return + } for (const source of autogenSource) { if (source.indexOf("*") > 0) { continue @@ -106,7 +109,8 @@ function GenerateDocumentationForTheme(theme: LayoutConfig): BaseUIElement { function GenLayerOverviewText(): BaseUIElement { for (const id of Constants.priviliged_layers) { if (!AllSharedLayers.sharedLayers.has(id)) { - throw "Priviliged layer definition not found: " + id + console.error("Priviliged layer definition not found: " + id) + return undefined } }