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

Translate stuff

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