Commit fb0c9f26 authored by Tomaz Canabrava's avatar Tomaz Canabrava
Browse files

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: default avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 9ac9b3aa
......@@ -67,7 +67,7 @@ QGCView {
Component.onCompleted: {
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 {
QGCViewMessage {
id: customConfigDialog
message: "Your vehicle is using a custom airframe configuration. " +
"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."
message: qsTr("Your vehicle is using a custom airframe configuration. ") +
qsTr("This configuration can only be modified through the Parameter Editor.\n\n") +
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")
......@@ -104,8 +104,8 @@ QGCView {
QGCLabel {
anchors.fill: parent
wrapMode: Text.WordWrap
text: "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."
text: qsTr("Clicking “Apply” will save the changes you have made to your airframe configuration. ") +
qsTr("Your vehicle will also be restarted in order to complete the process.")
}
}
}
......@@ -127,9 +127,9 @@ QGCView {
id: helpText
width: parent.width - applyButton.width - 5
text: (controller.currentVehicleName != "" ?
"You've connected a " + controller.currentVehicleName :
"Airframe is not set") +
". To change this configuration, select the desired airframe below then click “Apply and Restart”."
qsTr("You've connected a %1.").arg(controller.currentVehicleName) :
qsTr("Airframe is not set.")) +
qsTr("To change this configuration, select the desired airframe below then click “Apply and Restart”.")
font.weight: Font.DemiBold
wrapMode: Text.WordWrap
}
......@@ -137,9 +137,9 @@ QGCView {
QGCButton {
id: applyButton
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 {
anchors.margins: 8
VehicleSummaryRow {
labelText: "System ID:"
labelText: qsTr("System ID:")
valueText: sysIdFact ? sysIdFact.valueString : ""
}
VehicleSummaryRow {
labelText: "Airframe type:"
valueText: autoStartSet ? controller.currentAirframeType : "Setup required"
labelText: qsTr("Airframe type:")
valueText: autoStartSet ? controller.currentAirframeType : qsTr("Setup required")
}
VehicleSummaryRow {
labelText: "Vehicle:"
valueText: autoStartSet ? controller.currentVehicleName : "Setup required"
labelText: qsTr("Vehicle:")
valueText: autoStartSet ? controller.currentVehicleName : qsTr("Setup required")
}
}
}
......@@ -33,15 +33,15 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Mode switch:"
valueText: _rcMapFltmode.value === 0 ? "Setup required" : _rcMapFltmode.enumStringValue
labelText: qsTr("Mode switch:")
valueText: _rcMapFltmode.value === 0 ? qsTr("Setup required") : _rcMapFltmode.enumStringValue
}
Repeater {
model: 6
VehicleSummaryRow {
labelText: "Flight Mode " + (index + 1) + ":"
labelText: qsTr("Flight Mode %1 :").arg(index + 1)
valueText: controller.getParameterFact(-1, "COM_FLTMODE" + (index + 1)).enumStringValue
}
}
......@@ -59,23 +59,23 @@ FactPanel {
property Fact returnSwFact: controller.getParameterFact(-1, "RC_MAP_RETURN_SW")
VehicleSummaryRow {
labelText: "Mode switch:"
valueText: _rcMapModeSw.value === 0 ? "Setup required" : _rcMapModeSw.valueString
labelText: qsTr("Mode switch:")
valueText: _rcMapModeSw.value === 0 ? qsTr("Setup required") : _rcMapModeSw.valueString
}
VehicleSummaryRow {
labelText: "Position Ctl switch:"
valueText: posCtlSwFact.value === 0 ? "Disabled" : posCtlSwFact.valueString
labelText: qsTr("Position Ctl switch:")
valueText: posCtlSwFact.value === 0 ? qsTr("Disabled") : posCtlSwFact.valueString
}
VehicleSummaryRow {
labelText: "Loiter switch:"
valueText: loiterSwFact.value === 0 ? "Disabled" : loiterSwFact.valueString
labelText: qsTr("Loiter switch:")
valueText: loiterSwFact.value === 0 ? qsTr("Disabled") : loiterSwFact.valueString
}
VehicleSummaryRow {
labelText: "Return switch:"
valueText: returnSwFact.value === 0 ? "Disabled" : returnSwFact.valueString
labelText: qsTr("Return switch:")
valueText: returnSwFact.value === 0 ? qsTr("Disabled") : returnSwFact.valueString
}
}
}
......
......@@ -46,61 +46,61 @@ Item {
// User visible strings
readonly property string title: "FLIGHT MODES"
readonly property string title: qsTr("FLIGHT MODES")
property string topHelpText: "Assign Flight Modes to radio control channels and adjust the thresholds for triggering them. " +
"You can assign multiple flight modes to a single channel. " +
"Turn your radio control on to test switch settings. " +
"The following channels: " + controller.reservedChannels +
" are not available for Flight Modes since they are already in use for other functions."
property string topHelpText: qsTr("Assign Flight Modes to radio control channels and adjust the thresholds for triggering them. ") +
qsTr("You can assign multiple flight modes to a single channel. ") +
qsTr("Turn your radio control on to test switch settings. ") +
qsTr("The following channels: ") + controller.reservedChannels +
qsTr(" are not available for Flight Modes since they are already in use for other functions.")
readonly property string fwManualModeName: "Manual/Main"
readonly property string mrManualModeName: "Stabilized/Main"
readonly property string fwManualModeDescription: "The pilot has full control of the aircraft, no assistance is provided. " +
"The Main mode switch must always be assigned to a channel in order to fly"
readonly property string mrManualModeDescription: "The pilot has full control of the aircraft, only attitude is stabilized. " +
"The Main mode switch must always be assigned to a channel in order to fly"
readonly property string fwManualModeName: qsTr("Manual/Main")
readonly property string mrManualModeName: qsTr("Stabilized/Main")
readonly property string fwManualModeDescription: qsTr("The pilot has full control of the aircraft, no assistance is provided. ") +
qsTr("The Main mode switch must always be assigned to a channel in order to fly")
readonly property string mrManualModeDescription: qsTr("The pilot has full control of the aircraft, only attitude is stabilized. ") +
qsTr("The Main mode switch must always be assigned to a channel in order to fly")
readonly property string assistModeName: "Assist"
readonly property string assistModeDescription: "If Position Control is placed on a seperate channel from the Main mode channel, an additional 'Assist' mode is added to the Main switch. " +
"In order for the Attitude Control/Position Control switch to be active, the Main switch must be in Assist mode."
readonly property string assistModeName: qsTr("Assist")
readonly property string assistModeDescription: qsTr("If Position Control is placed on a seperate channel from the Main mode channel, an additional 'Assist' mode is added to the Main switch. ") +
qsTr("In order for the Attitude Control/Position Control switch to be active, the Main switch must be in Assist mode.")
readonly property string autoModeName: "Auto"
readonly property string autoModeDescription: "If Loiter is placed on a seperate channel from the Main mode channel, an additional 'Auto' mode is added to the Main switch. " +
"In order for the Mission/Loiter switch to be active, the Main switch must be in Auto mode."
readonly property string autoModeName: qsTr("Auto")
readonly property string autoModeDescription: qsTr("If Loiter is placed on a seperate channel from the Main mode channel, an additional 'Auto' mode is added to the Main switch. ") +
qsTr("In order for the Mission/Loiter switch to be active, the Main switch must be in Auto mode.")
readonly property string fwAcroModeName: "Stabilized"
readonly property string mrAcroModeName: "Acro"
readonly property string fwAcroModeDescription: "The angular rates are controlled, but not the attitude. "
readonly property string mrAcroModeDescription: "The angular rates are controlled, but not the attitude. "
readonly property string fwAcroModeName: qsTr("Stabilized")
readonly property string mrAcroModeName: qsTr("Acro")
readonly property string fwAcroModeDescription: qsTr("The angular rates are controlled, but not the attitude. ")
readonly property string mrAcroModeDescription: qsTr("The angular rates are controlled, but not the attitude. ")
readonly property string altCtlModeName: "Altitude Control"
readonly property string fwAltCtlModeDescription: "Roll stick controls banking, pitch stick altitude " +
"Throttle stick controls speed. " +
"With no stick inputs the plane holds heading, but drifts off in wind. "
readonly property string mrAltCtlModeDescription: "Same as Stablized mode except that Throttle controls climb/sink rate. Centered Throttle holds altitude steady. "
readonly property string altCtlModeName: qsTr("Altitude Control")
readonly property string fwAltCtlModeDescription: qsTr("Roll stick controls banking, pitch stick altitude ") +
qsTr("Throttle stick controls speed. ") +
qsTr("With no stick inputs the plane holds heading, but drifts off in wind. ")
readonly property string mrAltCtlModeDescription: qsTr("Same as Stablized mode except that Throttle controls climb/sink rate. Centered Throttle holds altitude steady. ")
readonly property string posCtlModeName: "Position Control"
readonly property string fwPosCtlModeDescription: "Roll stick controls banking, pitch stick controls altitude. " +
"Throttle stick controls speed." +
"With no stick inputs the plane flies a straight line, even in wind. "
readonly property string mrPosCtlModeDescription: "Roll and Pitch sticks control sideways and forward speed " +
"Throttle stick controls climb / sink rade. "
readonly property string posCtlModeName: qsTr("Position Control")
readonly property string fwPosCtlModeDescription: qsTr("Roll stick controls banking, pitch stick controls altitude. ") +
qsTr("Throttle stick controls speed.") +
qsTr("With no stick inputs the plane flies a straight line, even in wind. ")
readonly property string mrPosCtlModeDescription: qsTr("Roll and Pitch sticks control sideways and forward speed ") +
qsTr("Throttle stick controls climb / sink rade. ")
readonly property string missionModeName: "Auto Mission"
readonly property string missionModeDescription: "The aircraft obeys the programmed mission sent by QGroundControl. "
readonly property string missionModeName: qsTr("Auto Mission")
readonly property string missionModeDescription: qsTr("The aircraft obeys the programmed mission sent by QGroundControl. ")
readonly property string loiterModeName: "Auto Pause"
readonly property string fwLoiterModeDescription: "The aircraft flies in a circle around the current position at the current altitude. "
readonly property string mrLoiterModeDescription: "The multirotor hovers at the current position and altitude. "
readonly property string loiterModeName: qsTr("Auto Pause")
readonly property string fwLoiterModeDescription: qsTr("The aircraft flies in a circle around the current position at the current altitude. ")
readonly property string mrLoiterModeDescription: qsTr("The multirotor hovers at the current position and altitude. ")
readonly property string returnModeName: "Return"
readonly property string returnModeDescription: "The vehicle returns to the home position, loiters and then lands. "
readonly property string returnModeName: qsTr("Return")
readonly property string returnModeDescription: qsTr("The vehicle returns to the home position, loiters and then lands. ")
readonly property string offboardModeName: "Offboard"
readonly property string offboardModeDescription: "All flight control aspects are controlled by an offboard system."
readonly property string offboardModeName: qsTr("Offboard")
readonly property string offboardModeDescription: qsTr("All flight control aspects are controlled by an offboard system.")
readonly property real modeSpacing: ScreenTools.defaultFontPixelHeight / 3
......@@ -177,7 +177,7 @@ Item {
id: joystickEnabledDialogComponent
QGCViewMessage {
message: "Flight Mode Config is disabled since you have a Joystick enabled."
message: qsTr("Flight Mode Config is disabled since you have a Joystick enabled.")
}
}
......@@ -212,7 +212,7 @@ Item {
spacing: ScreenTools.defaultFontPixelHeight / 4
QGCButton {
text: "Use Single Channel Mode Selection"
text: qsTr("Use Single Channel Mode Selection")
visible: controller.parameterExists(-1, "RC_MAP_FLTMODE")
onClicked: {
controller.getParameterFact(-1, "RC_MAP_MODE_SW").value = 0
......@@ -222,7 +222,7 @@ Item {
QGCButton {
id: applyButton
text: "Generate Thresholds"
text: qsTr("Generate Thresholds")
onClicked: controller.generateThresholds()
}
}
......
......@@ -27,38 +27,38 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Roll:"
valueText: mapRollFact ? (mapRollFact.value === 0 ? "Setup required" : mapRollFact.valueString) : ""
labelText: qsTr("Roll:")
valueText: mapRollFact ? (mapRollFact.value === 0 ? qsTr("Setup required") : mapRollFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Pitch:"
valueText: mapPitchFact ? (mapPitchFact.value === 0 ? "Setup required" : mapPitchFact.valueString) : ""
labelText: qsTr("Pitch:")
valueText: mapPitchFact ? (mapPitchFact.value === 0 ? qsTr("Setup required") : mapPitchFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Yaw:"
valueText: mapYawFact ? (mapYawFact.value === 0 ? "Setup required" : mapYawFact.valueString) : ""
labelText: qsTr("Yaw:")
valueText: mapYawFact ? (mapYawFact.value === 0 ? qsTr("Setup required") : mapYawFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Throttle:"
valueText: mapThrottleFact ? (mapThrottleFact.value === 0 ? "Setup required" : mapThrottleFact.valueString) : ""
labelText: qsTr("Throttle:")
valueText: mapThrottleFact ? (mapThrottleFact.value === 0 ? qsTr("Setup required") : mapThrottleFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Flaps:"
valueText: mapFlapsFact ? (mapFlapsFact.value === 0 ? "Disabled" : mapFlapsFact.valueString) : ""
labelText: qsTr("Flaps:")
valueText: mapFlapsFact ? (mapFlapsFact.value === 0 ? qsTr("Disabled") : mapFlapsFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Aux1:"
valueText: mapAux1Fact ? (mapAux1Fact.value === 0 ? "Disabled" : mapAux1Fact.valueString) : ""
labelText: qsTr("Aux1:")
valueText: mapAux1Fact ? (mapAux1Fact.value === 0 ? qsTr("Disabled") : mapAux1Fact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Aux2:"
valueText: mapAux2Fact ? (mapAux2Fact.value === 0 ? "Disabled" : mapAux2Fact.valueString) : ""
labelText: qsTr("Aux2:")
valueText: mapAux2Fact ? (mapAux2Fact.value === 0 ? qsTr("Disabled") : mapAux2Fact.valueString) : ""
}
}
}
......@@ -70,7 +70,7 @@ Item {
QGCLabel {
id: flightModeLabel
text: "Flight Mode Settings"
text: qsTr("Flight Mode Settings")
font.weight: Font.DemiBold
}
......@@ -93,7 +93,7 @@ Item {
QGCLabel {
id: modeChannelLabel
anchors.baseline: modeChannelCombo.baseline
text: "Flight mode channel:"
text: qsTr("Flight mode channel:")
}
FactComboBox {
......@@ -114,7 +114,7 @@ Item {
QGCLabel {
anchors.baseline: modeCombo.baseline
text: "Flight Mode " + index + ":"
text: qsTr("Flight Mode %1:)").arg(index)
color: controller.activeFlightMode == index ? "yellow" : qgcPal.text
}
......@@ -134,7 +134,7 @@ Item {
spacing: _margins
QGCLabel {
text: "Switch Settings"
text: qsTr("Switch Settings")
font.weight: Font.DemiBold
}
......
......@@ -32,8 +32,8 @@ FactSliderPanel {
sliderModel: ListModel {
ListElement {
title: "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."
title: qsTr("Throttle Hover")
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"
min: 0.2
max: 0.8
......@@ -41,8 +41,8 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Roll sensitivity")
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"
min: 0.15
max: 0.25
......@@ -50,8 +50,8 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Pitch sensitivity")
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"
min: 0.15
max: 0.25
......@@ -59,8 +59,8 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Altitude control sensitivity")
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"
min: 0
max: 1.0
......@@ -68,8 +68,8 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Position control sensitivity")
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"
min: 0
max: 1.0
......@@ -77,13 +77,12 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Manual minimum throttle")
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"
min: 0
max: 0.15
step: 0.01
}
}
}
......@@ -32,8 +32,8 @@ FactSliderPanel {
sliderModel: ListModel {
ListElement {
title: "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."
title: qsTr("Hover Roll sensitivity")
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"
min: 0.15
max: 0.25
......@@ -41,8 +41,8 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Hover Pitch sensitivity")
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"
min: 0.15
max: 0.25
......@@ -50,8 +50,8 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Hover Altitude control sensitivity")
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"
min: 0
max: 1.0
......@@ -59,16 +59,16 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Hover Position control sensitivity")
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"
min: 0
max: 1.0
step: 0.1
}
ListElement {
title: "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."
title: qsTr("Plane Roll sensitivity")
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"
min: 0.2
max: 0.8
......@@ -76,8 +76,8 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Plane Pitch sensitivity")
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"
min: 0.2
max: 0.8
......@@ -85,8 +85,8 @@ FactSliderPanel {
}
ListElement {
title: "Plane Cruise throttle"
description: "This is the throttle setting required to achieve the desired cruise speed. Most planes need 50-60%."
title: qsTr("Plane Cruise throttle")
description: qsTr("This is the throttle setting required to achieve the desired cruise speed. Most planes need 50-60%.")
param: "FW_THR_CRUISE"
min: 0.2
max: 0.8
......@@ -94,8 +94,8 @@ FactSliderPanel {
}
ListElement {
title: "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."
title: qsTr("Plane Mission mode sensitivity")
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"
min: 12
max: 50
......
......@@ -93,13 +93,13 @@ QGCView {
id: controller
factPanel: panel
onOldFirmware: showMessage("ESC Calibration", "QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade to a newer firmware.", StandardButton.Ok)
onNewerFirmware: showMessage("ESC Calibration", "QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade QGroundControl.", StandardButton.Ok)
onBatteryConnected: showMessage("ESC Calibration", "Performing calibration. This will take a few seconds..", 0)
onCalibrationFailed: showMessage("ESC Calibration failed", errorMessage, StandardButton.Ok)
onCalibrationSuccess: showMessage("ESC Calibration", "Calibration complete. You can disconnect your battery now if you like.", StandardButton.Ok)
onConnectBattery: showMessage("ESC Calibration", highlightPrefix + "WARNING: Props must be removed from vehicle prior to performing ESC calibration." + highlightSuffix + " Connect the battery now and calibration will begin.", 0)
onDisconnectBattery: showMessage("ESC Calibration failed", "You must disconnect the battery prior to performing ESC Calibration. Disconnect your battery and try again.", StandardButton.Ok)
onOldFirmware: showMessage(qsTr("ESC Calibration"), qsTr("QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade to a newer firmware."), StandardButton.Ok)
onNewerFirmware: showMessage(qsTr("ESC Calibration"), qsTr("QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade QGroundControl."), StandardButton.Ok)
onBatteryConnected: showMessage(qsTr("ESC Calibration"), qsTr("Performing calibration. This will take a few seconds.."), 0)
onCalibrationFailed: showMessage(qsTr("ESC Calibration failed"), errorMessage, StandardButton.Ok)
onCalibrationSuccess: showMessage(qsTr("ESC Calibration"), qsTr("Calibration complete. You can disconnect your battery now if you like."), StandardButton.Ok)
onConnectBattery: showMessage(qsTr("ESC Calibration"), highlightPrefix + qsTr("WARNING: Props must be removed from vehicle prior to performing ESC calibration.") + highlightSuffix + qsTr(" Connect the battery now and calibration will begin."), 0)
onDisconnectBattery: showMessage(qsTr("ESC Calibration failed"), qsTr("You must disconnect the battery prior to performing ESC Calibration. Disconnect your battery and try again."), StandardButton.Ok)
}
QGCPalette { id: palette; colorGroupEnabled: panel.enabled }
......@@ -121,7 +121,7 @@ QGCView {
spacing: ScreenTools.defaultFontPixelHeight * 0.5
QGCLabel {
text: "Battery"
text: qsTr("Battery")
font.weight: Font.DemiBold
}
......@@ -144,7 +144,7 @@ QGCView {
QGCLabel {
id: cellsLabel
text: "Number of Cells (in Series)"
text: qsTr("Number of Cells (in Series)")
anchors.baseline: cellsField.baseline
}
......@@ -162,7 +162,7 @@ QGCView {
QGCLabel {
id: battHighLabel
text: "Full Voltage (per cell)"
text: qsTr("Full Voltage (per cell)")
anchors.baseline: battHighField.baseline
}
......@@ -180,7 +180,7 @@ QGCView {
QGCLabel {
id: battLowLabel
text: "Empty Voltage (per cell)"
text: qsTr("Empty Voltage (per cell)")
anchors.baseline: battLowField.baseline
}
......@@ -215,7 +215,7 @@ QGCView {
Row {
QGCLabel {
width: ScreenTools.defaultFontPixelWidth * 12
text: "Battery Max:"
text: qsTr("Battery Max:")
}
QGCLabel {
text: (battNumCells.value * battHighVolt.value).toFixed(1) + ' V'
......@@ -224,7 +224,7 @@ QGCView {
Row {
QGCLabel {
width: ScreenTools.defaultFontPixelWidth * 12
text: "Battery Min:"
text: qsTr("Battery Min:")
}
QGCLabel {
text: (battNumCells.value * battLowVolt.value).toFixed(1) + ' V'
......@@ -234,7 +234,7 @@ QGCView {
} // Rectangle - Battery settings
QGCLabel {
text: "ESC PWM Minimum and Maximum Calibration"
text: qsTr("ESC PWM Minimum and Maximum Calibration")
font.weight: Font.DemiBold
}
......@@ -252,15 +252,15 @@ QGCView {
QGCLabel {
color: palette.warningText
text: "WARNING: Propellers must be removed from vehicle prior to performing ESC calibration."
text: qsTr("WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.")
}
QGCLabel {
text: "You must use USB connection for this operation."
text: qsTr("You must use USB connection for this operation.")
}
QGCButton {
text: "Calibrate"
text: qsTr("Calibrate")
width: ScreenTools.defaultFontPixelWidth * 20
onClicked: controller.calibrateEsc()
}
......@@ -269,11 +269,11 @@ QGCView {
QGCCheckBox {
id: showUAVCAN
text: "Show UAVCAN Settings"
text: qsTr("Show UAVCAN Settings")
}
QGCLabel {
text: "UAVCAN Bus Configuration"
text: qsTr("UAVCAN Bus Configuration")
font.weight: Font.DemiBold
visible: showUAVCAN.checked
}
......@@ -297,13 +297,13 @@ QGCView {
fact: controller.getParameterFact(-1, "UAVCAN_ENABLE")
checkedValue: 3
uncheckedValue: 0
text: "Enable UAVCAN as the default MAIN output bus (requires autopilot restart)"
text: qsTr("Enable UAVCAN as the default MAIN output bus (requires autopilot restart)")
}
}
}
QGCLabel {
text: "UAVCAN Motor Index and Direction Assignment"
text: qsTr("UAVCAN Motor Index and Direction Assignment")
font.weight: Font.DemiBold
visible: showUAVCAN.checked
}
......@@ -324,25 +324,25 @@ QGCView {
QGCLabel {
color: palette.warningText
text: "WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration."
text: qsTr("WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration.")
}
QGCLabel {
text: "ESC parameters will only be accessible in the editor after assignment."
text: qsTr("ESC parameters will only be accessible in the editor after assignment.")
}
QGCLabel {
text: "Start the process, then turn each motor into its turn direction, in the order of their motor indices."
text: qsTr("Start the process, then turn each motor into its turn direction, in the order of their motor indices.")
}
QGCButton {
text: "Start Assignment"
text: qsTr("Start Assignment")
width: ScreenTools.defaultFontPixelWidth * 20
onClicked: controller.busConfigureActuators()
}
QGCButton {
text: "Stop Assignment"
text: qsTr("Stop Assignment")
width: ScreenTools.defaultFontPixelWidth * 20
onClicked: controller.stopBusConfigureActuators()
}
......@@ -351,11 +351,11 @@ QGCView {
QGCCheckBox {
id: showAdvanced
text: "Show Advanced Settings"
text: qsTr("Show Advanced Settings")
}
QGCLabel {
text: "Advanced Power Settings"
text: qsTr("Advanced Power Settings")
font.weight: Font.DemiBold
visible: showAdvanced.checked
}
......@@ -379,7 +379,7 @@ QGCView {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel {
text: "Voltage Drop on Full Load (per cell)"
text: qsTr("Voltage Drop on Full Load (per cell)")
anchors.baseline: battDropField.baseline
}
......@@ -394,20 +394,20 @@ QGCView {
QGCLabel {
width: parent.width
wrapMode: Text.WordWrap
text: "Batteries show less voltage at high throttle. Enter the difference in Volts between idle throttle and full " +
"throttle, divided by the number of battery cells. Leave at the default if unsure. " +
highlightPrefix + "If this value is set too high, the battery might be deep discharged and damaged." + highlightSuffix
text: qsTr("Batteries show less voltage at high throttle. Enter the difference in Volts between idle throttle and full ") +
qsTr("throttle, divided by the number of battery cells. Leave at the default if unsure. ") +
highlightPrefix + qsTr("If this value is set too high, the battery might be deep discharged and damaged.") + highlightSuffix
}
Row {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel {
text: "Compensated Minimum Voltage:"
text: qsTr("Compensated Minimum Voltage:")
}
QGCLabel {
text: ((battNumCells.value * battLowVolt.value) - (battNumCells.value * battVoltLoadDrop.value)).toFixed(1) + ' V'
text: ((battNumCells.value * battLowVolt.value) - (battNumCells.value * battVoltLoadDrop.value)).toFixed(1) + qsTr(" V")
}
}
}
......
......@@ -50,17 +50,17 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Battery Full:"
labelText: qsTr("Battery Full:")
valueText: batVChargedFact ? batVChargedFact.valueString : ""
}
VehicleSummaryRow {
labelText: "Battery Empty:"
labelText: qsTr("Battery Empty:")
valueText: batVEmptyFact ? batVEmptyFact.valueString : ""
}
VehicleSummaryRow {
labelText: "Number of Cells:"
labelText: qsTr("Number of Cells:")
valueText: batCellsFact ? batCellsFact.valueString : ""
}
}
......
......@@ -63,7 +63,7 @@ QGCView {
QGCLabel {
id: triggerLabel
text: "Triggers For Return Home"
text: qsTr("Triggers For Return Home")
font.weight: Font.DemiBold
}
......@@ -78,7 +78,7 @@ QGCView {
color: palette.windowShade
QGCLabel {
text: "RC Transmitter Signal Loss: Return Home after"
text: qsTr("RC Transmitter Signal Loss: Return Home after")
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: rcLossField.baseline
......@@ -101,7 +101,7 @@ QGCView {
fact: controller.getParameterFact(-1, "COM_DL_LOSS_EN")
checkedValue: 1
uncheckedValue: 0
text: "Telemetry Signal Timeout: Return Home after"
text: qsTr("Telemetry Signal Timeout: Return Home after")
}
FactTextField {
......@@ -121,7 +121,7 @@ QGCView {
anchors.leftMargin: _margins
anchors.left: triggerSettings.right
anchors.top: parent.top
text: "GeoFence"
text: qsTr("GeoFence")
font.weight: Font.DemiBold
}
......@@ -139,7 +139,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: fenceActionCombo.baseline
text: "Action on breach:"
text: qsTr("Action on breach:")
}
FactComboBox {
......@@ -148,7 +148,7 @@ QGCView {
anchors.left: fenceActionLabel.right
anchors.top: parent.top
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
}
......@@ -156,7 +156,7 @@ QGCView {
id: fenceRadiusCheckBox
anchors.left: fenceActionLabel.left
anchors.baseline: fenceRadiusField.baseline
text: "Max radius:"
text: qsTr("Max radius:")
checked: _fenceRadius.value >= 0
onClicked: _fenceRadius.value = checked ? 100 : -1
......@@ -176,7 +176,7 @@ QGCView {
id: fenceAltMaxCheckBox
anchors.left: fenceActionLabel.left
anchors.baseline: fenceAltMaxField.baseline
text: "Max altitude:"
text: qsTr("Max altitude:")
checked: _fenceAlt.value >= 0
onClicked: _fenceAlt.value = checked ? 100 : -1
......@@ -197,7 +197,7 @@ QGCView {
id: rtlLabel
anchors.topMargin: _margins
anchors.top: triggerSettings.bottom
text: "Return Home Settings"
text: qsTr("Return Home Settings")
font.weight: Font.DemiBold
}
......@@ -234,7 +234,7 @@ QGCView {
anchors.margins: _margins
anchors.left: icon.right
anchors.baseline: climbField.baseline
text: "Climb to altitude of"
text: qsTr("Climb to altitude of")
}
FactTextField {
......@@ -274,8 +274,7 @@ QGCView {
anchors.left: climbLabel.left
checked: _rtlLandDelay.value >= 0
exclusiveGroup: homeLoiterGroup
text: "Loiter at Home altitude for"
text: qsTr("Loiter at Home altitude for")
onClicked: _rtlLandDelay.value = 60
}
......@@ -290,7 +289,7 @@ QGCView {
}
QGCLabel {
text: "Home loiter altitude"
text: qsTr("Home loiter altitude")
anchors.baseline: descendField.baseline
anchors.left: climbLabel.left
color: palette.text
......@@ -315,7 +314,7 @@ QGCView {
anchors.left: parent.left
anchors.right: parent.right
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
wrapMode: Text.Wrap
......@@ -329,7 +328,7 @@ QGCView {
anchors.left: parent.left
anchors.right: parent.right
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
wrapMode: Text.Wrap
......
......@@ -25,27 +25,27 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "RTL min alt:"
labelText: qsTr("RTL min alt:")
valueText: returnAltFact ? returnAltFact.valueString : ""
}
VehicleSummaryRow {
labelText: "RTL home alt:"
labelText: qsTr("RTL home alt:")
valueText: descendAltFact ? descendAltFact.valueString : ""
}
VehicleSummaryRow {
labelText: "RTL loiter delay:"
valueText: landDelayFact ? (landDelayFact.value < 0 ? "Disabled" : landDelayFact.valueString) : ""
labelText: qsTr("RTL loiter delay:")
valueText: landDelayFact ? (landDelayFact.value < 0 ? qsTr("Disabled") : landDelayFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "Telemetry loss RTL:"
valueText: commDLLossFact ? (commDLLossFact.value != -1 ? "Disabled" : commDLLossFact.valueString) : ""
labelText: qsTr("Telemetry loss RTL:")
valueText: commDLLossFact ? (commDLLossFact.value != -1 ? qsTr("Disabled") : commDLLossFact.valueString) : ""
}
VehicleSummaryRow {
labelText: "RC loss RTL (seconds):"
labelText: qsTr("RC loss RTL (seconds):")
valueText: commRCLossFact ? commRCLossFact.valueString : ""
}
}
......
......@@ -40,16 +40,16 @@ QGCView {
// Help text which is shown both in the status text area prior to pressing a cal button and in the
// pre-calibration dialog.
readonly property string boardRotationText: "If the autopilot is mounted in flight direction, leave the default value (ROTATION_NONE)"
readonly property string compassRotationText: "If the compass or GPS module is mounted in flight direction, leave the default value (ROTATION_NONE)"
readonly property string boardRotationText: qsTr("If the autopilot is mounted in flight direction, leave the default value (ROTATION_NONE)")
readonly property string compassRotationText: qsTr("If the compass or GPS module is mounted in flight direction, leave the default value (ROTATION_NONE)")
readonly property string compassHelp: "For Compass calibration you will need to rotate your vehicle through a number of positions. Most users prefer to do this wirelessly with the telemetry link."
readonly property string gyroHelp: "For Gyroscope calibration you will need to place your vehicle on a surface and leave it still."
readonly property string accelHelp: "For Accelerometer calibration you will need to place your vehicle on all six sides on a perfectly level surface and hold it still in each orientation for a few seconds."
readonly property string levelHelp: "To level the horizon you need to place the vehicle in its level flight position and press OK."
readonly property string airspeedHelp: "For Airspeed calibration you will need to keep your airspeed sensor out of any wind and then blow across the sensor."
readonly property string compassHelp: qsTr("For Compass calibration you will need to rotate your vehicle through a number of positions. Most users prefer to do this wirelessly with the telemetry link.")
readonly property string gyroHelp: qsTr("For Gyroscope calibration you will need to place your vehicle on a surface and leave it still.")
readonly property string accelHelp: qsTr("For Accelerometer calibration you will need to place your vehicle on all six sides on a perfectly level surface and hold it still in each orientation for a few seconds.")
readonly property string levelHelp: qsTr("To level the horizon you need to place the vehicle in its level flight position and press OK.")
readonly property string airspeedHelp: qsTr("For Airspeed calibration you will need to keep your airspeed sensor out of any wind and then blow across the sensor.")
readonly property string statusTextAreaDefaultText: "Start the individual calibration steps by clicking one of the buttons above."
readonly property string statusTextAreaDefaultText: qsTr("Start the individual calibration steps by clicking one of the buttons above.")
// Used to pass what type of calibration is being performed to the preCalibrationDialog
property string preCalibrationDialogType
......@@ -127,13 +127,13 @@ QGCView {
onSetCompassRotations: {
if (showCompass0Rot || showCompass1Rot || showCompass2Rot) {
showDialog(compassRotationDialogComponent, "Set Compass Rotation(s)", qgcView.showDialogDefaultWidth, StandardButton.Ok)
showDialog(compassRotationDialogComponent, qsTr("Set Compass Rotation(s)"), qgcView.showDialogDefaultWidth, StandardButton.Ok)
}
}
onWaitingForCancelChanged: {
if (controller.waitingForCancel) {
showMessage("Calibration Cancel", "Waiting for Vehicle to response to Cancel. This may take a few seconds.", 0)
showMessage(qsTr("Calibration Cancel"), qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds."), 0)
} else {
hideDialog()
}
......@@ -220,7 +220,7 @@ QGCView {
id: compass0ComponentLabel
QGCLabel {
text: "External Compass Orientation"
text: qsTr("External Compass Orientation")
}
}
......@@ -240,7 +240,7 @@ QGCView {
Component {
id: compass1ComponentLabel
QGCLabel { text: "Compass 1 Orientation" }
QGCLabel { text: qsTr("Compass 1 Orientation") }
}
Component {
id: compass1ComponentCombo
......@@ -259,7 +259,7 @@ QGCView {
Component {
id: compass2ComponentLabel
QGCLabel { text: "Compass 2 Orientation" }
QGCLabel { text: qsTr("Compass 2 Orientation") }
}
Component {
id: compass2ComponentCombo
......@@ -289,78 +289,78 @@ QGCView {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel { text: "Calibrate:"; anchors.baseline: compassButton.baseline }
QGCLabel { text: qsTr("Calibrate:"); anchors.baseline: compassButton.baseline }
IndicatorButton {
id: compassButton
width: parent.buttonWidth
text: "Compass"
text: qsTr("Compass")
indicatorGreen: cal_mag0_id.value != 0
onClicked: {
preCalibrationDialogType = "compass"
preCalibrationDialogHelp = compassHelp
showDialog(preCalibrationDialogComponent, "Calibrate Compass", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
showDialog(preCalibrationDialogComponent, qsTr("Calibrate Compass"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
}
}
IndicatorButton {
id: gyroButton
width: parent.buttonWidth
text: "Gyroscope"
text: qsTr("Gyroscope")
indicatorGreen: cal_gyro0_id.value != 0
onClicked: {
preCalibrationDialogType = "gyro"
preCalibrationDialogHelp = gyroHelp
showDialog(preCalibrationDialogComponent, "Calibrate Gyro", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
showDialog(preCalibrationDialogComponent, qsTr("Calibrate Gyro"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
}
}
IndicatorButton {
id: accelButton
width: parent.buttonWidth
text: "Accelerometer"
text: qsTr("Accelerometer")
indicatorGreen: cal_acc0_id.value != 0
onClicked: {
preCalibrationDialogType = "accel"
preCalibrationDialogHelp = accelHelp
showDialog(preCalibrationDialogComponent, "Calibrate Accelerometer", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
showDialog(preCalibrationDialogComponent, qsTr("Calibrate Accelerometer"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
}
}
IndicatorButton {
id: levelButton
width: parent.buttonWidth
text: "Level Horizon"
text: qsTr("Level Horizon")
indicatorGreen: sens_board_x_off.value != 0
enabled: cal_acc0_id.value != 0 && cal_gyro0_id.value != 0
onClicked: {
preCalibrationDialogType = "level"
preCalibrationDialogHelp = levelHelp
showDialog(preCalibrationDialogComponent, "Level Horizon", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
showDialog(preCalibrationDialogComponent, qsTr("Level Horizon"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
}
}
IndicatorButton {
id: airspeedButton
width: parent.buttonWidth
text: "Airspeed"
text: qsTr("Airspeed")
visible: controller.fixedWing
indicatorGreen: sens_dpres_off.value != 0
onClicked: {
preCalibrationDialogType = "airspeed"
preCalibrationDialogHelp = airspeedHelp
showDialog(preCalibrationDialogComponent, "Calibrate Airspeed", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
showDialog(preCalibrationDialogComponent, qsTr("Calibrate Airspeed"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Ok)
}
}
QGCButton {
id: cancelButton
text: "Cancel"
text: qsTr("Cancel")
enabled: false
onClicked: controller.cancelCalibration()
}
......@@ -424,42 +424,42 @@ QGCView {
visible: controller.orientationCalDownSideVisible
calValid: controller.orientationCalDownSideDone
calInProgress: controller.orientationCalDownSideInProgress
calInProgressText: controller.orientationCalDownSideRotate ? "Rotate" : "Hold Still"
calInProgressText: controller.orientationCalDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalDownSideRotate ? "qrc:///qmlimages/VehicleDownRotate.png" : "qrc:///qmlimages/VehicleDown.png"
}
VehicleRotationCal {
visible: controller.orientationCalUpsideDownSideVisible
calValid: controller.orientationCalUpsideDownSideDone
calInProgress: controller.orientationCalUpsideDownSideInProgress
calInProgressText: controller.orientationCalUpsideDownSideRotate ? "Rotate" : "Hold Still"
calInProgressText: controller.orientationCalUpsideDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalUpsideDownSideRotate ? "qrc:///qmlimages/VehicleUpsideDownRotate.png" : "qrc:///qmlimages/VehicleUpsideDown.png"
}
VehicleRotationCal {
visible: controller.orientationCalNoseDownSideVisible
calValid: controller.orientationCalNoseDownSideDone
calInProgress: controller.orientationCalNoseDownSideInProgress
calInProgressText: controller.orientationCalNoseDownSideRotate ? "Rotate" : "Hold Still"
calInProgressText: controller.orientationCalNoseDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalNoseDownSideRotate ? "qrc:///qmlimages/VehicleNoseDownRotate.png" : "qrc:///qmlimages/VehicleNoseDown.png"
}
VehicleRotationCal {
visible: controller.orientationCalTailDownSideVisible
calValid: controller.orientationCalTailDownSideDone
calInProgress: controller.orientationCalTailDownSideInProgress
calInProgressText: controller.orientationCalTailDownSideRotate ? "Rotate" : "Hold Still"
calInProgressText: controller.orientationCalTailDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalTailDownSideRotate ? "qrc:///qmlimages/VehicleTailDownRotate.png" : "qrc:///qmlimages/VehicleTailDown.png"
}
VehicleRotationCal {
visible: controller.orientationCalLeftSideVisible
calValid: controller.orientationCalLeftSideDone
calInProgress: controller.orientationCalLeftSideInProgress
calInProgressText: controller.orientationCalLeftSideRotate ? "Rotate" : "Hold Still"
calInProgressText: controller.orientationCalLeftSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalLeftSideRotate ? "qrc:///qmlimages/VehicleLeftRotate.png" : "qrc:///qmlimages/VehicleLeft.png"
}
VehicleRotationCal {
visible: controller.orientationCalRightSideVisible
calValid: controller.orientationCalRightSideDone
calInProgress: controller.orientationCalRightSideInProgress
calInProgressText: controller.orientationCalRightSideRotate ? "Rotate" : "Hold Still"
calInProgressText: controller.orientationCalRightSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
imageSource: controller.orientationCalRightSideRotate ? "qrc:///qmlimages/VehicleRightRotate.png" : "qrc:///qmlimages/VehicleRight.png"
}
}
......@@ -475,7 +475,7 @@ QGCView {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel {
text: "Autopilot Orientation"
text: qsTr("Autopilot Orientation")
}
QGCLabel {
......@@ -500,7 +500,7 @@ QGCView {
id: compass0ComponentLabel2
QGCLabel {
text: "External Compass Orientation"
text: qsTr("External Compass Orientation")
}
}
......@@ -527,7 +527,7 @@ QGCView {
id: compass1ComponentLabel2
QGCLabel {
text: "External Compass 1 Orientation"
text: qsTr("External Compass 1 Orientation")
}
}
......@@ -554,7 +554,7 @@ QGCView {
id: compass2ComponentLabel2
QGCLabel {
text: "Compass 2 Orientation"
text: qsTr("Compass 2 Orientation")
}
}
......
......@@ -30,30 +30,30 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Compass 0:"
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Compass 0:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : ("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Compass 1:"
labelText: qsTr("Compass 1:")
visible: mag1IdFact.value !== 0
valueText: "Ready"
valueText: qsTr("Ready")
}
VehicleSummaryRow {
labelText: "Compass 2:"
labelText: qsTr("Compass 2:")
visible: mag2IdFact.value !== 0
valueText: "Ready"
valueText: qsTr("Ready")
}
VehicleSummaryRow {
labelText: "Gyro:"
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Gyro:")
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Accelerometer:"
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Accelerometer:")
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
}
}
......@@ -28,23 +28,23 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Compass:"
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Compass:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Gyro:"
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Gyro:")
valueText: gyro0IdFact ? (gyro0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Accelerometer:"
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Accelerometer:")
valueText: accel0IdFact ? (accel0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
VehicleSummaryRow {
labelText: "Airspeed:"
valueText: dpressOffFact ? (dpressOffFact.value === 0 ? "Setup required" : "Ready") : ""
labelText: qsTr("Airspeed:")
valueText: dpressOffFact ? (dpressOffFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
}
}
Supports Markdown
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