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

Consistent spelling and i18n contexts for "canceled"

parent 2df27ebd
......@@ -40,7 +40,7 @@ Kirigami.ScrollablePage {
QQC2.Label {
text: {
if (departure.disruption == Disruption.NoService)
return i18nc("a train/bus journey cancelled by its operator", "Cancelled");
return i18nc("a train/bus journey canceled by its operator", "Canceled");
return (departure.departureDelay >= 0 ? "+" : "") + departure.departureDelay;
}
color: {
......
......@@ -33,7 +33,7 @@ Kirigami.AbstractListItem {
QQC2.Label {
text: {
if (modelData.disruption == Disruption.NoService)
return i18n("Cancelled");
return i18nc("a train/bus journey canceled by its operator", "Canceled");
return (modelData.departureDelay >= 0 ? "+" : "") + modelData.departureDelay;
}
color: {
......
......@@ -92,9 +92,9 @@ QString NotificationHelper::message(const LiveData &data)
{
QStringList msgs;
if (data.departure.disruptionEffect() == Disruption::NoService) {
msgs.push_back(i18n("Trip has been cancelled."));
msgs.push_back(i18nc("a train/bus journey canceled by its operator", "Trip has been canceled."));
} else if (data.arrival.disruptionEffect() == Disruption::NoService) {
msgs.push_back(i18n("Arrival has been cancelled."));
msgs.push_back(i18nc("a train/bus journey canceled by its operator", "Arrival has been canceled."));
}
if (data.departure.departureDelay() > 0) {
......
Markdown is supported
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