summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-10-11 16:29:51 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-10-11 16:29:51 (GMT)
commite94666fe77c9e3d3d16a97ca93280fa0026f81d9 (patch)
tree8b514dbf9d77b9210ea2947b9a537f43cac57b7d
parente186d795addd54f1c41570babc7207467bf42bba (diff)
Make more strings in Maps localizable
-rw-r--r--src/apps/marble-maps/MainScreen.qml2
-rw-r--r--src/apps/marble-maps/NavigationInfoBar.qml6
-rw-r--r--src/apps/marble-maps/PlacemarkDialog.qml2
-rw-r--r--src/apps/marble-maps/RouteEditor.qml2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/apps/marble-maps/MainScreen.qml b/src/apps/marble-maps/MainScreen.qml
index 8d822b0..3262507 100644
--- a/src/apps/marble-maps/MainScreen.qml
+++ b/src/apps/marble-maps/MainScreen.qml
@@ -246,7 +246,7 @@ ApplicationWindow {
BoxedText {
id: distanceIndicator
- text: "%1 km".arg(zoomToPositionButton.distance < 10 ? zoomToPositionButton.distance.toFixed(1) : zoomToPositionButton.distance.toFixed(0))
+ text: qsTr("%1 km").arg(zoomToPositionButton.distance < 10 ? zoomToPositionButton.distance.toFixed(1) : zoomToPositionButton.distance.toFixed(0))
anchors {
bottom: zoomToPositionButton.top
horizontalCenter: zoomToPositionButton.horizontalCenter
diff --git a/src/apps/marble-maps/NavigationInfoBar.qml b/src/apps/marble-maps/NavigationInfoBar.qml
index e3b8ecd..b383cec 100644
--- a/src/apps/marble-maps/NavigationInfoBar.qml
+++ b/src/apps/marble-maps/NavigationInfoBar.qml
@@ -23,11 +23,11 @@ Item {
function formatDistance(distance)
{
if (distance > 1000) {
- return "%1 km".arg((0.001 * distance).toFixed(1))
+ return qsTr("%1 km").arg((0.001 * distance).toFixed(1))
} else if (distance > 100) {
- return "%1 m".arg((distance*0.01).toFixed(0)*100)
+ return qsTr("%1 m").arg((distance*0.01).toFixed(0)*100)
} else {
- return "%1 m".arg((distance*0.1).toFixed(0)*10)
+ return qsTr("%1 m").arg((distance*0.1).toFixed(0)*10)
}
}
diff --git a/src/apps/marble-maps/PlacemarkDialog.qml b/src/apps/marble-maps/PlacemarkDialog.qml
index f8e7e33..774947c 100644
--- a/src/apps/marble-maps/PlacemarkDialog.qml
+++ b/src/apps/marble-maps/PlacemarkDialog.qml
@@ -93,7 +93,7 @@ Item {
IconText {
width: parent.width
visible: placemark !== null && placemark.elevation !== ""
- text: placemark === null ? "" : ("Elevation : " + placemark.elevation + " m")
+ text: placemark === null ? "" : qsTr("Elevation: %1 m").arg(placemark.elevation)
}
IconText {
diff --git a/src/apps/marble-maps/RouteEditor.qml b/src/apps/marble-maps/RouteEditor.qml
index f4d054d..ed79142 100644
--- a/src/apps/marble-maps/RouteEditor.qml
+++ b/src/apps/marble-maps/RouteEditor.qml
@@ -63,7 +63,7 @@ Item {
id: helpText
visible: waypointList.count < 2
color: "gray"
- text: "Search for places to integrate them into a route."
+ text: qsTr("Search for places to integrate them into a route.")
}
ListView {