Improve display and i18n
authorLuciano Montanaro <mikelima@cirulla.net>
Thu, 12 Jan 2012 21:39:54 +0000 (22:39 +0100)
committerLuciano Montanaro <mikelima@cirulla.net>
Thu, 12 Jan 2012 21:39:54 +0000 (22:39 +0100)
application/resources/harmattan/qml/StationScheduleDelegate.qml

index 54579fb..366be29 100644 (file)
@@ -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
     }