Themes: add maxstay for bicycle parkings

This commit is contained in:
Pieter Vander Vennet 2024-04-16 00:02:49 +02:00
parent c3f1d9b127
commit a71ed5d53e
3 changed files with 68 additions and 3 deletions

View file

@ -903,16 +903,51 @@
"key": "capacity:cargo_bike",
"type": "nat"
},
"mappings": [{
"mappings": [
{
"if": "cargo_bike=no",
"then": {
"en": "There are no dedicated spaces for cargo bikes here or parking cargo bikes here is not allowed",
"nl": "Hier zijn geen plaatsen voor bakfietsen voorzien of bakfietsen stallen is niet toegestaan "
},
"hideInAnswer": "capacity:cargo_bike=",
"addExtraTags": ["capacity:cargo_bike="]
}],
"addExtraTags": [
"capacity:cargo_bike="
]
}
],
"id": "Cargo bike capacity?"
},
{
"id": "maxstay",
"question": {
"en": "What is the maximum allowed parking duration?",
"nl": "Wat is de toegestane, maximale parkeerduur?"
},
"questionHint": {
"en": "If the bicycle is parked for a longer amount, it might be removed by the operator",
"nl": "Indien een fiets langer geparkeerd staat, kan deze verwijderd worden door de beheerder"
},
"freeform": {
"key": "maxstay",
"type": "pnat"
},
"render": {
"en": "A bike can be parked here for at most {canonical(maxstay)}",
"nl": "Een fiets mag hier maximaal {canonical(maxstay)} parkeren"
}
}
],
"units": [
{
"maxstay": {
"quantity": "duration",
"denominations": [
"days",
"weeks",
"months"
]
}
}
],
"deletion": {

View file

@ -396,7 +396,34 @@
"nl": "één dag",
"de": "ein Tag"
}
},
{
"canonicalDenomination": "weeks",
"addSpace": true,
"canonicalDenominationSingular": "week",
"humanSingular": {
"en": "one week",
"nl": "één week"
},
"human": {
"en": "{quantity} weeks",
"nl": "{quantity} weken"
}
},
{
"canonicalDenomination": "months",
"addSpace": true,
"canonicalDenominationSingular": "month",
"humanSingular": {
"en": "one month",
"nl": "één maand"
},
"human": {
"en": "{quantity} months",
"nl": "{quantity} maanden"
}
}
]
}
]

View file

@ -510,6 +510,9 @@ export interface LayerConfigJson {
allowSplit?: boolean
/**
* Either a list with [{"key": "unitname", "key2": {"quantity": "unitname", "denominations": ["denom", "denom"]}}]
*
*
* @see UnitConfigJson
*
* group: editing