Commit 77749b5c authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #5159 from dogmaphobic/verbiageTweaks

Verbiage Tweaks
parents 6237ab4b f4f3a5f4
...@@ -32,9 +32,9 @@ Rectangle { ...@@ -32,9 +32,9 @@ Rectangle {
readonly property real _horizontalMargin: _defaultTextWidth / 2 readonly property real _horizontalMargin: _defaultTextWidth / 2
readonly property real _verticalMargin: _defaultTextHeight / 2 readonly property real _verticalMargin: _defaultTextHeight / 2
readonly property real _buttonWidth: _defaultTextWidth * 18 readonly property real _buttonWidth: _defaultTextWidth * 18
readonly property string _armedVehicleText: qsTr("This operation cannot be performed while vehicle is armed.") readonly property string _armedVehicleText: qsTr("This operation cannot be performed while the vehicle is armed.")
property string _messagePanelText: "missing message panel text" property string _messagePanelText: qsTr("missing message panel text")
property bool _fullParameterVehicleAvailable: QGroundControl.multiVehicleManager.parameterReadyVehicleAvailable && !QGroundControl.multiVehicleManager.activeVehicle.parameterManager.missingParameters property bool _fullParameterVehicleAvailable: QGroundControl.multiVehicleManager.parameterReadyVehicleAvailable && !QGroundControl.multiVehicleManager.activeVehicle.parameterManager.missingParameters
property var _corePlugin: QGroundControl.corePlugin property var _corePlugin: QGroundControl.corePlugin
...@@ -93,7 +93,8 @@ Rectangle { ...@@ -93,7 +93,8 @@ Rectangle {
} else { } else {
var autopilotPlugin = QGroundControl.multiVehicleManager.activeVehicle.autopilot var autopilotPlugin = QGroundControl.multiVehicleManager.activeVehicle.autopilot
var prereq = autopilotPlugin.prerequisiteSetup(vehicleComponent) var prereq = autopilotPlugin.prerequisiteSetup(vehicleComponent)
if (prereq != "") { if (prereq !== "") {
//-- TODO: This cannot be trasnlated when built this way.
_messagePanelText = prereq + " setup must be completed prior to " + vehicleComponent.name + " setup." _messagePanelText = prereq + " setup must be completed prior to " + vehicleComponent.name + " setup."
panelLoader.setSourceComponent(messagePanelComponent) panelLoader.setSourceComponent(messagePanelComponent)
} else { } else {
...@@ -141,7 +142,7 @@ Rectangle { ...@@ -141,7 +142,7 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
font.pointSize: ScreenTools.mediumFontPointSize font.pointSize: ScreenTools.mediumFontPointSize
text: tr("%1 does not currently support setup of your vehicle type. ").arg(QGroundControl.appName) + text: qsTr("%1 does not currently support setup of your vehicle type. ").arg(QGroundControl.appName) +
"If your vehicle is already configured you can still Fly." "If your vehicle is already configured you can still Fly."
onLinkActivated: Qt.openUrlExternally(link) onLinkActivated: Qt.openUrlExternally(link)
...@@ -162,7 +163,7 @@ Rectangle { ...@@ -162,7 +163,7 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
font.pointSize: ScreenTools.largeFontPointSize font.pointSize: ScreenTools.largeFontPointSize
text: qsTr("Connect vehicle to your device and %1 will automatically detect it.").arg(QGroundControl.appName) + text: qsTr("Vehicle settings and info will display after connecting your vehicle.") +
(ScreenTools.isMobile ? "" : " Click Firmware on the left to upgrade your vehicle.") (ScreenTools.isMobile ? "" : " Click Firmware on the left to upgrade your vehicle.")
onLinkActivated: Qt.openUrlExternally(link) onLinkActivated: Qt.openUrlExternally(link)
...@@ -182,8 +183,8 @@ Rectangle { ...@@ -182,8 +183,8 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
font.pointSize: ScreenTools.mediumFontPointSize font.pointSize: ScreenTools.mediumFontPointSize
text: "You are currently connected to a vehicle, but that vehicle did not return back the full parameter list. " + text: qsTr("You are currently connected to a vehicle but it did not return the full parameter list. ") +
"Because of this the full set of vehicle setup options are not available." qsTr("As a result, the full set of vehicle setup options are not available.")
onLinkActivated: Qt.openUrlExternally(link) onLinkActivated: Qt.openUrlExternally(link)
} }
...@@ -251,7 +252,7 @@ Rectangle { ...@@ -251,7 +252,7 @@ Rectangle {
setupIndicator: false setupIndicator: false
checked: true checked: true
exclusiveGroup: setupButtonGroup exclusiveGroup: setupButtonGroup
text: "Summary" text: qsTr("Summary")
Layout.fillWidth: true Layout.fillWidth: true
onClicked: showSummaryPanel() onClicked: showSummaryPanel()
...@@ -263,7 +264,7 @@ Rectangle { ...@@ -263,7 +264,7 @@ Rectangle {
setupIndicator: false setupIndicator: false
exclusiveGroup: setupButtonGroup exclusiveGroup: setupButtonGroup
visible: !ScreenTools.isMobile && _corePlugin.options.showFirmwareUpgrade visible: !ScreenTools.isMobile && _corePlugin.options.showFirmwareUpgrade
text: "Firmware" text: qsTr("Firmware")
Layout.fillWidth: true Layout.fillWidth: true
onClicked: showFirmwarePanel() onClicked: showFirmwarePanel()
...@@ -274,7 +275,7 @@ Rectangle { ...@@ -274,7 +275,7 @@ Rectangle {
exclusiveGroup: setupButtonGroup exclusiveGroup: setupButtonGroup
visible: QGroundControl.multiVehicleManager.activeVehicle ? QGroundControl.multiVehicleManager.activeVehicle.genericFirmware : false visible: QGroundControl.multiVehicleManager.activeVehicle ? QGroundControl.multiVehicleManager.activeVehicle.genericFirmware : false
setupIndicator: false setupIndicator: false
text: "PX4Flow" text: qsTr("PX4Flow")
Layout.fillWidth: true Layout.fillWidth: true
onClicked: showPX4FlowPanel() onClicked: showPX4FlowPanel()
...@@ -286,7 +287,7 @@ Rectangle { ...@@ -286,7 +287,7 @@ Rectangle {
setupComplete: joystickManager.activeJoystick ? joystickManager.activeJoystick.calibrated : false setupComplete: joystickManager.activeJoystick ? joystickManager.activeJoystick.calibrated : false
exclusiveGroup: setupButtonGroup exclusiveGroup: setupButtonGroup
visible: _fullParameterVehicleAvailable && joystickManager.joysticks.length != 0 visible: _fullParameterVehicleAvailable && joystickManager.joysticks.length != 0
text: "Joystick" text: qsTr("Joystick")
Layout.fillWidth: true Layout.fillWidth: true
onClicked: showJoystickPanel() onClicked: showJoystickPanel()
...@@ -313,7 +314,7 @@ Rectangle { ...@@ -313,7 +314,7 @@ Rectangle {
setupIndicator: false setupIndicator: false
exclusiveGroup: setupButtonGroup exclusiveGroup: setupButtonGroup
visible: QGroundControl.multiVehicleManager && QGroundControl.multiVehicleManager.parameterReadyVehicleAvailable && _corePlugin.showAdvancedUI visible: QGroundControl.multiVehicleManager && QGroundControl.multiVehicleManager.parameterReadyVehicleAvailable && _corePlugin.showAdvancedUI
text: "Parameters" text: qsTr("Parameters")
Layout.fillWidth: true Layout.fillWidth: true
onClicked: showParametersPanel() onClicked: showParametersPanel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment