Commit fb0c9f26 authored by Tomaz Canabrava's avatar Tomaz Canabrava

Localize the PX4 QML Files

all calls to qsTr are done, if I didn't forget anything,
on the PX4 QML files.
Signed-off-by: 's avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 9ac9b3aa
...@@ -67,7 +67,7 @@ QGCView { ...@@ -67,7 +67,7 @@ QGCView {
Component.onCompleted: { Component.onCompleted: {
if (controller.showCustomConfigPanel) { if (controller.showCustomConfigPanel) {
showDialog(customConfigDialogComponent, "Custom Airframe Config", qgcView.showDialogDefaultWidth, StandardButton.Reset) showDialog(customConfigDialogComponent, qsTr("Custom Airframe Config"), qgcView.showDialogDefaultWidth, StandardButton.Reset)
} }
} }
} }
...@@ -77,9 +77,9 @@ QGCView { ...@@ -77,9 +77,9 @@ QGCView {
QGCViewMessage { QGCViewMessage {
id: customConfigDialog id: customConfigDialog
message: "Your vehicle is using a custom airframe configuration. " + message: qsTr("Your vehicle is using a custom airframe configuration. ") +
"This configuration can only be modified through the Parameter Editor.\n\n" + qsTr("This configuration can only be modified through the Parameter Editor.\n\n") +
"If you want to Reset your airframe configuration and select a standard configuration, click 'Reset' above." qsTr("If you want to Reset your airframe configuration and select a standard configuration, click 'Reset' above.")
property Fact sys_autostart: controller.getParameterFact(-1, "SYS_AUTOSTART") property Fact sys_autostart: controller.getParameterFact(-1, "SYS_AUTOSTART")
...@@ -104,8 +104,8 @@ QGCView { ...@@ -104,8 +104,8 @@ QGCView {
QGCLabel { QGCLabel {
anchors.fill: parent anchors.fill: parent
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
text: "Clicking “Apply” will save the changes you have made to your airframe configuration. " + text: qsTr("Clicking “Apply” will save the changes you have made to your airframe configuration. ") +
"Your vehicle will also be restarted in order to complete the process." qsTr("Your vehicle will also be restarted in order to complete the process.")
} }
} }
} }
...@@ -127,9 +127,9 @@ QGCView { ...@@ -127,9 +127,9 @@ QGCView {
id: helpText id: helpText
width: parent.width - applyButton.width - 5 width: parent.width - applyButton.width - 5
text: (controller.currentVehicleName != "" ? text: (controller.currentVehicleName != "" ?
"You've connected a " + controller.currentVehicleName : qsTr("You've connected a %1.").arg(controller.currentVehicleName) :
"Airframe is not set") + qsTr("Airframe is not set.")) +
". To change this configuration, select the desired airframe below then click “Apply and Restart”." qsTr("To change this configuration, select the desired airframe below then click “Apply and Restart”.")
font.weight: Font.DemiBold font.weight: Font.DemiBold
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
...@@ -137,9 +137,9 @@ QGCView { ...@@ -137,9 +137,9 @@ QGCView {
QGCButton { QGCButton {
id: applyButton id: applyButton
anchors.right: parent.right anchors.right: parent.right
text: "Apply and Restart" text: qsTr("Apply and Restart")
onClicked: showDialog(applyRestartDialogComponent, "Apply and Restart", qgcView.showDialogDefaultWidth, StandardButton.Apply | StandardButton.Cancel) onClicked: showDialog(applyRestartDialogComponent, qsTr("Apply and Restart"), qgcView.showDialogDefaultWidth, StandardButton.Apply | StandardButton.Cancel)
} }
} }
......
...@@ -25,18 +25,18 @@ FactPanel { ...@@ -25,18 +25,18 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "System ID:" labelText: qsTr("System ID:")
valueText: sysIdFact ? sysIdFact.valueString : "" valueText: sysIdFact ? sysIdFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Airframe type:" labelText: qsTr("Airframe type:")
valueText: autoStartSet ? controller.currentAirframeType : "Setup required" valueText: autoStartSet ? controller.currentAirframeType : qsTr("Setup required")
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Vehicle:" labelText: qsTr("Vehicle:")
valueText: autoStartSet ? controller.currentVehicleName : "Setup required" valueText: autoStartSet ? controller.currentVehicleName : qsTr("Setup required")
} }
} }
} }
...@@ -33,15 +33,15 @@ FactPanel { ...@@ -33,15 +33,15 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Mode switch:" labelText: qsTr("Mode switch:")
valueText: _rcMapFltmode.value === 0 ? "Setup required" : _rcMapFltmode.enumStringValue valueText: _rcMapFltmode.value === 0 ? qsTr("Setup required") : _rcMapFltmode.enumStringValue
} }
Repeater { Repeater {
model: 6 model: 6
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Flight Mode " + (index + 1) + ":" labelText: qsTr("Flight Mode %1 :").arg(index + 1)
valueText: controller.getParameterFact(-1, "COM_FLTMODE" + (index + 1)).enumStringValue valueText: controller.getParameterFact(-1, "COM_FLTMODE" + (index + 1)).enumStringValue
} }
} }
...@@ -59,23 +59,23 @@ FactPanel { ...@@ -59,23 +59,23 @@ FactPanel {
property Fact returnSwFact: controller.getParameterFact(-1, "RC_MAP_RETURN_SW") property Fact returnSwFact: controller.getParameterFact(-1, "RC_MAP_RETURN_SW")
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Mode switch:" labelText: qsTr("Mode switch:")
valueText: _rcMapModeSw.value === 0 ? "Setup required" : _rcMapModeSw.valueString valueText: _rcMapModeSw.value === 0 ? qsTr("Setup required") : _rcMapModeSw.valueString
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Position Ctl switch:" labelText: qsTr("Position Ctl switch:")
valueText: posCtlSwFact.value === 0 ? "Disabled" : posCtlSwFact.valueString valueText: posCtlSwFact.value === 0 ? qsTr("Disabled") : posCtlSwFact.valueString
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Loiter switch:" labelText: qsTr("Loiter switch:")
valueText: loiterSwFact.value === 0 ? "Disabled" : loiterSwFact.valueString valueText: loiterSwFact.value === 0 ? qsTr("Disabled") : loiterSwFact.valueString
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Return switch:" labelText: qsTr("Return switch:")
valueText: returnSwFact.value === 0 ? "Disabled" : returnSwFact.valueString valueText: returnSwFact.value === 0 ? qsTr("Disabled") : returnSwFact.valueString
} }
} }
} }
......
...@@ -27,38 +27,38 @@ FactPanel { ...@@ -27,38 +27,38 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Roll:" labelText: qsTr("Roll:")
valueText: mapRollFact ? (mapRollFact.value === 0 ? "Setup required" : mapRollFact.valueString) : "" valueText: mapRollFact ? (mapRollFact.value === 0 ? qsTr("Setup required") : mapRollFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Pitch:" labelText: qsTr("Pitch:")
valueText: mapPitchFact ? (mapPitchFact.value === 0 ? "Setup required" : mapPitchFact.valueString) : "" valueText: mapPitchFact ? (mapPitchFact.value === 0 ? qsTr("Setup required") : mapPitchFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Yaw:" labelText: qsTr("Yaw:")
valueText: mapYawFact ? (mapYawFact.value === 0 ? "Setup required" : mapYawFact.valueString) : "" valueText: mapYawFact ? (mapYawFact.value === 0 ? qsTr("Setup required") : mapYawFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Throttle:" labelText: qsTr("Throttle:")
valueText: mapThrottleFact ? (mapThrottleFact.value === 0 ? "Setup required" : mapThrottleFact.valueString) : "" valueText: mapThrottleFact ? (mapThrottleFact.value === 0 ? qsTr("Setup required") : mapThrottleFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Flaps:" labelText: qsTr("Flaps:")
valueText: mapFlapsFact ? (mapFlapsFact.value === 0 ? "Disabled" : mapFlapsFact.valueString) : "" valueText: mapFlapsFact ? (mapFlapsFact.value === 0 ? qsTr("Disabled") : mapFlapsFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Aux1:" labelText: qsTr("Aux1:")
valueText: mapAux1Fact ? (mapAux1Fact.value === 0 ? "Disabled" : mapAux1Fact.valueString) : "" valueText: mapAux1Fact ? (mapAux1Fact.value === 0 ? qsTr("Disabled") : mapAux1Fact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Aux2:" labelText: qsTr("Aux2:")
valueText: mapAux2Fact ? (mapAux2Fact.value === 0 ? "Disabled" : mapAux2Fact.valueString) : "" valueText: mapAux2Fact ? (mapAux2Fact.value === 0 ? qsTr("Disabled") : mapAux2Fact.valueString) : ""
} }
} }
} }
...@@ -70,7 +70,7 @@ Item { ...@@ -70,7 +70,7 @@ Item {
QGCLabel { QGCLabel {
id: flightModeLabel id: flightModeLabel
text: "Flight Mode Settings" text: qsTr("Flight Mode Settings")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
...@@ -93,7 +93,7 @@ Item { ...@@ -93,7 +93,7 @@ Item {
QGCLabel { QGCLabel {
id: modeChannelLabel id: modeChannelLabel
anchors.baseline: modeChannelCombo.baseline anchors.baseline: modeChannelCombo.baseline
text: "Flight mode channel:" text: qsTr("Flight mode channel:")
} }
FactComboBox { FactComboBox {
...@@ -114,7 +114,7 @@ Item { ...@@ -114,7 +114,7 @@ Item {
QGCLabel { QGCLabel {
anchors.baseline: modeCombo.baseline anchors.baseline: modeCombo.baseline
text: "Flight Mode " + index + ":" text: qsTr("Flight Mode %1:)").arg(index)
color: controller.activeFlightMode == index ? "yellow" : qgcPal.text color: controller.activeFlightMode == index ? "yellow" : qgcPal.text
} }
...@@ -134,7 +134,7 @@ Item { ...@@ -134,7 +134,7 @@ Item {
spacing: _margins spacing: _margins
QGCLabel { QGCLabel {
text: "Switch Settings" text: qsTr("Switch Settings")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
......
...@@ -32,8 +32,8 @@ FactSliderPanel { ...@@ -32,8 +32,8 @@ FactSliderPanel {
sliderModel: ListModel { sliderModel: ListModel {
ListElement { ListElement {
title: "Throttle Hover" title: qsTr("Throttle Hover")
description: "Adjust throttle so hover is at mid-throttle. Slide to the left if hover is lower than throttle center. Slide to the right if hover is higher than throttle center." description: qsTr("Adjust throttle so hover is at mid-throttle. Slide to the left if hover is lower than throttle center. Slide to the right if hover is higher than throttle center.")
param: "MPC_THR_HOVER" param: "MPC_THR_HOVER"
min: 0.2 min: 0.2
max: 0.8 max: 0.8
...@@ -41,8 +41,8 @@ FactSliderPanel { ...@@ -41,8 +41,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Roll sensitivity" title: qsTr("Roll sensitivity")
description: "Slide to the left to make roll control faster and more accurate. Slide to the right if roll oscillates or is too twitchy." description: qsTr("Slide to the left to make roll control faster and more accurate. Slide to the right if roll oscillates or is too twitchy.")
param: "MC_ROLL_TC" param: "MC_ROLL_TC"
min: 0.15 min: 0.15
max: 0.25 max: 0.25
...@@ -50,8 +50,8 @@ FactSliderPanel { ...@@ -50,8 +50,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Pitch sensitivity" title: qsTr("Pitch sensitivity")
description: "Slide to the left to make pitch control faster and more accurate. Slide to the right if pitch oscillates or is too twitchy." description: qsTr("Slide to the left to make pitch control faster and more accurate. Slide to the right if pitch oscillates or is too twitchy.")
param: "MC_PITCH_TC" param: "MC_PITCH_TC"
min: 0.15 min: 0.15
max: 0.25 max: 0.25
...@@ -59,8 +59,8 @@ FactSliderPanel { ...@@ -59,8 +59,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Altitude control sensitivity" title: qsTr("Altitude control sensitivity")
description: "Slide to the left to make altitude control smoother and less twitchy. Slide to the right to make altitude control more accurate and more aggressive." description: qsTr("Slide to the left to make altitude control smoother and less twitchy. Slide to the right to make altitude control more accurate and more aggressive.")
param: "MPC_Z_FF" param: "MPC_Z_FF"
min: 0 min: 0
max: 1.0 max: 1.0
...@@ -68,8 +68,8 @@ FactSliderPanel { ...@@ -68,8 +68,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Position control sensitivity" title: qsTr("Position control sensitivity")
description: "Slide to the left to make flight in position control mode smoother and less twitchy. Slide to the right to make position control more accurate and more aggressive." description: qsTr("Slide to the left to make flight in position control mode smoother and less twitchy. Slide to the right to make position control more accurate and more aggressive.")
param: "MPC_XY_FF" param: "MPC_XY_FF"
min: 0 min: 0
max: 1.0 max: 1.0
...@@ -77,13 +77,12 @@ FactSliderPanel { ...@@ -77,13 +77,12 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Manual minimum throttle" title: qsTr("Manual minimum throttle")
description: "Slide to the left to start the motors with less idle power. Slide to the right if descending in manual flight becomes unstable." description: qsTr("Slide to the left to start the motors with less idle power. Slide to the right if descending in manual flight becomes unstable.")
param: "MPC_MANTHR_MIN" param: "MPC_MANTHR_MIN"
min: 0 min: 0
max: 0.15 max: 0.15
step: 0.01 step: 0.01
} }
} }
} }
...@@ -32,8 +32,8 @@ FactSliderPanel { ...@@ -32,8 +32,8 @@ FactSliderPanel {
sliderModel: ListModel { sliderModel: ListModel {
ListElement { ListElement {
title: "Hover Roll sensitivity" title: qsTr("Hover Roll sensitivity")
description: "Slide to the left to make roll control during hover faster and more accurate. Slide to the right if roll oscillates or is too twitchy." description: qsTr("Slide to the left to make roll control during hover faster and more accurate. Slide to the right if roll oscillates or is too twitchy.")
param: "MC_ROLL_TC" param: "MC_ROLL_TC"
min: 0.15 min: 0.15
max: 0.25 max: 0.25
...@@ -41,8 +41,8 @@ FactSliderPanel { ...@@ -41,8 +41,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Hover Pitch sensitivity" title: qsTr("Hover Pitch sensitivity")
description: "Slide to the left to make pitch control during hover faster and more accurate. Slide to the right if pitch oscillates or is too twitchy." description: qsTr("Slide to the left to make pitch control during hover faster and more accurate. Slide to the right if pitch oscillates or is too twitchy.")
param: "MC_PITCH_TC" param: "MC_PITCH_TC"
min: 0.15 min: 0.15
max: 0.25 max: 0.25
...@@ -50,8 +50,8 @@ FactSliderPanel { ...@@ -50,8 +50,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Hover Altitude control sensitivity" title: qsTr("Hover Altitude control sensitivity")
description: "Slide to the left to make altitude control during hover smoother and less twitchy. Slide to the right to make altitude control more accurate and more aggressive." description: qsTr("Slide to the left to make altitude control during hover smoother and less twitchy. Slide to the right to make altitude control more accurate and more aggressive.")
param: "MPC_Z_FF" param: "MPC_Z_FF"
min: 0 min: 0
max: 1.0 max: 1.0
...@@ -59,16 +59,16 @@ FactSliderPanel { ...@@ -59,16 +59,16 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Hover Position control sensitivity" title: qsTr("Hover Position control sensitivity")
description: "Slide to the left to make flight during hover in position control mode smoother and less twitchy. Slide to the right to make position control more accurate and more aggressive." description: qsTr("Slide to the left to make flight during hover in position control mode smoother and less twitchy. Slide to the right to make position control more accurate and more aggressive.")
param: "MPC_XY_FF" param: "MPC_XY_FF"
min: 0 min: 0
max: 1.0 max: 1.0
step: 0.1 step: 0.1
} }
ListElement { ListElement {
title: "Plane Roll sensitivity" title: qsTr("Plane Roll sensitivity")
description: "Slide to the left to make roll control faster and more accurate. Slide to the right if roll oscillates or is too twitchy." description: qsTr("Slide to the left to make roll control faster and more accurate. Slide to the right if roll oscillates or is too twitchy.")
param: "FW_R_TC" param: "FW_R_TC"
min: 0.2 min: 0.2
max: 0.8 max: 0.8
...@@ -76,8 +76,8 @@ FactSliderPanel { ...@@ -76,8 +76,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Plane Pitch sensitivity" title: qsTr("Plane Pitch sensitivity")
description: "Slide to the left to make pitch control faster and more accurate. Slide to the right if pitch oscillates or is too twitchy." description: qsTr("Slide to the left to make pitch control faster and more accurate. Slide to the right if pitch oscillates or is too twitchy.")
param: "FW_P_TC" param: "FW_P_TC"
min: 0.2 min: 0.2
max: 0.8 max: 0.8
...@@ -85,8 +85,8 @@ FactSliderPanel { ...@@ -85,8 +85,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Plane Cruise throttle" title: qsTr("Plane Cruise throttle")
description: "This is the throttle setting required to achieve the desired cruise speed. Most planes need 50-60%." description: qsTr("This is the throttle setting required to achieve the desired cruise speed. Most planes need 50-60%.")
param: "FW_THR_CRUISE" param: "FW_THR_CRUISE"
min: 0.2 min: 0.2
max: 0.8 max: 0.8
...@@ -94,8 +94,8 @@ FactSliderPanel { ...@@ -94,8 +94,8 @@ FactSliderPanel {
} }
ListElement { ListElement {
title: "Plane Mission mode sensitivity" title: qsTr("Plane Mission mode sensitivity")
description: "Slide to the left to make position control more accurate and more aggressive. Slide to the right to make flight in mission mode smoother and less twitchy." description: qsTr("Slide to the left to make position control more accurate and more aggressive. Slide to the right to make flight in mission mode smoother and less twitchy.")
param: "FW_L1_PERIOD" param: "FW_L1_PERIOD"
min: 12 min: 12
max: 50 max: 50
......
This diff is collapsed.
...@@ -50,17 +50,17 @@ FactPanel { ...@@ -50,17 +50,17 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Battery Full:" labelText: qsTr("Battery Full:")
valueText: batVChargedFact ? batVChargedFact.valueString : "" valueText: batVChargedFact ? batVChargedFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Battery Empty:" labelText: qsTr("Battery Empty:")
valueText: batVEmptyFact ? batVEmptyFact.valueString : "" valueText: batVEmptyFact ? batVEmptyFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Number of Cells:" labelText: qsTr("Number of Cells:")
valueText: batCellsFact ? batCellsFact.valueString : "" valueText: batCellsFact ? batCellsFact.valueString : ""
} }
} }
......
...@@ -63,7 +63,7 @@ QGCView { ...@@ -63,7 +63,7 @@ QGCView {
QGCLabel { QGCLabel {
id: triggerLabel id: triggerLabel
text: "Triggers For Return Home" text: qsTr("Triggers For Return Home")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
...@@ -78,7 +78,7 @@ QGCView { ...@@ -78,7 +78,7 @@ QGCView {
color: palette.windowShade color: palette.windowShade
QGCLabel { QGCLabel {
text: "RC Transmitter Signal Loss: Return Home after" text: qsTr("RC Transmitter Signal Loss: Return Home after")
anchors.margins: _margins anchors.margins: _margins
anchors.left: parent.left anchors.left: parent.left
anchors.baseline: rcLossField.baseline anchors.baseline: rcLossField.baseline
...@@ -101,7 +101,7 @@ QGCView { ...@@ -101,7 +101,7 @@ QGCView {
fact: controller.getParameterFact(-1, "COM_DL_LOSS_EN") fact: controller.getParameterFact(-1, "COM_DL_LOSS_EN")
checkedValue: 1 checkedValue: 1
uncheckedValue: 0 uncheckedValue: 0
text: "Telemetry Signal Timeout: Return Home after" text: qsTr("Telemetry Signal Timeout: Return Home after")
} }
FactTextField { FactTextField {
...@@ -121,7 +121,7 @@ QGCView { ...@@ -121,7 +121,7 @@ QGCView {
anchors.leftMargin: _margins anchors.leftMargin: _margins
anchors.left: triggerSettings.right anchors.left: triggerSettings.right
anchors.top: parent.top anchors.top: parent.top
text: "GeoFence" text: qsTr("GeoFence")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
...@@ -139,7 +139,7 @@ QGCView { ...@@ -139,7 +139,7 @@ QGCView {
anchors.margins: _margins anchors.margins: _margins
anchors.left: parent.left anchors.left: parent.left
anchors.baseline: fenceActionCombo.baseline anchors.baseline: fenceActionCombo.baseline
text: "Action on breach:" text: qsTr("Action on breach:")
} }
FactComboBox { FactComboBox {
...@@ -148,7 +148,7 @@ QGCView { ...@@ -148,7 +148,7 @@ QGCView {
anchors.left: fenceActionLabel.right anchors.left: fenceActionLabel.right
anchors.top: parent.top anchors.top: parent.top
width: fenceAltMaxField.width width: fenceAltMaxField.width
model: [ "None", "Warning", "Loiter", "Return Home", "Flight termination" ] model: [ qsTr("None"), qsTr("Warning"), qsTr("Loiter"), qsTr("Return Home"), qsTr("Flight termination") ]
fact: _fenceAction fact: _fenceAction
} }
...@@ -156,7 +156,7 @@ QGCView { ...@@ -156,7 +156,7 @@ QGCView {
id: fenceRadiusCheckBox id: fenceRadiusCheckBox
anchors.left: fenceActionLabel.left anchors.left: fenceActionLabel.left
anchors.baseline: fenceRadiusField.baseline anchors.baseline: fenceRadiusField.baseline
text: "Max radius:" text: qsTr("Max radius:")
checked: _fenceRadius.value >= 0 checked: _fenceRadius.value >= 0
onClicked: _fenceRadius.value = checked ? 100 : -1 onClicked: _fenceRadius.value = checked ? 100 : -1
...@@ -176,7 +176,7 @@ QGCView { ...@@ -176,7 +176,7 @@ QGCView {
id: fenceAltMaxCheckBox id: fenceAltMaxCheckBox
anchors.left: fenceActionLabel.left anchors.left: fenceActionLabel.left
anchors.baseline: fenceAltMaxField.baseline anchors.baseline: fenceAltMaxField.baseline
text: "Max altitude:" text: qsTr("Max altitude:")
checked: _fenceAlt.value >= 0 checked: _fenceAlt.value >= 0
onClicked: _fenceAlt.value = checked ? 100 : -1 onClicked: _fenceAlt.value = checked ? 100 : -1
...@@ -197,7 +197,7 @@ QGCView { ...@@ -197,7 +197,7 @@ QGCView {
id: rtlLabel id: rtlLabel
anchors.topMargin: _margins anchors.topMargin: _margins
anchors.top: triggerSettings.bottom anchors.top: triggerSettings.bottom
text: "Return Home Settings" text: qsTr("Return Home Settings")
font.weight: Font.DemiBold font.weight: Font.DemiBold
} }
...@@ -234,7 +234,7 @@ QGCView { ...@@ -234,7 +234,7 @@ QGCView {
anchors.margins: _margins anchors.margins: _margins
anchors.left: icon.right anchors.left: icon.right
anchors.baseline: climbField.baseline anchors.baseline: climbField.baseline
text: "Climb to altitude of" text: qsTr("Climb to altitude of")
} }
FactTextField { FactTextField {
...@@ -274,8 +274,7 @@ QGCView { ...@@ -274,8 +274,7 @@ QGCView {
anchors.left: climbLabel.left anchors.left: climbLabel.left
checked: _rtlLandDelay.value >= 0 checked: _rtlLandDelay.value >= 0
exclusiveGroup: homeLoiterGroup exclusiveGroup: homeLoiterGroup
text: "Loiter at Home altitude for" text: qsTr("Loiter at Home altitude for")
onClicked: _rtlLandDelay.value = 60 onClicked: _rtlLandDelay.value = 60
} }
...@@ -290,7 +289,7 @@ QGCView { ...@@ -290,7 +289,7 @@ QGCView {
} }
QGCLabel { QGCLabel {
text: "Home loiter altitude" text: qsTr("Home loiter altitude")
anchors.baseline: descendField.baseline anchors.baseline: descendField.baseline
anchors.left: climbLabel.left anchors.left: climbLabel.left
color: palette.text color: palette.text
...@@ -315,7 +314,7 @@ QGCView { ...@@ -315,7 +314,7 @@ QGCView {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
font.pixelSize: ScreenTools.mediumFontPixelSize font.pixelSize: ScreenTools.mediumFontPixelSize
text: "Warning: You have an advanced safety configuration set using the NAV_RCL_OBC parameter. The above settings may not apply."; text: qsTr("Warning: You have an advanced safety configuration set using the NAV_RCL_OBC parameter. The above settings may not apply.")
visible: fact.value !== 0 visible: fact.value !== 0
wrapMode: Text.Wrap wrapMode: Text.Wrap
...@@ -329,7 +328,7 @@ QGCView { ...@@ -329,7 +328,7 @@ QGCView {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
font.pixelSize: ScreenTools.mediumFontPixelSize font.pixelSize: ScreenTools.mediumFontPixelSize
text: "Warning: You have an advanced safety configuration set using the NAV_DLL_OBC parameter. The above settings may not apply."; text: qsTr("Warning: You have an advanced safety configuration set using the NAV_DLL_OBC parameter. The above settings may not apply.")
visible: fact.value !== 0 visible: fact.value !== 0
wrapMode: Text.Wrap wrapMode: Text.Wrap
......
...@@ -25,27 +25,27 @@ FactPanel { ...@@ -25,27 +25,27 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "RTL min alt:" labelText: qsTr("RTL min alt:")
valueText: returnAltFact ? returnAltFact.valueString : "" valueText: returnAltFact ? returnAltFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "RTL home alt:" labelText: qsTr("RTL home alt:")
valueText: descendAltFact ? descendAltFact.valueString : "" valueText: descendAltFact ? descendAltFact.valueString : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "RTL loiter delay:" labelText: qsTr("RTL loiter delay:")
valueText: landDelayFact ? (landDelayFact.value < 0 ? "Disabled" : landDelayFact.valueString) : "" valueText: landDelayFact ? (landDelayFact.value < 0 ? qsTr("Disabled") : landDelayFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Telemetry loss RTL:" labelText: qsTr("Telemetry loss RTL:")
valueText: commDLLossFact ? (commDLLossFact.value != -1 ? "Disabled" : commDLLossFact.valueString) : "" valueText: commDLLossFact ? (commDLLossFact.value != -1 ? qsTr("Disabled") : commDLLossFact.valueString) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "RC loss RTL (seconds):" labelText: qsTr("RC loss RTL (seconds):")
valueText: commRCLossFact ? commRCLossFact.valueString : "" valueText: commRCLossFact ? commRCLossFact.valueString : ""
} }
} }
......
...@@ -30,30 +30,30 @@ FactPanel { ...@@ -30,30 +30,30 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Compass 0:" labelText: qsTr("Compass 0:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : ("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Compass 1:" labelText: qsTr("Compass 1:")
visible: mag1IdFact.value !== 0 visible: mag1IdFact.value !== 0
valueText: "Ready" valueText: qsTr("Ready")
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Compass 2:" labelText: qsTr("Compass 2:")
visible: mag2IdFact.value !== 0 visible: mag2IdFact.value !== 0
valueText: "Ready" valueText: qsTr("Ready")
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Gyro:" labelText: qsTr("Gyro:")
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Accelerometer:" labelText: qsTr("Accelerometer:")
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
} }
} }
...@@ -28,23 +28,23 @@ FactPanel { ...@@ -28,23 +28,23 @@ FactPanel {
anchors.margins: 8 anchors.margins: 8
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Compass:" labelText: qsTr("Compass:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Gyro:" labelText: qsTr("Gyro:")
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Accelerometer:" labelText: qsTr("Accelerometer:")
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? "Setup required" : "Ready") : "" valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
labelText: "Airspeed:" labelText: qsTr("Airspeed:")
valueText: dpressOffFact ? (dpressOffFact.value === 0 ? "Setup required" : "Ready") : "" valueText: dpressOffFact ? (dpressOffFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
} }
} }
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