Commit 65b5acdb authored by Nicolas Fella's avatar Nicolas Fella

Translate stuff

parent 506d4087
...@@ -13,6 +13,7 @@ include(KDEInstallDirs) ...@@ -13,6 +13,7 @@ include(KDEInstallDirs)
include(KDECMakeSettings) include(KDECMakeSettings)
find_package(Qt5 REQUIRED COMPONENTS Gui Qml) find_package(Qt5 REQUIRED COMPONENTS Gui Qml)
find_package(KF5 REQUIRED COMPONENTS I18n)
if (ANDROID) if (ANDROID)
find_package(Qt5 REQUIRED COMPONENTS AndroidExtras) find_package(Qt5 REQUIRED COMPONENTS AndroidExtras)
...@@ -22,6 +23,4 @@ endif() ...@@ -22,6 +23,4 @@ endif()
find_package(KPublicTransport REQUIRED) find_package(KPublicTransport REQUIRED)
set(CMAKE_AUTOMOC ON)
add_subdirectory(src) add_subdirectory(src)
...@@ -27,7 +27,7 @@ import org.kde.kpublictransport 1.0 ...@@ -27,7 +27,7 @@ import org.kde.kpublictransport 1.0
Kirigami.Page Kirigami.Page
{ {
title: "Details" title: i18n("Details")
property var journey property var journey
...@@ -63,7 +63,7 @@ Kirigami.Page ...@@ -63,7 +63,7 @@ Kirigami.Page
text: { text: {
if (modelData.mode == JourneySection.Walking) { if (modelData.mode == JourneySection.Walking) {
return "Walking" return i18n("Walking")
} }
return modelData.route.line.name return modelData.route.line.name
......
...@@ -26,7 +26,7 @@ import org.kde.ktrip 0.1 ...@@ -26,7 +26,7 @@ import org.kde.ktrip 0.1
Kirigami.Page Kirigami.Page
{ {
title: "Connections" title: i18n("Connections")
ListView { ListView {
......
...@@ -31,17 +31,17 @@ Kirigami.Page ...@@ -31,17 +31,17 @@ Kirigami.Page
title: { title: {
if (type == "start") { if (type == "start") {
return "Search for start location" return i18n("Search for start location")
} }
if (type == "destination") { if (type == "destination") {
return "Search for destination location" return i18n("Search for destination location")
} }
return "deadbeef" return "deadbeef"
} }
header: TextField { header: TextField {
id: queryTextField id: queryTextField
placeholderText: "Search..." placeholderText: i18n("Search...")
onAccepted: { onAccepted: {
queryModel.query = text queryModel.query = text
showCached = false showCached = false
......
...@@ -28,11 +28,11 @@ Kirigami.Page ...@@ -28,11 +28,11 @@ Kirigami.Page
id: rootPage id: rootPage
property var start; property var start;
title: "Start journey" title: i18n("Start journey")
actions.main: Kirigami.Action { actions.main: Kirigami.Action {
icon.name: "search" icon.name: "search"
text: "Search" text: i18n("Search")
onTriggered: pageStack.push(Qt.resolvedUrl("ConnectionsPage.qml")) onTriggered: pageStack.push(Qt.resolvedUrl("ConnectionsPage.qml"))
} }
...@@ -41,11 +41,11 @@ Kirigami.Page ...@@ -41,11 +41,11 @@ Kirigami.Page
width: parent.width width: parent.width
Label { Label {
text: "From:" text: i18n("From:")
} }
Button { Button {
Layout.fillWidth: true Layout.fillWidth: true
text: _queryController.start.name ? _queryController.start.name : "Pick start" text: _queryController.start.name ? _queryController.start.name : i18n("Pick start")
onClicked: pageStack.push(Qt.resolvedUrl("LocationQueryPage.qml"), {type: "start"}) onClicked: pageStack.push(Qt.resolvedUrl("LocationQueryPage.qml"), {type: "start"})
} }
Label { Label {
...@@ -53,12 +53,12 @@ Kirigami.Page ...@@ -53,12 +53,12 @@ Kirigami.Page
} }
Button { Button {
Layout.fillWidth: true Layout.fillWidth: true
text: _queryController.start.name ? _queryController.destination.name : "Pick destination" text: _queryController.start.name ? _queryController.destination.name : i18n("Pick destination")
onClicked: pageStack.push(Qt.resolvedUrl("LocationQueryPage.qml"), {type: "destination"}) onClicked: pageStack.push(Qt.resolvedUrl("LocationQueryPage.qml"), {type: "destination"})
} }
Label { Label {
text: "Departure date:" text: i18n("Departure date:")
} }
DatePickerButton { DatePickerButton {
...@@ -68,7 +68,7 @@ Kirigami.Page ...@@ -68,7 +68,7 @@ Kirigami.Page
} }
Label { Label {
text: "Departure time:" text: i18n("Departure time:")
} }
TimePickerButton { TimePickerButton {
......
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