Fix translations for charging stations; re-add technical questions

This commit is contained in:
Pieter Vander Vennet 2021-11-10 08:51:24 +01:00
parent 32bd2a00b3
commit ac751ed7bc
7 changed files with 2719 additions and 26 deletions

File diff suppressed because it is too large Load diff

View file

@ -564,6 +564,21 @@
"nl": "Is dit oplaadpunt operationeel?"
},
"mappings": [
{
"if": {
"and": [
"planned:amenity=",
"construction:amenity=",
"disused:amenity=",
"operational_status=",
"amenity=charging_station"
]
},
"then": {
"en": "This charging station works",
"nl": "Dit oplaadpunt werkt"
}
},
{
"if": {
"and": [
@ -623,21 +638,6 @@
"en": "This charging station has beed permanently disabled and is not in use anymore but is still visible",
"nl": "Dit oplaadpunt is niet meer in gebruik maar is wel nog aanwezig"
}
},
{
"if": {
"and": [
"planned:amenity=",
"construction:amenity=",
"disused:amenity=",
"operational_status=",
"amenity=charging_station"
]
},
"then": {
"en": "This charging station works",
"nl": "Dit oplaadpunt werkt"
}
}
]
},
@ -672,6 +672,13 @@
"bicycle="
]
}
},
{
"id": "questions"
},
{
"id": "questions",
"group": "technical"
}
],
"mapRendering": [

View file

@ -151,6 +151,7 @@ function run(file, protojson) {
technicalQuestions.push({
"id": "voltage-" + i,
group: "technical",
question: {
en: `What voltage do the plugs with ${descrWithImage_en} offer?`,
nl: `Welke spanning levert de stekker van type ${descrWithImage_nl}`
@ -180,6 +181,7 @@ function run(file, protojson) {
technicalQuestions.push({
"id": "current-" + i,
group:"technical",
question: {
en: `What current do the plugs with ${descrWithImage_en} offer?`,
nl: `Welke stroom levert de stekker van type ${descrWithImage_nl}?`,
@ -209,6 +211,7 @@ function run(file, protojson) {
technicalQuestions.push({
"id": "power-output-" + i,
group:"technical",
question: {
en: `What power output does a single plug of type ${descrWithImage_en} offer?`,
nl: `Welk vermogen levert een enkele stekker van type ${descrWithImage_nl}?`,
@ -254,6 +257,7 @@ function run(file, protojson) {
"mappings": overview_question_answers
}
questions.unshift(toggles)
questions.push(...technicalQuestions)
const stringified = questions.map(q => JSON.stringify(q, null, " "))
let protoString = readFileSync(protojson, "utf8")