Commit c20c359f authored by Tomaz Canabrava's avatar Tomaz Canabrava

Translate FlightDisplay

Signed-off-by: 's avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 1957086f
......@@ -113,9 +113,9 @@ QGCView {
MessageDialog {
id: px4JoystickSupport
text: "Joystick support requires MAVLink MANUAL_CONTROL support. " +
"The firmware you are running does not normally support this. " +
"It will only work if you have modified the firmware to add MANUAL_CONTROL support."
text: qsTr("Joystick support requires MAVLink MANUAL_CONTROL support. ") +
qsTr("The firmware you are running does not normally support this. ") +
qsTr("It will only work if you have modified the firmware to add MANUAL_CONTROL support.")
}
Connections {
......
......@@ -119,7 +119,7 @@ FlightMap {
sourceItem: MissionItemIndexLabel {
isCurrentItem: true
label: "G"
label: qsTr("G", "Goto here waypoint") // second string is translator's hint.
}
}
......
......@@ -42,7 +42,7 @@ Item {
color: Qt.rgba(0,0,0,0.75)
visible: !_controller.videoRunning
QGCLabel {
text: "NO VIDEO"
text: qsTr("NO VIDEO")
font.weight: Font.DemiBold
color: "white"
font.pixelSize: _mainIsMap ? 12 * ScreenTools.fontHRatio : 20 * ScreenTools.fontHRatio
......
......@@ -172,7 +172,7 @@ Item {
QGCCheckBox {
id: followVehicleCheckBox
text: "Follow Vehicle"
text: qsTr("Follow Vehicle")
checked: _flightMap ? _flightMap._followVehicle : false
anchors.baseline: centerMapButton.baseline
......@@ -184,7 +184,7 @@ Item {
QGCButton {
id: centerMapButton
text: "Center map on Vehicle"
text: qsTr("Center map on Vehicle")
enabled: _activeVehicle && !followVehicleCheckBox.checked
property var activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
......@@ -232,7 +232,7 @@ Item {
}
QGCButton {
text: "Clear flight trails"
text: qsTr("Clear flight trails")
enabled: QGroundControl.multiVehicleManager.activeVehicle
onClicked: {
......@@ -387,7 +387,7 @@ Item {
_activeVehicle.setCurrentMissionSequence(_flightMap._retaskSequence)
break;
default:
console.warn("Internal error: unknown confirmActionCode", confirmActionCode)
console.warn(qsTr("Internal error: unknown confirmActionCode"), confirmActionCode)
}
}
......@@ -404,21 +404,21 @@ Item {
confirmActionCode = actionCode
switch (confirmActionCode) {
case confirmArm:
guidedModeConfirm.confirmText = "arm"
guidedModeConfirm.confirmText = qsTr("arm")
break;
case confirmDisarm:
guidedModeConfirm.confirmText = "disarm"
guidedModeConfirm.confirmText = qsTr("disarm")
break;
case confirmEmergencyStop:
guidedModeConfirm.confirmText = "STOP ALL MOTORS!"
guidedModeConfirm.confirmText = qsTr("STOP ALL MOTORS!")
break;
case confirmTakeoff:
altitudeSlider.visible = true
altitudeSlider.setInitialValueMeters(10)
guidedModeConfirm.confirmText = "takeoff"
guidedModeConfirm.confirmText = qsTr("takeoff")
break;
case confirmLand:
guidedModeConfirm.confirmText = "land"
guidedModeConfirm.confirmText = qsTr("land")
break;
case confirmHome:
guidedModeConfirm.confirmText = "return to launch"
......@@ -426,13 +426,13 @@ Item {
case confirmChangeAlt:
altitudeSlider.visible = true
altitudeSlider.setInitialValueAppSettingsDistanceUnits(_activeVehicle.altitudeAMSL.value)
guidedModeConfirm.confirmText = "change altitude"
guidedModeConfirm.confirmText = qsTr("change altitude")
break;
case confirmGoTo:
guidedModeConfirm.confirmText = "move vehicle"
guidedModeConfirm.confirmText = qsTr("move vehicle")
break;
case confirmRetask:
_guidedModeBar.confirmText = "active waypoint change"
_guidedModeBar.confirmText = qsTr("active waypoint change")
break;
}
guidedModeBar.visible = false
......@@ -450,24 +450,24 @@ Item {
spacing: _margins
QGCButton {
text: (_activeVehicle && _activeVehicle.armed) ? (_activeVehicle.flying ? "Emergency Stop" : "Disarm") : "Arm"
text: (_activeVehicle && _activeVehicle.armed) ? (_activeVehicle.flying ? qsTr("Emergency Stop") : qsTr("Disarm")) : qsTr("Arm")
onClicked: _guidedModeBar.confirmAction(_activeVehicle.armed ? (_activeVehicle.flying ? _guidedModeBar.confirmEmergencyStop : _guidedModeBar.confirmDisarm) : _guidedModeBar.confirmArm)
}
QGCButton {
text: "RTL"
text: qsTr("RTL")
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.flying
onClicked: _guidedModeBar.confirmAction(_guidedModeBar.confirmHome)
}
QGCButton {
text: (_activeVehicle && _activeVehicle.flying) ? "Land" : "Takeoff"
text: (_activeVehicle && _activeVehicle.flying) ? qsTr("Land"): qsTr("Takeoff")
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.armed
onClicked: _guidedModeBar.confirmAction(_activeVehicle.flying ? _guidedModeBar.confirmLand : _guidedModeBar.confirmTakeoff)
}
QGCButton {
text: "Pause"
text: qsTr("Pause")
visible: _activeVehicle && _activeVehicle.pauseVehicleSupported && _activeVehicle.flying
onClicked: {
guidedModeHideTimer.restart()
......@@ -476,7 +476,7 @@ Item {
}
QGCButton {
text: "Change Altitude"
text: qsTr("Change Altitude")
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.armed
onClicked: _guidedModeBar.confirmAction(_guidedModeBar.confirmChangeAlt)
}
......@@ -557,7 +557,7 @@ Item {
QGCLabel {
anchors.horizontalCenter: parent.horizontalCenter
text: "Alt (rel)"
text: qsTr("Alt (rel)")
}
QGCLabel {
......
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