surface localization

This commit is contained in:
vcoppe
2024-04-27 11:24:29 +02:00
parent ca7d85b421
commit 98b772539d
2 changed files with 32 additions and 1 deletions

View File

@@ -133,7 +133,7 @@
return [
` ${$_('quantities.distance')}: ${getDistanceWithUnits(point.x, false)}`,
` ${$_('quantities.slope')}: ${slope} %`,
` ${$_('quantities.surface')}: ${surface}`
` ${$_('quantities.surface')}: ${$_(`toolbar.routing.surface.${surface}`)}`
];
}
}

View File

@@ -47,6 +47,37 @@
"water": "Water",
"railway": "Railway"
},
"surface": {
"unknown": "Unknown",
"paved": "Paved",
"unpaved": "Unpaved",
"asphalt": "Asphalt",
"concrete": "Concrete",
"chipseal": "Chipseal",
"cobblestone": "Cobblestone",
"unhewn_cobblestone": "Unhewn cobblestone",
"paving_stones": "Paving stones",
"stepping_stones": "Stepping stones",
"sett": "Sett",
"metal": "Metal",
"wood": "Wood",
"compacted": "Compacted gravel",
"fine_gravel": "Fine gravel",
"gravel": "Gravel",
"pebblestone": "Pebblestone",
"rock": "Rock",
"dirt": "Dirt",
"ground": "Ground",
"earth": "Earth",
"snow": "Snow",
"ice": "Ice",
"salt": "Salt",
"mud": "Mud",
"sand": "Sand",
"woodchips": "Woodchips",
"grass": "Grass",
"grass_paver": "Grass paver"
},
"error": {
"from": "The start point is too far from the nearest road",
"to": "The end point is too far from the nearest road"