From 5ccbcc7c260843b27ad125b7d59f1a59b2c158d5 Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Thu, 12 Jan 2012 22:39:54 +0100 Subject: [PATCH] Improve display and i18n --- .../harmattan/qml/StationScheduleDelegate.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/resources/harmattan/qml/StationScheduleDelegate.qml b/application/resources/harmattan/qml/StationScheduleDelegate.qml index 54579fb..366be29 100644 --- a/application/resources/harmattan/qml/StationScheduleDelegate.qml +++ b/application/resources/harmattan/qml/StationScheduleDelegate.qml @@ -56,13 +56,13 @@ Item { } } Label { - text: qsTr("from ") + root.arrivalStation + text: qsTr("from %1").arg(root.arrivalStation) font.bold: UiConstants.DefaultFontBoldness font.pixelSize: UiConstants.DefaultFontPixelSize visible: type === StationScheduleModel.ArrivalSchedule } Label { - text: qsTr("to ") + root.departureStation + text: qsTr("to %1").arg(root.departureStation) font.bold: UiConstants.DefaultFontBoldness font.pixelSize: UiConstants.DefaultFontPixelSize visible: type === StationScheduleModel.DepartureSchedule @@ -80,7 +80,8 @@ Item { right: bodyRow.right rightMargin: UiConstants.DefaultMargin } - text: qsTr("Platform ") + root.actualPlatform + text: qsTr("Platform %1").arg((root.actualPlatform === "--") ? root.expectedPlatfrom : root.actualPlatform) + color: root.actualPlatform === "--" ? "#ddd" : UiConstants.AccentColor font.bold: UiConstants.SubtitleFontBoldness font.pixelSize: UiConstants.SubtitleFontPixelSize } -- 1.7.9.5