diff --git a/src/AutoPilotPlugins/PX4/AirframeComponent.qml b/src/AutoPilotPlugins/PX4/AirframeComponent.qml index 3c4089658a9e1143f702631bcab29585116f9bfc..a6d01686107f99b2fd917540f0ab79800c5e5ac5 100644 --- a/src/AutoPilotPlugins/PX4/AirframeComponent.qml +++ b/src/AutoPilotPlugins/PX4/AirframeComponent.qml @@ -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) } } diff --git a/src/AutoPilotPlugins/PX4/AirframeComponentSummary.qml b/src/AutoPilotPlugins/PX4/AirframeComponentSummary.qml index d3f9222869aa137ccbbee806ca14776ef0dba0c0..7bb330970526831907f77daa4a043137e8ff1e92 100644 --- a/src/AutoPilotPlugins/PX4/AirframeComponentSummary.qml +++ b/src/AutoPilotPlugins/PX4/AirframeComponentSummary.qml @@ -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") } } } diff --git a/src/AutoPilotPlugins/PX4/FlightModesComponentSummary.qml b/src/AutoPilotPlugins/PX4/FlightModesComponentSummary.qml index 13630c3724861f8e276ef25a3f5f4d2d90563934..0bce908b661a06ada2f3df97292c34e3662b88a4 100644 --- a/src/AutoPilotPlugins/PX4/FlightModesComponentSummary.qml +++ b/src/AutoPilotPlugins/PX4/FlightModesComponentSummary.qml @@ -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 } } } diff --git a/src/AutoPilotPlugins/PX4/PX4AdvancedFlightModes.qml b/src/AutoPilotPlugins/PX4/PX4AdvancedFlightModes.qml index 45d0778eda5ee0971738ca349fdab2ffbe6a2911..e1a2d52c75099dbb8bf5ff2a8b9d18d1d5aa85fc 100644 --- a/src/AutoPilotPlugins/PX4/PX4AdvancedFlightModes.qml +++ b/src/AutoPilotPlugins/PX4/PX4AdvancedFlightModes.qml @@ -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() } } diff --git a/src/AutoPilotPlugins/PX4/PX4RadioComponentSummary.qml b/src/AutoPilotPlugins/PX4/PX4RadioComponentSummary.qml index 877b9826d2aeed509fd8ffe2aca019c967a82f75..00c6f527ccf9457f01dfdfdc98e0cbdafd546567 100644 --- a/src/AutoPilotPlugins/PX4/PX4RadioComponentSummary.qml +++ b/src/AutoPilotPlugins/PX4/PX4RadioComponentSummary.qml @@ -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) : "" } } } diff --git a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml index 6bb0c4adaa767b24b94a2f9d2af8a04d9cd1a9e5..4f5868aef4b1127a4e22e976d0c133ced3788eb1 100644 --- a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml +++ b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml @@ -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 } diff --git a/src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml b/src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml index 9ec2de80ccda85e33891d4ba37f1b1b1104cdc4b..16d4a07a1fa4e8b660053acaa4ed3eb9eea7a685 100644 --- a/src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml +++ b/src/AutoPilotPlugins/PX4/PX4TuningComponentCopter.qml @@ -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 } - } } diff --git a/src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml b/src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml index 1c66847f2dcd2c57ebaf766dd1dccac7f1cc721d..dc9c26546aefa8fb6a5b401707702ab31abbea8c 100644 --- a/src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml +++ b/src/AutoPilotPlugins/PX4/PX4TuningComponentPlane.qml @@ -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 diff --git a/src/AutoPilotPlugins/PX4/PowerComponent.qml b/src/AutoPilotPlugins/PX4/PowerComponent.qml index 68756e3b46cbf6894128a81b605308049890831c..6bd86cfbeee3798b92428ab901827b92f8e7f3ba 100644 --- a/src/AutoPilotPlugins/PX4/PowerComponent.qml +++ b/src/AutoPilotPlugins/PX4/PowerComponent.qml @@ -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") } } } diff --git a/src/AutoPilotPlugins/PX4/PowerComponentSummary.qml b/src/AutoPilotPlugins/PX4/PowerComponentSummary.qml index ced305e2d408bd3ac2dbbfb316808c6ae9f9288d..5c77f0a362f8fb8493a611b6d425b969946a3992 100644 --- a/src/AutoPilotPlugins/PX4/PowerComponentSummary.qml +++ b/src/AutoPilotPlugins/PX4/PowerComponentSummary.qml @@ -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 : "" } } diff --git a/src/AutoPilotPlugins/PX4/SafetyComponent.qml b/src/AutoPilotPlugins/PX4/SafetyComponent.qml index 32ed08e47fc01c73e2189a92a666d1f1133fa3fd..4105f9944f7e076d3328edad2d6d690a8500e86b 100644 --- a/src/AutoPilotPlugins/PX4/SafetyComponent.qml +++ b/src/AutoPilotPlugins/PX4/SafetyComponent.qml @@ -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 diff --git a/src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml b/src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml index b875a37542eb85652bda3488e1c9b43c399a5173..a290f50e1563bddb81a2de5d03529bf1805209fa 100644 --- a/src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml +++ b/src/AutoPilotPlugins/PX4/SafetyComponentSummary.qml @@ -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 : "" } } diff --git a/src/AutoPilotPlugins/PX4/SensorsComponent.qml b/src/AutoPilotPlugins/PX4/SensorsComponent.qml index 4fb7605d6845c64de0addf2c86b48e8692a7ad4d..986702f10898ed03b456ba7554a917c0224b9dc9 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponent.qml +++ b/src/AutoPilotPlugins/PX4/SensorsComponent.qml @@ -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") } } diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml b/src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml index 564f0c8fac8493b88c10da17483f1830ab6efa05..791c7031200f28eb48fe13dd59c5952b10a6b6c8 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml +++ b/src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml @@ -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")) : "" } } } diff --git a/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml b/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml index 513cf3e86e0966a01ab68404c1e546d62cd9a02c..8d8f45516aedaac0989aee797edcaf270aaeea31 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml +++ b/src/AutoPilotPlugins/PX4/SensorsComponentSummaryFixedWing.qml @@ -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")) : "" } } }