Fix build

This commit is contained in:
Pieter Vander Vennet 2022-01-27 02:10:28 +01:00
parent 8896226762
commit 92df5643c3
6 changed files with 75 additions and 81 deletions

View file

@ -9,9 +9,6 @@
"description": { "description": {
"en": "This maps shows all the changes made with MapComplete" "en": "This maps shows all the changes made with MapComplete"
}, },
"language": [
"en"
],
"maintainer": "", "maintainer": "",
"icon": "./assets/svg/logo.svg", "icon": "./assets/svg/logo.svg",
"hideFromOverview": true, "hideFromOverview": true,

View file

@ -14,7 +14,7 @@
"hu": "WC-térkép" "hu": "WC-térkép"
}, },
"description": { "description": {
"en": "OpenStreetMap has the biggest dataset of toilets. Worldwide, over 300.000 toilets are known in this map. And, best of all, if one is missing, you can easily add it yourself! <br/><br/> So, if you need to pee or poo, find a loo!", "en": "A map of public toilets",
"de": "Eine Karte mit öffentlich zugänglichen Toiletten", "de": "Eine Karte mit öffentlich zugänglichen Toiletten",
"fr": "Carte affichant les WC et toilettes publiques", "fr": "Carte affichant les WC et toilettes publiques",
"nl": "Een kaart met openbare toiletten", "nl": "Een kaart met openbare toiletten",

View file

@ -1,70 +1,70 @@
{ {
"name": "index", "name": "index",
"short_name": "MapComplete", "short_name": "MapComplete",
"start_url": "index.html", "start_url": "index.html",
"display": "standalone", "display": "standalone",
"background_color": "#fff", "background_color": "#fff",
"description": "A thematic map viewer and editor based on OpenStreetMap", "description": "A thematic map viewer and editor based on OpenStreetMap",
"orientation": "portrait-primary, landscape-primary", "orientation": "portrait-primary, landscape-primary",
"icons": [ "icons": [
{ {
"src": "assets/generated/svg_mapcomplete_logo72.png", "src": "assets/generated/svg_mapcomplete_logo72.png",
"sizes": "72x72", "sizes": "72x72",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/generated/svg_mapcomplete_logo96.png", "src": "assets/generated/svg_mapcomplete_logo96.png",
"sizes": "96x96", "sizes": "96x96",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/generated/svg_mapcomplete_logo120.png", "src": "assets/generated/svg_mapcomplete_logo120.png",
"sizes": "120x120", "sizes": "120x120",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/generated/svg_mapcomplete_logo128.png", "src": "assets/generated/svg_mapcomplete_logo128.png",
"sizes": "128x128", "sizes": "128x128",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/generated/svg_mapcomplete_logo144.png", "src": "assets/generated/svg_mapcomplete_logo144.png",
"sizes": "144x144", "sizes": "144x144",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/generated/svg_mapcomplete_logo152.png", "src": "assets/generated/svg_mapcomplete_logo152.png",
"sizes": "152x152", "sizes": "152x152",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/generated/svg_mapcomplete_logo180.png", "src": "assets/generated/svg_mapcomplete_logo180.png",
"sizes": "180x180", "sizes": "180x180",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/generated/svg_mapcomplete_logo192.png", "src": "assets/generated/svg_mapcomplete_logo192.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/generated/svg_mapcomplete_logo384.png", "src": "assets/generated/svg_mapcomplete_logo384.png",
"sizes": "384x384", "sizes": "384x384",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/generated/svg_mapcomplete_logo512.png", "src": "assets/generated/svg_mapcomplete_logo512.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "assets/svg/mapcomplete_logo.svg", "src": "assets/svg/mapcomplete_logo.svg",
"sizes": "513x513", "sizes": "513x513",
"type": "image/svg" "type": "image/svg"
} }
], ],
"categories": [ "categories": [
"map", "map",
"navigation" "navigation"
] ]
} }

View file

@ -1001,6 +1001,10 @@
"shortDescription": "This theme shows all (touristic) maps that OpenStreetMap knows of", "shortDescription": "This theme shows all (touristic) maps that OpenStreetMap knows of",
"title": "A map of maps" "title": "A map of maps"
}, },
"notes": {
"description": "A note is a pin on the map with some text to indicate something wrong.<br/><br/>Make sure to checkout the <a href='#filters'>filter view</a> to search for users and text.",
"title": "Notes on OpenStreetMap"
},
"observation_towers": { "observation_towers": {
"description": "Publicly accessible towers to enjoy the view", "description": "Publicly accessible towers to enjoy the view",
"shortDescription": "Publicly accessible towers to enjoy the view", "shortDescription": "Publicly accessible towers to enjoy the view",

View file

@ -100,6 +100,7 @@ async function createManifest(layout: LayoutConfig) {
name: name, name: name,
short_name: ogTitle, short_name: ogTitle,
start_url: `${layout.id.toLowerCase()}.html`, start_url: `${layout.id.toLowerCase()}.html`,
lang: "en",
display: "standalone", display: "standalone",
background_color: "#fff", background_color: "#fff",
description: ogDescr, description: ogDescr,
@ -224,7 +225,6 @@ for (const i in all) {
createManifest(new LayoutConfig({ createManifest(new LayoutConfig({
icon: "assets/svg/mapcomplete_logo.svg", icon: "assets/svg/mapcomplete_logo.svg",
id: "index", id: "index",
language: "en",
layers: [], layers: [],
maintainer: "Pieter Vander Vennet", maintainer: "Pieter Vander Vennet",
socialImage: "assets/SocialImage.png", socialImage: "assets/SocialImage.png",

View file

@ -378,15 +378,8 @@ function mergeThemeTranslations() {
const config = themeFile.parsed; const config = themeFile.parsed;
mergeLayerTranslation(config, themeFile.path, loadTranslationFilesFrom("themes")) mergeLayerTranslation(config, themeFile.path, loadTranslationFilesFrom("themes"))
const oldLanguages = config.language;
const allTranslations = new TranslationPart(); const allTranslations = new TranslationPart();
allTranslations.recursiveAdd(config, themeFile.path) allTranslations.recursiveAdd(config, themeFile.path)
const newLanguages = allTranslations.knownLanguages()
const languageDiff = newLanguages.filter(l => oldLanguages.indexOf(l) < 0).join(", ")
if (languageDiff !== "") {
config.language = newLanguages;
console.log(" :hooray: Got a new language for theme", config.id, ":", languageDiff)
}
writeFileSync(themeFile.path, JSON.stringify(config, null, " ")) writeFileSync(themeFile.path, JSON.stringify(config, null, " "))
} }
} }