Commit d8a2c064 authored by Volker Krause's avatar Volker Krause
Browse files

Display rental vehicle journey sections correctly

parent 8ddeff3d
......@@ -101,7 +101,7 @@ Kirigami.AbstractListItem {
case JourneySection.Waiting:
return i18n("Wait (%1)", Localizer.formatDuration(modelData.duration))
case JourneySection.RentedVehicle:
return i18n("%1 (%2)", modelData.rentalVehicle.network, Localizer.formatDuration(modelData.duration));
return i18n("%1 %2 (%3)", modelData.rentalVehicle.network.name, Localizer.formatDistance(modelData.distance), Localizer.formatDuration(modelData.duration));
case JourneySection.IndividualTransport:
return i18n("Drive %1 (%2)", Localizer.formatDistance(modelData.distance), Localizer.formatDuration(modelData.duration));
return "???";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment