Commit 3ae7cbb2 authored by Don Gagne's avatar Don Gagne

Merge pull request #3224 from tcanabrava/qstr_qml_v5

Qstr qml v5
parents b16f0917 2bc9d6b6
......@@ -73,7 +73,7 @@ QGCView {
anchors.right: parent.right
anchors.margins: _margins
wrapMode: Text.WordWrap
text: "Select you drone to load the default parameters for it. "
text: qsTr("Select you drone to load the default parameters for it. ")
}
Flow {
......@@ -118,7 +118,7 @@ QGCView {
anchors.rightMargin: _margins
anchors.left: parent.left
anchors.right: applyButton.right
text: "Please select your airframe type"
text: qsTr("Please select your airframe type")
font.pixelSize: ScreenTools.mediumFontPixelSize
wrapMode: Text.WordWrap
}
......@@ -126,8 +126,8 @@ QGCView {
QGCButton {
id: applyButton
anchors.right: parent.right
text: "Load common parameters"
onClicked: showDialog(applyRestartDialogComponent, "Load common parameters", qgcView.showDialogDefaultWidth, StandardButton.Close)
text: qsTr("Load common parameters")
onClicked: showDialog(applyRestartDialogComponent, qsTr("Load common parameters"), qgcView.showDialogDefaultWidth, StandardButton.Close)
}
}
......
......@@ -27,7 +27,7 @@ FactPanel {
VehicleSummaryRow {
id: nameRow;
labelText: "Frame Type:"
labelText: qsTr("Frame Type:")
valueText: sysIdFact.valueString === "0" ? "Plus"
: sysIdFact.valueString === "1" ? "X"
: sysIdFact.valueString === "2" ? "V"
......
......@@ -175,17 +175,17 @@ QGCView {
ListModel {
id: gimbalOutModel
ListElement { text: "Disabled"; value: 0 }
ListElement { text: "Channel 5"; value: 5 }
ListElement { text: "Channel 6"; value: 6 }
ListElement { text: "Channel 7"; value: 7 }
ListElement { text: "Channel 8"; value: 8 }
ListElement { text: "Channel 9"; value: 9 }
ListElement { text: "Channel 10"; value: 10 }
ListElement { text: "Channel 11"; value: 11 }
ListElement { text: "Channel 12"; value: 12 }
ListElement { text: "Channel 13"; value: 13 }
ListElement { text: "Channel 14"; value: 14 }
ListElement { text: qsTr("Disabled"); value: 0 }
ListElement { text: qsTr("Channel 5"); value: 5 }
ListElement { text: qsTr("Channel 6"); value: 6 }
ListElement { text: qsTr("Channel 7"); value: 7 }
ListElement { text: qsTr("Channel 8"); value: 8 }
ListElement { text: qsTr("Channel 9"); value: 9 }
ListElement { text: qsTr("Channel 10"); value: 10 }
ListElement { text: qsTr("Channel 11"); value: 11 }
ListElement { text: qsTr("Channel 12"); value: 12 }
ListElement { text: qsTr("Channel 13"); value: 13 }
ListElement { text: qsTr("Channel 14"); value: 14 }
}
Component {
......@@ -210,7 +210,7 @@ QGCView {
QGCLabel {
id: directionLabel
text: "Gimbal " + directionTitle
text: qsTr("Gimbal ") + directionTitle
font.weight: Font.DemiBold
}
......@@ -228,7 +228,7 @@ QGCView {
anchors.topMargin: _margins
anchors.left: servoReverseCheckBox.left
anchors.top: parent.top
text: "Stabilize"
text: qsTr("Stabilize")
fact: mountStabFact
checkedValue: 1
uncheckedValue: 0
......@@ -240,7 +240,7 @@ QGCView {
anchors.margins: _margins
anchors.top: mountStabCheckBox.bottom
anchors.right: parent.right
text: "Servo reverse"
text: qsTr("Servo reverse")
checkedValue: 1
uncheckedValue: 0
fact: servoReverseFact
......@@ -252,7 +252,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: gimbalOutCombo.baseline
text: "Output channel:"
text: qsTr("Output channel:")
}
QGCComboBox {
......@@ -272,7 +272,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: mountRcInCombo.baseline
text: "Input channel:"
text: qsTr("Input channel:")
enabled: directionEnabled
}
......@@ -292,7 +292,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: mountAngMinField.baseline
text: "Gimbal angle limits:"
text: qsTr("Gimbal angle limits:")
enabled: directionEnabled
}
......@@ -301,7 +301,7 @@ QGCView {
anchors.margins: _margins
anchors.left: mountAngLabel.right
anchors.baseline: mountAngMinField.baseline
text: "min"
text: qsTr("min")
enabled: directionEnabled
}
......@@ -319,7 +319,7 @@ QGCView {
anchors.margins: _margins
anchors.left: mountAngMinField.right
anchors.baseline: mountAngMinField.baseline
text: "max"
text: qsTr("max")
enabled: directionEnabled
}
......@@ -337,7 +337,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: servoPWMMinField.baseline
text: "Servo PWM limits:"
text: qsTr("Servo PWM limits:")
enabled: directionEnabled
}
......@@ -345,7 +345,7 @@ QGCView {
id: servoPWMMinLabel
anchors.left: mountAngMinLabel.left
anchors.baseline: servoPWMMinField.baseline
text: "min"
text: qsTr("min")
enabled: directionEnabled
}
......@@ -364,7 +364,7 @@ QGCView {
anchors.margins: _margins
anchors.left: servoPWMMinField.right
anchors.baseline: servoPWMMinField.baseline
text: "max"
text: qsTr("max")
enabled: directionEnabled
}
......@@ -392,7 +392,7 @@ QGCView {
QGCLabel {
id: settingsLabel
text: "Gimbal Settings"
text: qsTr("Gimbal Settings")
font.weight: Font.DemiBold
}
......@@ -409,7 +409,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: gimbalTypeCombo.baseline
text: "Type:"
text: qsTr("Type:")
}
FactComboBox {
......@@ -431,7 +431,7 @@ QGCView {
anchors.right: parent.right
anchors.top: gimbalTypeCombo.bottom
wrapMode: Text.WordWrap
text: "Gimbal Type changes takes affect next reboot of autopilot"
text: qsTr("Gimbal Type changes takes affect next reboot of autopilot")
}
QGCLabel {
......@@ -439,7 +439,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: gimbalModeCombo.baseline
text: "Default Mode:"
text: qsTr("Default Mode:")
}
FactComboBox {
......@@ -469,7 +469,7 @@ QGCView {
id: gimbalDirectionTiltLoader
sourceComponent: gimbalDirectionSettings
property string directionTitle: "Tilt"
property string directionTitle: qsTr("Tilt")
property bool directionEnabled: _tiltEnabled
property int gimbalOutIndex: 0
property Fact mountRcInFact: _mountRCInTilt
......@@ -488,7 +488,7 @@ QGCView {
anchors.top: gimbalDirectionTiltLoader.bottom
sourceComponent: gimbalDirectionSettings
property string directionTitle: "Roll"
property string directionTitle: qsTr("Roll")
property bool directionEnabled: _rollEnabled
property int gimbalOutIndex: 0
property Fact mountRcInFact: _mountRCInRoll
......@@ -507,7 +507,7 @@ QGCView {
anchors.top: gimbalDirectionRollLoader.bottom
sourceComponent: gimbalDirectionSettings
property string directionTitle: "Pan"
property string directionTitle: qsTr("Pan")
property bool directionEnabled: _panEnabled
property int gimbalOutIndex: 0
property Fact mountRcInFact: _mountRCInPan
......
......@@ -28,22 +28,22 @@ FactPanel {
VehicleSummaryRow {
visible: _mountTypeExists
labelText: "Gimbal type:"
labelText: qsTr("Gimbal type:")
valueText: _mountTypeValue
}
VehicleSummaryRow {
labelText: "Tilt input channel:"
labelText: qsTr("Tilt input channel:")
valueText: _mountRCInTilt.enumStringValue
}
VehicleSummaryRow {
labelText: "Pan input channel:"
labelText: qsTr("Pan input channel:")
valueText: _mountRCInPan.enumStringValue
}
VehicleSummaryRow {
labelText: "Roll input channel:"
labelText: qsTr("Roll input channel:")
valueText: _mountRCInRoll.enumStringValue
}
}
......
......@@ -62,7 +62,7 @@ QGCView {
QGCLabel {
id: flightModeLabel
text: "Flight Mode Settings" + (_fltmodeChExists ? "" : " (Channel 5)")
text: qsTr("Flight Mode Settings") + (_fltmodeChExists ? "" : qsTr(" (Channel 5)"))
font.weight: Font.DemiBold
}
......@@ -88,13 +88,16 @@ QGCView {
QGCLabel {
id: modeChannelLabel
anchors.baseline: modeChannelCombo.baseline
text: "Flight mode channel:"
text: qsTr("Flight mode channel:")
}
QGCComboBox {
id: modeChannelCombo
width: ScreenTools.defaultFontPixelWidth * 15
model: [ "Not assigned", "Channel 1", "Channel 2","Channel 3","Channel 4","Channel 5","Channel 6","Channel 7","Channel 8" ]
model: [ qsTr("Not assigned"), qsTr("Channel 1"), qsTr("Channel 2"),
qsTr("Channel 3"), qsTr("Channel 4"), qsTr("Channel 5"),
qsTr("Channel 6"), qsTr("Channel 7"), qsTr("Channel 8") ]
currentIndex: _fltmodeCh.value
onActivated: _fltmodeCh.value = index
}
......@@ -112,7 +115,7 @@ QGCView {
QGCLabel {
anchors.baseline: modeCombo.baseline
text: "Flight Mode " + index + ":"
text: qsTr("Flight Mode ") + index + ":"
color: controller.activeFlightMode == index ? "yellow" : qgcPal.text
}
......@@ -137,7 +140,7 @@ QGCView {
anchors.leftMargin: _margins
anchors.top: parent.top
anchors.left: flightModeSettings.right
text: "Channel Options"
text: qsTr("Channel Options")
font.weight: Font.DemiBold
visible: _channelOptionCount != 0
}
......@@ -170,7 +173,7 @@ QGCView {
QGCLabel {
anchors.baseline: optCombo.baseline
text: "Channel option " + index + ":"
text: qsTr("Channel option %1 :").arg(index)
color: controller.channelOptionEnabled[modelData] ? "yellow" : qgcPal.text
}
......
......@@ -26,32 +26,32 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Flight Mode 1:"
labelText: qsTr("Flight Mode 1:")
valueText: flightMode1.enumStringValue
}
VehicleSummaryRow {
labelText: "Flight Mode 2:"
labelText: qsTr("Flight Mode 2:")
valueText: flightMode2.enumStringValue
}
VehicleSummaryRow {
labelText: "Flight Mode 3:"
labelText: qsTr("Flight Mode 3:")
valueText: flightMode3.enumStringValue
}
VehicleSummaryRow {
labelText: "Flight Mode 4:"
labelText: qsTr("Flight Mode 4:")
valueText: flightMode4.enumStringValue
}
VehicleSummaryRow {
labelText: "Flight Mode 5:"
labelText: qsTr("Flight Mode 5:")
valueText: flightMode5.enumStringValue
}
VehicleSummaryRow {
labelText: "Flight Mode 6:"
labelText: qsTr("Flight Mode 6:")
valueText: flightMode6.enumStringValue
}
}
......
......@@ -27,7 +27,7 @@ import QGroundControl.Controls 1.0
QGCLabel {
anchors.fill: parent
text: "Not supported"
text: qsTr("Not supported")
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
......@@ -67,7 +67,7 @@ QGCView {
id: sensorModel
ListElement {
text: "Power Module 90A"
text: qsTr("Power Module 90A")
voltPin: 2
currPin: 3
voltMult: 10.1
......@@ -75,7 +75,7 @@ QGCView {
}
ListElement {
text: "Power Module HV"
text: qsTr("Power Module HV")
voltPin: 2
currPin: 3
voltMult: 12.02
......@@ -91,7 +91,7 @@ QGCView {
}
ListElement {
text: "Other"
text: qsTr("Other")
}
}
......@@ -110,7 +110,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: monitorCombo.baseline
text: "Battery monitor:"
text: qsTr("Battery monitor:")
}
FactComboBox {
......@@ -128,7 +128,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: capacityField.baseline
text: "Battery capacity:"
text: qsTr("Battery capacity:")
}
FactTextField {
......@@ -146,7 +146,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: sensorCombo.baseline
text: "Power sensor:"
text: qsTr("Power sensor:")
}
QGCComboBox {
......@@ -174,7 +174,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: currPinCombo.baseline
text: "Current pin:"
text: qsTr("Current pin:")
visible: _showAdvanced
}
......@@ -194,7 +194,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: voltPinCombo.baseline
text: "Voltage pin:"
text: qsTr("Voltage pin:")
visible: _showAdvanced
}
......@@ -214,7 +214,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: voltMultField.baseline
text: "Voltage multiplier:"
text: qsTr("Voltage multiplier:")
visible: _showAdvanced
}
......@@ -233,7 +233,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: ampPerVoltField.baseline
text: "Amps per volt:"
text: qsTr("Amps per volt:")
visible: _showAdvanced
}
......
......@@ -45,12 +45,12 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Battery monitor:"
labelText: qsTr("Battery monitor:")
valueText: battMonitor.enumStringValue
}
VehicleSummaryRow {
labelText: "Battery capacity:"
labelText: qsTr("Battery capacity:")
valueText: battCapacity.valueString
}
}
......
......@@ -24,23 +24,23 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Roll:"
valueText: mapRollFact.value == 0 ? "Setup required" : "Channel " + mapRollFact.valueString
labelText: qsTr("Roll:")
valueText: mapRollFact.value == 0 ? qsTr("Setup required") : qsTr("Channel %1").arg(mapRollFact.valueString)
}
VehicleSummaryRow {
labelText: "Pitch:"
valueText: mapPitchFact.value == 0 ? "Setup required" : "Channel " + mapPitchFact.valueString
labelText: qsTr("Pitch:")
valueText: mapPitchFact.value == 0 ? qsTr("Setup required") : qsTr("Channel %1").arg(mapPitchFact.valueString)
}
VehicleSummaryRow {
labelText: "Yaw:"
valueText: mapYawFact.value == 0 ? "Setup required" : "Channel " + mapYawFact.valueString
labelText: qsTr("Yaw:")
valueText: mapYawFact.value == 0 ? qsTr("Setup required") : qsTr("Channel %1").arg(mapYawFact.valueString)
}
VehicleSummaryRow {
labelText: "Throttle:"
valueText: mapThrottleFact.value == 0 ? "Setup required" : "Channel " + mapThrottleFact.valueString
labelText: qsTr("Throttle:")
valueText: mapThrottleFact.value == 0 ? qsTr("Setup required") : qsTr("Channel %1").arg(mapThrottleFact.valueString)
}
}
}
......@@ -64,7 +64,7 @@ QGCView {
QGCLabel {
id: failsafeTriggersLabel
text: "Failsafe Triggers"
text: qsTr("Failsafe Triggers")
font.weight: Font.DemiBold
}
......@@ -83,7 +83,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: throttlePWMField.baseline
text: "Throttle PWM threshold:"
text: qsTr("Throttle PWM threshold:")
checked: _failsafeThrEnable.value == 1
onClicked: _failsafeThrEnable.value = (checked ? 1 : 0)
......@@ -104,7 +104,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: voltageField.baseline
text: "Voltage threshold:"
text: qsTr("Voltage threshold:")
checked: _failsafeBattVoltage.value != 0
onClicked: _failsafeBattVoltage.value = checked ? 10.5 : 0
......@@ -125,7 +125,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.baseline: mahField.baseline
text: "MAH threshold:"
text: qsTr("MAH threshold:")
checked: _failsafeBattMah.value != 0
onClicked: _failsafeBattMah.value = checked ? 600 : 0
......@@ -146,7 +146,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.top: mahField.bottom
text: "GCS failsafe"
text: qsTr("GCS failsafe")
checked: _failsafeGCSEnable.value != 0
onClicked: _failsafeGCSEnable.value = checked ? 1 : 0
......@@ -157,7 +157,7 @@ QGCView {
id: rtlLabel
anchors.leftMargin: _margins
anchors.left: failsafeTriggerSettings.right
text: "Return to Launch"
text: qsTr("Return to Launch")
font.weight: Font.DemiBold
}
......@@ -175,7 +175,7 @@ QGCView {
anchors.margins: _margins
anchors.left: parent.left
anchors.top: parent.top
text: "Return at current altitude"
text: qsTr("Return at current altitude")
checked: _rtlAltFact.value < 0
exclusiveGroup: returnAltRadioGroup
......@@ -187,7 +187,7 @@ QGCView {
anchors.topMargin: _margins / 2
anchors.left: returnAtCurrentRadio.left
anchors.top: returnAtCurrentRadio.bottom
text: "Return at specified altitude:"
text: qsTr("Return at specified altitude:")
exclusiveGroup: returnAltRadioGroup
checked: _rtlAltFact.value >= 0
......
......@@ -27,7 +27,7 @@ import QGroundControl.Controls 1.0
QGCLabel {
anchors.fill: parent
text: "Not supported"
text: qsTr("Not supported")
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
......@@ -51,35 +51,35 @@ FactPanel {
function setFailsafeThrEnableText() {
switch (_failsafeThrEnable.value) {
case 0:
_failsafeThrEnableText = "Disabled"
_failsafeThrEnableText = qsTr("Disabled")
break
case 1:
_failsafeThrEnableText = "Always RTL"
_failsafeThrEnableText = qsTr("Always RTL")
break
case 2:
_failsafeThrEnableText = "Continue with Mission in Auto Mode"
_failsafeThrEnableText = qsTr("Continue with Mission in Auto Mode")
break
case 3:
_failsafeThrEnableText = "Always Land"
_failsafeThrEnableText = qsTr("Always Land")
break
default:
_failsafeThrEnableText = "Unknown"
_failsafeThrEnableText = qsTr("Unknown")
}
}
function setFailsafeBattEnableText() {
switch (_failsafeBattEnable.value) {
case 0:
_failsafeBattEnableText = "Disabled"
_failsafeBattEnableText = qsTr("Disabled")
break
case 1:
_failsafeBattEnableText = "Land"
_failsafeBattEnableText = qsTr("Land")
break
case 2:
_failsafeBattEnableText = "Return to Launch"
_failsafeBattEnableText = qsTr("Return to Launch")
break
default:
_failsafeThrEnableText = "Unknown"
_failsafeThrEnableText = qsTr("Unknown")
}
}
......@@ -88,54 +88,54 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Arming Checks:"
valueText: _armingCheck.value & 1 ? "Enabled" : "Some disabled"
labelText: qsTr("Arming Checks:")
valueText: _armingCheck.value & 1 ? qsTr("Enabled") : qsTr("Some disabled")
}
VehicleSummaryRow {
labelText: "Throttle failsafe:"
labelText: qsTr("Throttle failsafe:")
valueText: _failsafeThrEnableText
}
VehicleSummaryRow {
labelText: "Battery failsafe:"
labelText: qsTr("Battery failsafe:")
valueText: _failsafeBattEnableText
}
VehicleSummaryRow {
labelText: "GeoFence:"
labelText: qsTr("GeoFence:")
valueText: _fenceEnable.value == 0 || _fenceType == 0 ?
"Disabled" :
qsTr("Disabled") :
(_fenceType.value == 1 ?
"Altitude" :
(_fenceType.value == 2 ? "Circle" : "Altitude,Circle"))
qsTr("Altitude") :
(_fenceType.value == 2 ? qsTr("Circle") : qsTr("Altitude,Circle")))
}
VehicleSummaryRow {
labelText: "GeoFence:"
labelText: qsTr("GeoFence:")
valueText: _fenceAction.value == 0 ?
"Report only" :
(_fenceAction.value == 1 ? "RTL or Land" : "Unknown")
qsTr("Report only") :
(_fenceAction.value == 1 ? qsTr("RTL or Land") : qsTr("Unknown"))
visible: _fenceEnable.value != 0
}
VehicleSummaryRow {
labelText: "RTL min alt:"
valueText: _rtlAltFact.value == 0 ? "current" : _rtlAltFact.valueString
labelText: qsTr("RTL min alt:")
valueText: _rtlAltFact.value == 0 ? qsTr("current") : _rtlAltFact.valueString
}
VehicleSummaryRow {
labelText: "RTL loiter time:"
labelText: qsTr("RTL loiter time:")
valueText: _rtlLoitTimeFact.valueString
}
VehicleSummaryRow {
labelText: "RTL final alt:"
valueText: _rtlAltFinalFact.value == 0 ? "Land" : _rtlAltFinalFact.valueString
labelText: qsTr("RTL final alt:")
valueText: _rtlAltFinalFact.value == 0 ? qsTr("Land") : _rtlAltFinalFact.valueString
}
VehicleSummaryRow {
labelText: "Descent speed:"
labelText: qsTr("Descent speed:")
valueText: _landSpeedFact.valueString
}
}
......
......@@ -27,23 +27,23 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Throttle failsafe:"
valueText: _failsafeThrEnable.value != 0 ? _failsafeThrValue.valueString : "Disabled"
labelText: qsTr("Throttle failsafe:")
valueText: _failsafeThrEnable.value != 0 ? _failsafeThrValue.valueString : qsTr("Disabled")
}
VehicleSummaryRow {
labelText: "Voltage failsafe:"
valueText: _failsafeBattVoltage.value == 0 ? "Disabled" : _failsafeBattVoltage.valueString
labelText: qsTr("Voltage failsafe:")
valueText: _failsafeBattVoltage.value == 0 ? qsTr("Disabled") : _failsafeBattVoltage.valueString
}
VehicleSummaryRow {
labelText: "mAh failsafe:"
valueText: _failsafeBattMah.value == 0 ? "Disabled" : _failsafeBattMah.valueString
labelText: qsTr("mAh failsafe:")
valueText: _failsafeBattMah.value == 0 ? qsTr("Disabled") : _failsafeBattMah.valueString
}
VehicleSummaryRow {
labelText: "RTL min alt:"
valueText: _rtlAltFact.value < 0 ? "current" : _rtlAltFact.valueString
labelText: qsTr("RTL min alt:")
valueText: _rtlAltFact.value < 0 ? qsTr("current") : _rtlAltFact.valueString
}
}
}
......@@ -27,7 +27,7 @@ import QGroundControl.Controls 1.0
QGCLabel {
anchors.fill: parent
text: "Not supported"
text: qsTr("Not supported")
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
......@@ -49,26 +49,26 @@ FactPanel {
anchors.margins: 8
VehicleSummaryRow {
labelText: "Compass 1:"
labelText: qsTr("Compass 1:")
visible: compass1Available
valueText: compass1Calibrated ? "Ready" : "Setup required"
valueText: compass1Calibrated ? qsTr("Ready") : qsTr("Setup required")
}
VehicleSummaryRow {
labelText: "Compass 2:"
labelText: qsTr("Compass 2:")
visible: compass2Available
valueText: compass2Calibrated ? "Ready" : "Setup required"
valueText: compass2Calibrated ? qsTr("Ready") : qsTr("Setup required")
}
VehicleSummaryRow {
labelText: "Compass 3:"
labelText: qsTr("Compass 3:")
visible: compass3Available
valueText: compass3Calibrated ? "Ready" : "Setup required"
valueText: compass3Calibrated ? qsTr("Ready") : qsTr("Setup required")
}
VehicleSummaryRow {
labelText: "Accelerometer:"
valueText: controller.accelSetupNeeded ? "Setup required" : "Ready"
labelText: qsTr("Accelerometer:")
valueText: controller.accelSetupNeeded ? qsTr("Setup required") : qsTr("Ready")
}
}
}
......@@ -134,7 +134,7 @@ QGCView {
QGCLabel {
id: basicLabel
text: "Basic Tuning"
text: qsTr("Basic Tuning")
font.weight: Font.DemiBold
}
......@@ -160,12 +160,12 @@ QGCView {
anchors.right: parent.right
QGCLabel {
text: "Throttle Hover"
text: qsTr("Throttle Hover")
font.weight: Font.DemiBold
}
QGCLabel {
text: "How much throttle is needed to maintain a steady hover"
text: qsTr("How much throttle is needed to maintain a steady hover")
}
Slider {
......@@ -190,12 +190,12 @@ QGCView {
anchors.right: parent.right
QGCLabel {
text: "Roll/Pitch Sensitivity"
text: qsTr("Roll/Pitch Sensitivity")
font.weight: Font.DemiBold
}
QGCLabel {
text: "Slide to the right if the copter is sluggish or slide to the left if the copter is twitchy"
text: qsTr("Slide to the right if the copter is sluggish or slide to the left if the copter is twitchy")
}
Slider {
......@@ -223,12 +223,12 @@ QGCView {
anchors.right: parent.right
QGCLabel {
text: "Climb Sensitivity"
text: qsTr("Climb Sensitivity")
font.weight: Font.DemiBold
}
QGCLabel {
text: "Slide to the right to climb more aggressively or slide to the left to climb more gently"
text: qsTr("Slide to the right to climb more aggressively or slide to the left to climb more gently")
}
Slider {
......@@ -255,12 +255,12 @@ QGCView {
anchors.right: parent.right
QGCLabel {
text: "RC Roll/Pitch Feel"
text: qsTr("RC Roll/Pitch Feel")
font.weight: Font.DemiBold
}
QGCLabel {
text: "Slide to the left for soft control, slide to the right for crisp control"
text: qsTr("Slide to the left for soft control, slide to the right for crisp control")
}
Slider {
......@@ -286,7 +286,7 @@ QGCView {
id: autoTuneLabel
anchors.topMargin: _margins
anchors.top: basicTuningRect.bottom
text: "AutoTune"
text: qsTr("AutoTune")
font.weight: Font.DemiBold
}
......@@ -309,7 +309,7 @@ QGCView {
Row {
spacing: _margins
QGCLabel { text: "Axes to AutoTune:" }
QGCLabel { text: qsTr("Axes to AutoTune:") }
FactBitmask { fact: _autoTuneAxes }
}
......@@ -318,13 +318,13 @@ QGCView {
QGCLabel {
anchors.baseline: autoTuneChannelCombo.baseline
text: "Channel for AutoTune switch:"
text: qsTr("Channel for AutoTune switch:")
}
QGCComboBox {
id: autoTuneChannelCombo
width: ScreenTools.defaultFontPixelWidth * 14
model: ["None", "Channel 7", "Channel 8", "Channel 9", "Channel 10", "Channel 11", "Channel 12" ]
model: [qsTr("None"), qsTr("Channel 7"), qsTr("Channel 8"), qsTr("Channel 9"), qsTr("Channel 10"), qsTr("Channel 11"), qsTr("Channel 12") ]
currentIndex: _autoTuneSwitchChannelIndex
onActivated: {
......
......@@ -30,23 +30,23 @@ FactPanel {
anchors.fill: parent
anchors.margins: 8
VehicleSummaryRow {
labelText: "Firmware Version:"
labelText: qsTr("Firmware Version:")
valueText: esp8266.version
}
VehicleSummaryRow {
labelText: "WiFi Channel:"
labelText: qsTr("WiFi Channel:")
valueText: wifiChannel ? wifiChannel.valueString : ""
}
VehicleSummaryRow {
labelText: "WiFi SSID:"
labelText: qsTr("WiFi SSID:")
valueText: esp8266.wifiSSID
}
VehicleSummaryRow {
labelText: "WiFi Password:"
labelText: qsTr("WiFi Password:")
valueText: esp8266.wifiPassword
}
VehicleSummaryRow {
labelText: "UART Baud Rate:"
labelText: qsTr("UART Baud Rate:")
valueText: uartBaud ? uartBaud.valueString : ""
}
}
......
......@@ -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
}
}
}
......
......@@ -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
......
This diff is collapsed.
......@@ -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 : ""
}
}
......
......@@ -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") : qsTr("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")) : ""
}
}
}
......@@ -14,7 +14,7 @@ QGCCheckBox {
partiallyCheckedEnabled: fact.value != checkedValue && fact.value != uncheckedValue
checkedState: fact.value == checkedValue ? Qt.Checked : (fact.value == uncheckedValue ? Qt.Unchecked : Qt.PartiallyChecked)
text: "Label"
text: qsTr("Label")
onClicked: {
fact.value = checked ? checkedValue : uncheckedValue
......
......@@ -67,7 +67,7 @@ FocusScope {
QGCLabel {
anchors.fill: parent
wrapMode: Text.WordWrap
text: __errorMsg.length ? __errorMsg : "Parameters(s) missing: " + __missingParams
text: __errorMsg.length ? __errorMsg : qsTr("Parameters(s) missing: %1").arg(__missingParams)
}
}
}
......
......@@ -29,7 +29,7 @@ QGCTextField {
fact.value = text
} else {
_validateString = text
qgcView.showDialog(editorDialogComponent, "Invalid Parameter Value", qgcView.showDialogDefaultWidth, StandardButton.Save)
qgcView.showDialog(editorDialogComponent, qsTr("Invalid Parameter Value"), qgcView.showDialogDefaultWidth, StandardButton.Save)
}
} else {
fact.value = text
......
......@@ -113,9 +113,9 @@ QGCView {
MessageDialog {
id: px4JoystickSupport
text: "Joystick support requires MAVLink MANUAL_CONTROL support. " +
"The firmware you are running does not normally support this. " +
"It will only work if you have modified the firmware to add MANUAL_CONTROL support."
text: qsTr("Joystick support requires MAVLink MANUAL_CONTROL support. ") +
qsTr("The firmware you are running does not normally support this. ") +
qsTr("It will only work if you have modified the firmware to add MANUAL_CONTROL support.")
}
Connections {
......
......@@ -119,7 +119,7 @@ FlightMap {
sourceItem: MissionItemIndexLabel {
isCurrentItem: true
label: "G"
label: qsTr("G", "Goto here waypoint") // second string is translator's hint.
}
}
......
......@@ -42,7 +42,7 @@ Item {
color: Qt.rgba(0,0,0,0.75)
visible: !_controller.videoRunning
QGCLabel {
text: "NO VIDEO"
text: qsTr("NO VIDEO")
font.weight: Font.DemiBold
color: "white"
font.pixelSize: _mainIsMap ? 12 * ScreenTools.fontHRatio : 20 * ScreenTools.fontHRatio
......
......@@ -75,7 +75,7 @@ Item {
z: QGroundControl.zOrderTopMost
color: mapPal.text
font.pixelSize: ScreenTools.largeFontPixelSize
text: "No GPS Lock for Vehicle"
text: qsTr("No GPS Lock for Vehicle")
}
QGCLabel {
......@@ -172,7 +172,7 @@ Item {
QGCCheckBox {
id: followVehicleCheckBox
text: "Follow Vehicle"
text: qsTr("Follow Vehicle")
checked: _flightMap ? _flightMap._followVehicle : false
anchors.baseline: centerMapButton.baseline
......@@ -184,7 +184,7 @@ Item {
QGCButton {
id: centerMapButton
text: "Center map on Vehicle"
text: qsTr("Center map on Vehicle")
enabled: _activeVehicle && !followVehicleCheckBox.checked
property var activeVehicle: QGroundControl.multiVehicleManager.activeVehicle
......@@ -232,7 +232,7 @@ Item {
}
QGCButton {
text: "Clear flight trails"
text: qsTr("Clear flight trails")
enabled: QGroundControl.multiVehicleManager.activeVehicle
onClicked: {
......@@ -387,7 +387,7 @@ Item {
_activeVehicle.setCurrentMissionSequence(_flightMap._retaskSequence)
break;
default:
console.warn("Internal error: unknown confirmActionCode", confirmActionCode)
console.warn(qsTr("Internal error: unknown confirmActionCode"), confirmActionCode)
}
}
......@@ -404,35 +404,35 @@ Item {
confirmActionCode = actionCode
switch (confirmActionCode) {
case confirmArm:
guidedModeConfirm.confirmText = "arm"
guidedModeConfirm.confirmText = qsTr("arm")
break;
case confirmDisarm:
guidedModeConfirm.confirmText = "disarm"
guidedModeConfirm.confirmText = qsTr("disarm")
break;
case confirmEmergencyStop:
guidedModeConfirm.confirmText = "STOP ALL MOTORS!"
guidedModeConfirm.confirmText = qsTr("STOP ALL MOTORS!")
break;
case confirmTakeoff:
altitudeSlider.visible = true
altitudeSlider.setInitialValueMeters(10)
guidedModeConfirm.confirmText = "takeoff"
guidedModeConfirm.confirmText = qsTr("takeoff")
break;
case confirmLand:
guidedModeConfirm.confirmText = "land"
guidedModeConfirm.confirmText = qsTr("land")
break;
case confirmHome:
guidedModeConfirm.confirmText = "return to launch"
guidedModeConfirm.confirmText = qsTr("return to launch")
break;
case confirmChangeAlt:
altitudeSlider.visible = true
altitudeSlider.setInitialValueAppSettingsDistanceUnits(_activeVehicle.altitudeAMSL.value)
guidedModeConfirm.confirmText = "change altitude"
guidedModeConfirm.confirmText = qsTr("change altitude")
break;
case confirmGoTo:
guidedModeConfirm.confirmText = "move vehicle"
guidedModeConfirm.confirmText = qsTr("move vehicle")
break;
case confirmRetask:
_guidedModeBar.confirmText = "active waypoint change"
_guidedModeBar.confirmText = qsTr("active waypoint change")
break;
}
guidedModeBar.visible = false
......@@ -450,24 +450,24 @@ Item {
spacing: _margins
QGCButton {
text: (_activeVehicle && _activeVehicle.armed) ? (_activeVehicle.flying ? "Emergency Stop" : "Disarm") : "Arm"
text: (_activeVehicle && _activeVehicle.armed) ? (_activeVehicle.flying ? qsTr("Emergency Stop") : qsTr("Disarm")) : qsTr("Arm")
onClicked: _guidedModeBar.confirmAction(_activeVehicle.armed ? (_activeVehicle.flying ? _guidedModeBar.confirmEmergencyStop : _guidedModeBar.confirmDisarm) : _guidedModeBar.confirmArm)
}
QGCButton {
text: "RTL"
text: qsTr("RTL")
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.flying
onClicked: _guidedModeBar.confirmAction(_guidedModeBar.confirmHome)
}
QGCButton {
text: (_activeVehicle && _activeVehicle.flying) ? "Land" : "Takeoff"
text: (_activeVehicle && _activeVehicle.flying) ? qsTr("Land"): qsTr("Takeoff")
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.armed
onClicked: _guidedModeBar.confirmAction(_activeVehicle.flying ? _guidedModeBar.confirmLand : _guidedModeBar.confirmTakeoff)
}
QGCButton {
text: "Pause"
text: qsTr("Pause")
visible: _activeVehicle && _activeVehicle.pauseVehicleSupported && _activeVehicle.flying
onClicked: {
guidedModeHideTimer.restart()
......@@ -476,7 +476,7 @@ Item {
}
QGCButton {
text: "Change Altitude"
text: qsTr("Change Altitude")
visible: _activeVehicle && _activeVehicle.guidedModeSupported && _activeVehicle.armed
onClicked: _guidedModeBar.confirmAction(_guidedModeBar.confirmChangeAlt)
}
......@@ -557,7 +557,7 @@ Item {
QGCLabel {
anchors.horizontalCenter: parent.horizontalCenter
text: "Alt (rel)"
text: qsTr("Alt (rel)")
}
QGCLabel {
......
......@@ -89,7 +89,7 @@ Item {
color: Qt.rgba(0,0,0,0.65)
QGCLabel {
text: active ? heading.toFixed(0) : "OFF"
text: active ? heading.toFixed(0) : qsTr("OFF")
font.weight: active ? Font.DemiBold : Font.Light
font.pixelSize: _fontSize < 1 ? 1 : _fontSize;
color: "white"
......
......@@ -52,7 +52,7 @@ QGCFlickable {
}
function showPicker() {
qgcView.showDialog(propertyPicker, "Value Widget Setup", qgcView.showDialogDefaultWidth, StandardButton.Ok)
qgcView.showDialog(propertyPicker, qsTr("Value Widget Setup"), qgcView.showDialogDefaultWidth, StandardButton.Ok)
}
function listContains(list, value) {
......@@ -163,7 +163,7 @@ QGCFlickable {
QGCLabel {
id: _label
text: "Select the values you want to display:"
text: qsTr("Select the values you want to display:")
}
Loader {
......@@ -195,7 +195,7 @@ QGCFlickable {
QGCLabel {
width: parent.width
wrapMode: Text.WordWrap
text: factGroup ? factGroupName : "Vehicle must be connected to assign values."
text: factGroup ? factGroupName : qsTr("Vehicle must be connected to assign values.")
}
Repeater {
......@@ -254,7 +254,7 @@ QGCFlickable {
QGCCheckBox {
id: _largeCheckBox
text: "large"
text: qsTr("large")
checked: listContains(controller.largeValues, propertyName)
enabled: _addCheckBox.checked
onClicked: updateValues()
......
......@@ -60,7 +60,7 @@ QGCFlickable {
QGCLabel {
id: title
color: textColor
text: "Vibe"
text: qsTr("Vibe")
anchors.horizontalCenter: barRow.horizontalCenter
}
......@@ -141,7 +141,7 @@ QGCFlickable {
anchors.left: barRow.right
anchors.right: parent.right
color: textColor
text: "Clip count"
text: qsTr("Clip count")
horizontalAlignment: Text.AlignHCenter
}
......@@ -151,17 +151,17 @@ QGCFlickable {
anchors.horizontalCenter: clipLabel.horizontalCenter
QGCLabel {
text: "Accel 1: " + (_activeVehicle ? _activeVehicle.vibration.clipCount1.valueString : "")
text: qsTr("Accel 1: ") + (_activeVehicle ? _activeVehicle.vibration.clipCount1.valueString : "")
color: textColor
}
QGCLabel {
text: "Accel 2: " + (_activeVehicle ? _activeVehicle.vibration.clipCount2.valueString : "")
text: qsTr("Accel 2: ") + (_activeVehicle ? _activeVehicle.vibration.clipCount2.valueString : "")
color: textColor
}
QGCLabel {
text: "Accel 2: " + (_activeVehicle ? _activeVehicle.vibration.clipCount3.valueString : "")
text: qsTr("Accel 2: ") + (_activeVehicle ? _activeVehicle.vibration.clipCount3.valueString : "")
color: textColor
}
}
......@@ -175,7 +175,7 @@ QGCFlickable {
QGCLabel {
anchors.fill: parent
text: "Not Available"
text: qsTr("Not Available")
color: textColor
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
......
......@@ -90,7 +90,7 @@ QGCView {
function loadFromFile() {
if (ScreenTools.isMobile) {
_root.showDialog(mobileFilePicker, "Select Mission File", _root.showDialogDefaultWidth, StandardButton.Yes | StandardButton.Cancel)
_root.showDialog(mobileFilePicker, qsTr("Select Mission File"), _root.showDialogDefaultWidth, StandardButton.Yes | StandardButton.Cancel)
} else {
controller.loadMissionFromFilePicker()
fitViewportToMissionItems()
......@@ -99,7 +99,7 @@ QGCView {
function saveToFile() {
if (ScreenTools.isMobile) {
_root.showDialog(mobileFileSaver, "Save Mission File", _root.showDialogDefaultWidth, StandardButton.Save | StandardButton.Cancel)
_root.showDialog(mobileFileSaver, qsTr("Save Mission File"), _root.showDialogDefaultWidth, StandardButton.Save | StandardButton.Cancel)
} else {
controller.saveMissionToFilePicker()
}
......@@ -238,7 +238,7 @@ QGCView {
anchors.left: parent.left
anchors.right: parent.right
wrapMode: Text.WordWrap
text: "Move the selected mission item to the be after following mission item:"
text: qsTr("Move the selected mission item to the be after following mission item:")
}
QGCComboBox {
......@@ -585,13 +585,13 @@ QGCView {
dropDownComponent: Component {
Column {
QGCLabel { text: "Center map:" }
QGCLabel { text: qsTr("Center map:") }
Row {
spacing: ScreenTools.defaultFontPixelWidth
QGCButton {
text: "Home"
text: qsTr("Home")
onClicked: {
centerMapButton.hideDropDown()
......@@ -600,7 +600,7 @@ QGCView {
}
QGCButton {
text: "Mission"
text: qsTr("Mission")
onClicked: {
centerMapButton.hideDropDown()
......@@ -609,7 +609,7 @@ QGCView {
}
QGCButton {
text: "Vehicle"
text: qsTr("Vehicle")
enabled: activeVehicle && activeVehicle.latitude != 0 && activeVehicle.longitude != 0
property var activeVehicle: _activeVehicle
......@@ -635,7 +635,7 @@ QGCView {
dropDownComponent: Component {
Column {
QGCLabel { text: "Map type:" }
QGCLabel { text: qsTr("Map type:") }
Row {
spacing: ScreenTools.defaultFontPixelWidth
......@@ -712,7 +712,7 @@ QGCView {
QGCViewMessage {
id: syncLoadFromVehicleCheck
message: "You have unsaved/unsent mission changes. Loading the mission from the Vehicle will lose these changes. Are you sure you want to load the mission from the Vehicle?"
message: qsTr("You have unsaved/unsent mission changes. Loading the mission from the Vehicle will lose these changes. Are you sure you want to load the mission from the Vehicle?")
function accept() {
hideDialog()
......@@ -726,7 +726,7 @@ QGCView {
QGCViewMessage {
id: syncLoadFromVehicleCheck
message: "You have unsaved/unsent mission changes. Loading a mission from a file will lose these changes. Are you sure you want to load a mission from a file?"
message: qsTr("You have unsaved/unsent mission changes. Loading a mission from a file will lose these changes. Are you sure you want to load a mission from a file?")
function accept() {
hideDialog()
......@@ -739,7 +739,7 @@ QGCView {
id: removeAllPromptDialog
QGCViewMessage {
message: "Are you sure you want to delete all mission items?"
message: qsTr("Are you sure you want to delete all mission items?")
function accept() {
itemDragger.clearItem()
......@@ -760,8 +760,8 @@ QGCView {
width: sendSaveRow.width
wrapMode: Text.WordWrap
text: syncNeeded && !controller.autoSync ?
"You have unsaved changes to you mission. You should send to your vehicle, or save to a file:" :
"Sync:"
qsTr("You have unsaved changed to you mission. You should send to your vehicle, or save to a file:") :
qsTr("Sync:")
}
Row {
......@@ -770,7 +770,7 @@ QGCView {
spacing: ScreenTools.defaultFontPixelWidth
QGCButton {
text: "Send to vehicle"
text: qsTr("Send to vehicle")
enabled: _activeVehicle && !controller.syncInProgress
onClicked: {
......@@ -780,13 +780,13 @@ QGCView {
}
QGCButton {
text: "Load from vehicle"
text: qsTr("Load from vehicle")
enabled: _activeVehicle && !controller.syncInProgress
onClicked: {
syncButton.hideDropDown()
if (syncNeeded) {
_root.showDialog(syncLoadFromVehicleOverwrite, "Mission overwrite", _root.showDialogDefaultWidth, StandardButton.Yes | StandardButton.Cancel)
_root.showDialog(syncLoadFromVehicleOverwrite, qsTr("Mission overwrite"), _root.showDialogDefaultWidth, StandardButton.Yes | StandardButton.Cancel)
} else {
loadFromVehicle()
}
......@@ -798,7 +798,7 @@ QGCView {
spacing: ScreenTools.defaultFontPixelWidth
QGCButton {
text: "Save to file..."
text: qsTr("Save to file...")
enabled: !controller.syncInProgress
onClicked: {
......@@ -808,13 +808,13 @@ QGCView {
}
QGCButton {
text: "Load from file..."
text: qsTr("Load from file...")
enabled: !controller.syncInProgress
onClicked: {
syncButton.hideDropDown()
if (syncNeeded) {
_root.showDialog(syncLoadFromFileOverwrite, "Mission overwrite", _root.showDialogDefaultWidth, StandardButton.Yes | StandardButton.Cancel)
_root.showDialog(syncLoadFromFileOverwrite, qsTr("Mission overwrite"), _root.showDialogDefaultWidth, StandardButton.Yes | StandardButton.Cancel)
} else {
loadFromFile()
}
......@@ -823,10 +823,10 @@ QGCView {
}
QGCButton {
text: "Remove all"
text: qsTr("Remove all")
onClicked: {
syncButton.hideDropDown()
_root.showDialog(removeAllPromptDialog, "Delete all", _root.showDialogDefaultWidth, StandardButton.Yes | StandardButton.No)
_root.showDialog(removeAllPromptDialog, qsTr("Delete all"), _root.showDialogDefaultWidth, StandardButton.Yes | StandardButton.No)
}
}
......
......@@ -71,16 +71,16 @@ Rectangle {
columns: 2
columnSpacing: _margins
QGCLabel { text: "Distance:" }
QGCLabel { text: qsTr("Distance:") }
QGCLabel { text: _distanceText }
QGCLabel { text: "Alt diff:" }
QGCLabel { text: qsTr("Alt diff:") }
QGCLabel { text: _altText }
QGCLabel { text: "Gradient:" }
QGCLabel { text: qsTr("Gradient:") }
QGCLabel { text: _gradientText }
QGCLabel { text: "Azimuth:" }
QGCLabel { text: qsTr("Azimuth:") }
QGCLabel { text: _azimuthText }
}
......@@ -133,7 +133,6 @@ Rectangle {
}
*/
}
}
}
}
......
......@@ -42,9 +42,9 @@ Rectangle {
wrapMode: Text.WordWrap
font.pixelSize: ScreenTools.smallFontPixelHeight
text: missionItem.sequenceNumber == 0 ?
"Planned home position." :
qsTr("Planned home position.") :
(missionItem.rawEdit ?
"Provides advanced access to all commands/parameters. Be very careful!" :
qsTr("Provides advanced access to all commands/parameters. Be very careful!") :
missionItem.commandDescription)
}
......@@ -114,7 +114,7 @@ Rectangle {
}
QGCButton {
text: "Move Home to map center"
text: qsTr("Move Home to map center")
visible: missionItem.homePosition
onClicked: editorRoot.moveHomeToMapCenter()
anchors.horizontalCenter: parent.horizontalCenter
......
......@@ -43,7 +43,7 @@ Rectangle {
}
QGCLabel {
text: "Fly a grid pattern over a defined area."
text: qsTr("Fly a grid pattern over a defined area.")
wrapMode: Text.WordWrap
}
......@@ -73,7 +73,7 @@ Rectangle {
QGCCheckBox {
anchors.left: parent.left
text: "Relative altitude"
text: qsTr("Relative altitude")
checked: missionItem.gridAltitudeRelative
onClicked: missionItem.gridAltitudeRelative = checked
}
......@@ -81,7 +81,7 @@ Rectangle {
QGCCheckBox {
id: cameraTrigger
anchors.left: parent.left
text: "Camera trigger:"
text: qsTr("Camera trigger:")
checked: missionItem.cameraTrigger
onClicked: missionItem.cameraTrigger = checked
}
......@@ -96,7 +96,7 @@ Rectangle {
QGCLabel {
anchors.baseline: textField.baseline
anchors.left: parent.left
text: "Distance:"
text: qsTr("Distance:")
}
FactTextField {
......@@ -109,7 +109,7 @@ Rectangle {
}
QGCButton {
text: _addPointsMode ? "Finish Polygon" : "Draw Polygon"
text: _addPointsMode ? qsTr("Finish Polygon") : qsTr("Draw Polygon")
onClicked: {
if (_addPointsMode) {
_addPointsMode = false
......
......@@ -41,7 +41,7 @@ QGCViewDialog {
QGCLabel {
id: categoryLabel
anchors.baseline: categoryCombo.baseline
text: "Category:"
text: qsTr("Category:")
}
QGCComboBox {
......
......@@ -73,12 +73,12 @@ Rectangle {
id: hamburgerMenu
MenuItem {
text: "Insert"
text: qsTr("Insert")
onTriggered: insert(missionItem.sequenceNumber)
}
MenuItem {
text: "Delete"
text: qsTr("Delete")
onTriggered: remove()
}
......@@ -92,7 +92,7 @@ Rectangle {
}
MenuItem {
text: "Show all values"
text: qsTr("Show all values")
checkable: true
checked: missionItem.isSimpleItem ? missionItem.rawEdit : false
visible: missionItem.isSimpleItem
......@@ -102,7 +102,7 @@ Rectangle {
if (missionItem.friendlyEditAllowed) {
missionItem.rawEdit = false
} else {
qgcView.showMessage("Mission Edit", "You have made changes to the mission item which cannot be shown in Simple Mode", StandardButton.Ok)
qgcView.showMessage(qsTr("Mission Edit"), qsTr("You have made changes to the mission item which cannot be shown in Simple Mode"), StandardButton.Ok)
}
} else {
missionItem.rawEdit = true
......@@ -133,14 +133,14 @@ Rectangle {
}
}
onClicked: qgcView.showDialog(commandDialog, "Select Mission Command", qgcView.showDialogDefaultWidth, StandardButton.Cancel)
onClicked: qgcView.showDialog(commandDialog, qsTr("Select Mission Command"), qgcView.showDialogDefaultWidth, StandardButton.Cancel)
}
QGCLabel {
anchors.fill: commandPicker
visible: missionItem.sequenceNumber == 0 || !missionItem.isCurrentItem || !missionItem.isSimpleItem
verticalAlignment: Text.AlignVCenter
text: missionItem.sequenceNumber == 0 ? "Home Position" : (missionItem.isSimpleItem ? missionItem.commandName : "Survey")
text: missionItem.sequenceNumber == 0 ? qsTr("Home Position") : (missionItem.isSimpleItem ? missionItem.commandName : qsTr("Survey"))
color: _outerTextColor
}
......
......@@ -104,7 +104,7 @@ Rectangle {
width: ScreenTools.defaultFontPixelWidth * monitorThresholdCharWidth
height: ScreenTools.defaultFontPixelHeight
verticalAlignment: Text.AlignVCenter
text: "Monitor:"
text: qsTr("Monitor:")
}
Item {
......@@ -144,7 +144,7 @@ Rectangle {
width: ScreenTools.defaultFontPixelWidth * monitorThresholdCharWidth
height: ScreenTools.defaultFontPixelHeight
verticalAlignment: Text.AlignVCenter
text: "Threshold:"
text: qsTr("Threshold:")
}
......
......@@ -54,7 +54,7 @@ QGCView {
id: controller;
factPanel: panel
onShowErrorMessage: {
showMessage("Parameter Load Errors", errorMsg, StandardButton.Ok)
showMessage(qsTr("Parameter Load Errors"), errorMsg, StandardButton.Ok)
}
}
......@@ -71,7 +71,7 @@ QGCView {
width: parent.width
height: ScreenTools.defaultFontPixelHeight * 1.75
QGCLabel {
text: "Search Results"
text: qsTr("Search Results")
visible: _searchFilter
font.weight: Font.DemiBold
anchors.verticalCenter: parent.verticalCenter
......@@ -82,13 +82,13 @@ QGCView {
width: ScreenTools.defaultFontPixelWidth * 25
anchors.verticalCenter: parent.verticalCenter
QGCLabel {
text: "GROUPS"
text: qsTr("GROUPS")
font.weight: Font.DemiBold
anchors.centerIn: parent
}
}
QGCLabel {
text: _currentGroup + " Parameters"
text: qsTr("%1 Parameters").arg(_currentGroup)
visible: !_searchFilter
font.weight: Font.DemiBold
anchors.left: groupTitle.right
......@@ -96,7 +96,7 @@ QGCView {
anchors.verticalCenter: parent.verticalCenter
}
QGCButton {
text: "Back"
text: qsTr("Back")
visible: _searchFilter
anchors.right: parent.right
height: ScreenTools.defaultFontPixelHeight * 1.75
......@@ -106,39 +106,39 @@ QGCView {
}
}
QGCButton {
text: "Tools"
text: qsTr("Tools")
visible: !_searchFilter
anchors.right: parent.right
height: ScreenTools.defaultFontPixelHeight * 1.75
menu: Menu {
MenuItem {
text: "Refresh"
text: qsTr("Refresh")
onTriggered: controller.refresh()
}
MenuItem {
text: "Reset all to defaults"
text: qsTr("Reset all to defaults")
onTriggered: controller.resetAllToDefaults()
}
MenuItem {
text: "Search..."
onTriggered: showDialog(searchDialogComponent, "Parameter Search", qgcView.showDialogDefaultWidth, StandardButton.Reset | StandardButton.Apply)
text: qsTr("Search...")
onTriggered: showDialog(searchDialogComponent, qsTr("Parameter Search"), qgcView.showDialogDefaultWidth, StandardButton.Reset | StandardButton.Apply)
}
MenuSeparator { }
MenuItem {
text: "Load from file..."
text: qsTr("Load from file...")
onTriggered: {
if (ScreenTools.isMobile) {
qgcView.showDialog(mobileFilePicker, "Select Parameter File", qgcView.showDialogDefaultWidth, StandardButton.Yes | StandardButton.Cancel)
qgcView.showDialog(mobileFilePicker, qsTr("Select Parameter File"), qgcView.showDialogDefaultWidth, StandardButton.Yes | StandardButton.Cancel)
} else {
controller.loadFromFilePicker()
}
}
}
MenuItem {
text: "Save to file..."
text: qsTr("Save to file...")
onTriggered: {
if (ScreenTools.isMobile) {
qgcView.showDialog(mobileFileSaver, "Save Parameter File", qgcView.showDialogDefaultWidth, StandardButton.Save | StandardButton.Cancel)
qgcView.showDialog(mobileFileSaver, qsTr("Save Parameter File"), qgcView.showDialogDefaultWidth, StandardButton.Save | StandardButton.Cancel)
} else {
controller.saveToFilePicker()
}
......@@ -146,7 +146,7 @@ QGCView {
}
MenuSeparator { visible: _showRCToParam }
MenuItem {
text: "Clear RC to Param"
text: qsTr("Clear RC to Param")
onTriggered: controller.clearRCToParam()
visible: _showRCToParam
}
......@@ -195,7 +195,7 @@ QGCView {
readonly property int componentId: parseInt(modelData)
spacing: Math.ceil(ScreenTools.defaultFontPixelHeight * 0.25)
QGCLabel {
text: "Component #: " + componentId.toString()
text: qsTr("Component #: %1)").arg(componentId.toString())
font.weight: Font.DemiBold
anchors.horizontalCenter: parent.horizontalCenter
}
......@@ -330,7 +330,7 @@ QGCView {
acceptedButtons: Qt.LeftButton
onClicked: {
_editorDialogFact = factRow.modelFact
showDialog(editorDialogComponent, "Parameter Editor", qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Save)
showDialog(editorDialogComponent, qsTr("Parameter Editor"), qgcView.showDialogDefaultWidth, StandardButton.Cancel | StandardButton.Save)
}
}
}
......@@ -365,7 +365,7 @@ QGCView {
QGCLabel {
id: searchForLabel
text: "Search for:"
text: qsTr("Search for:")
}
QGCTextField {
......@@ -380,7 +380,7 @@ QGCView {
anchors.top: searchFor.bottom
width: parent.width
wrapMode: Text.WordWrap
text: "Hint: Leave 'Search For' blank and click Apply to list all parameters sorted by name."
text: qsTr("Hint: Leave 'Search For' blank and click Apply to list all parameters sorted by name.")
}
}
}
......
......@@ -85,7 +85,7 @@ QGCViewDialog {
QGCLabel {
width: parent.width
wrapMode: Text.WordWrap
text: fact.shortDescription ? fact.shortDescription : "Description missing"
text: fact.shortDescription ? fact.shortDescription : qsTr("Description missing")
}
QGCLabel {
......@@ -111,7 +111,7 @@ QGCViewDialog {
QGCButton {
anchors.baseline: valueField.baseline
visible: fact.defaultValueAvailable
text: "Reset to default"
text: qsTr("Reset to default")
onClicked: {
fact.value = fact.defaultValue
......@@ -143,15 +143,15 @@ QGCViewDialog {
Row {
spacing: defaultTextWidth
QGCLabel { text: "Units:" }
QGCLabel { text: fact.units ? fact.units : "none" }
QGCLabel { text: qsTr("Units:") }
QGCLabel { text: fact.units ? fact.units : qsTr("none") }
}
Row {
spacing: defaultTextWidth
visible: !fact.minIsDefaultForType
QGCLabel { text: "Minimum value:" }
QGCLabel { text: qsTr("Minimum value:") }
QGCLabel { text: fact.minString }
}
......@@ -159,35 +159,35 @@ QGCViewDialog {
spacing: defaultTextWidth
visible: !fact.maxIsDefaultForType
QGCLabel { text: "Maximum value:" }
QGCLabel { text: qsTr("Maximum value:") }
QGCLabel { text: fact.maxString }
}
Row {
spacing: defaultTextWidth
QGCLabel { text: "Default value:" }
QGCLabel { text: fact.defaultValueAvailable ? fact.defaultValueString : "none" }
QGCLabel { text: qsTr("Default value:") }
QGCLabel { text: fact.defaultValueAvailable ? fact.defaultValueString : qsTr("none") }
}
QGCLabel {
width: parent.width
wrapMode: Text.WordWrap
text: "Warning: Modifying parameters while vehicle is in flight can lead to vehicle instability and possible vehicle loss. " +
"Make sure you know what you are doing and double-check your values before Save!"
text: qsTr("Warning: Modifying parameters while vehicle is in flight can lead to vehicle instability and possible vehicle loss. ") +
qsTr("Make sure you know what you are doing and double-check your values before Save!")
}
QGCLabel {
id: validationError
width: parent.width
wrapMode: Text.WordWrap
color: "yellow"
color: qsTr("yellow")
}
QGCCheckBox {
id: forceSave
visible: false
text: "Force save (dangerous!)"
text: qsTr("Force save (dangerous!)")
}
Row {
......@@ -204,7 +204,7 @@ QGCViewDialog {
QGCCheckBox {
id: _advanced
text: "Advanced settings"
text: qsTr("Advanced settings")
}
Rectangle {
......@@ -216,7 +216,7 @@ QGCViewDialog {
}
QGCButton {
text: "Set RC to Param..."
text: qsTr("Set RC to Param...")
visible: _advanced.checked && !validate && showRCToParam
onClicked: controller.setRCToParam(fact.name)
}
......
......@@ -33,8 +33,8 @@ Button {
__lastGlobalMouseX = ScreenTools.mouseX()
__lastGlobalMouseY = ScreenTools.mouseY()
}
onEntered: { __forceHoverOff; false; hoverTimer.start() }
onExited: { __forceHoverOff; false; hoverTimer.stop() }
onEntered: { __forceHoverOff = false; hoverTimer.start() }
onExited: { __forceHoverOff = false; hoverTimer.stop() }
}
Timer {
......@@ -43,11 +43,7 @@ Button {
repeat: true
onTriggered: {
if (__lastGlobalMouseX != ScreenTools.mouseX() || __lastGlobalMouseY != ScreenTools.mouseY()) {
__forceHoverOff = true
} else {
__forceHoverOff = false
}
__forceHoverOff = (__lastGlobalMouseX != ScreenTools.mouseX() || __lastGlobalMouseY != ScreenTools.mouseY());
}
}
......
......@@ -74,7 +74,7 @@ QGCViewDialog {
property alias replaceMessageShown: replaceMessage.visible
QGCLabel {
text: "File name:"
text: qsTr("File name:")
}
QGCTextField {
......@@ -86,7 +86,7 @@ QGCViewDialog {
anchors.left: parent.left
anchors.right: parent.right
wrapMode: Text.WordWrap
text: "File names must end with ." + fileExtension + " file extension. If missing it will be added."
text: qsTr("File names must end with .%1 file extension. If missing it will be added.").arg(fileExtension)
}
QGCLabel {
......@@ -94,7 +94,7 @@ QGCViewDialog {
anchors.left: parent.left
anchors.right: parent.right
wrapMode: Text.WordWrap
text: "The file " + filename + " exists. Click Save again to replace it."
text: qsTr("The file %1 exists. Click Save again to replace it.").arg(filename)
visible: false
color: qgcPal.warningText
}
......@@ -125,7 +125,7 @@ QGCViewDialog {
}
QGCLabel {
text: "No files"
text: qsTr("No files")
visible: controller.getFiles(fileExtension).length == 0
}
}
......
......@@ -54,61 +54,61 @@ FactPanel {
// Accept role buttons
if (buttons & StandardButton.Ok) {
__acceptButton.text = "Ok"
__acceptButton.text = qsTr("Ok")
__acceptButton.visible = true
} else if (buttons & StandardButton.Open) {
__acceptButton.text = "Open"
__acceptButton.text = qsTr("Open")
__acceptButton.visible = true
} else if (buttons & StandardButton.Save) {
__acceptButton.text = "Save"
__acceptButton.text = qsTr("Save")
__acceptButton.visible = true
} else if (buttons & StandardButton.Apply) {
__acceptButton.text = "Apply"
__acceptButton.text = qsTr("Apply")
__acceptButton.visible = true
} else if (buttons & StandardButton.Open) {
__acceptButton.text = "Open"
__acceptButton.text = qsTr("Open")
__acceptButton.visible = true
} else if (buttons & StandardButton.SaveAll) {
__acceptButton.text = "Save All"
__acceptButton.text = qsTr("Save All")
__acceptButton.visible = true
} else if (buttons & StandardButton.Yes) {
__acceptButton.text = "Yes"
__acceptButton.text = qsTr("Yes")
__acceptButton.visible = true
} else if (buttons & StandardButton.YesToAll) {
__acceptButton.text = "Yes to All"
__acceptButton.text = qsTr("Yes to All")
__acceptButton.visible = true
} else if (buttons & StandardButton.Retry) {
__acceptButton.text = "Retry"
__acceptButton.text = qsTr("Retry")
__acceptButton.visible = true
} else if (buttons & StandardButton.Reset) {
__acceptButton.text = "Reset"
__acceptButton.text = qsTr("Reset")
__acceptButton.visible = true
} else if (buttons & StandardButton.RestoreToDefaults) {
__acceptButton.text = "Restore to Defaults"
__acceptButton.text = qsTr("Restore to Defaults")
__acceptButton.visible = true
} else if (buttons & StandardButton.Ignore) {
__acceptButton.text = "Ignore"
__acceptButton.text = qsTr("Ignore")
__acceptButton.visible = true
}
// Reject role buttons
if (buttons & StandardButton.Cancel) {
__rejectButton.text = "Cancel"
__rejectButton.text = qsTr("Cancel")
__rejectButton.visible = true
} else if (buttons & StandardButton.Close) {
__rejectButton.text = "Close"
__rejectButton.text = qsTr("Close")
__rejectButton.visible = true
} else if (buttons & StandardButton.No) {
__rejectButton.text = "No"
__rejectButton.text = qsTr("No")
__rejectButton.visible = true
} else if (buttons & StandardButton.NoToAll) {
__rejectButton.text = "No to All"
__rejectButton.text = qsTr("No to All")
__rejectButton.visible = true
} else if (buttons & StandardButton.Abort) {
__rejectButton.text = "Abort"
__rejectButton.text = qsTr("Abort")
__rejectButton.visible = true
} else if (buttons & StandardButton.Reset) {
__rejectButton.text = "Reset"
__rejectButton.text = qsTr("Reset")
__rejectButton.visible = true
}
}
......@@ -121,7 +121,7 @@ FactPanel {
function __checkForEarlyDialog(title) {
if (!completedSignalled) {
console.warn("showDialog|Message called before QGCView.completed signalled", title)
console.warn(qsTr("showDialog|Message called before QGCView.completed signalled"), title)
}
}
......
......@@ -17,7 +17,7 @@ Rectangle {
height: themeChoice.height * 2
color: palette.window
QGCLabel {
text: "Window Color"
text: qsTr("Window Color")
anchors.left: parent.left
anchors.leftMargin: 20
anchors.verticalCenter: parent.horizontalCenter
......@@ -29,13 +29,13 @@ Rectangle {
spacing: 20
ExclusiveGroup { id: themeGroup }
QGCRadioButton {
text: "Light"
text: qsTr("Light")
checked: palette.globalTheme === QGCPalette.Light
exclusiveGroup: themeGroup
onClicked: { palette.globalTheme = QGCPalette.Light }
}
QGCRadioButton {
text: "Dark"
text: qsTr("Dark")
checked: palette.globalTheme === QGCPalette.Dark
exclusiveGroup: themeGroup
onClicked: { palette.globalTheme = QGCPalette.Dark }
......@@ -73,28 +73,28 @@ Rectangle {
height: 20
color: "black"
horizontalAlignment: Text.AlignHCenter
text: "Disabled"
text: qsTr("Disabled")
}
Text {
width: 80
height: 20
color: "black"
horizontalAlignment: Text.AlignHCenter
text: "Enabled"
text: qsTr("Enabled")
}
Text {
width: 80
height: 20
color: "black"
horizontalAlignment: Text.AlignHCenter
text: "Value"
text: qsTr("Value")
}
Text {
width: 80
height: 20
color: "black"
horizontalAlignment: Text.AlignHCenter
text: "Value"
text: qsTr("Value")
}
// window
......@@ -542,14 +542,14 @@ Rectangle {
height: 20
color: "black"
horizontalAlignment: Text.AlignHCenter
text: "Enabled"
text: qsTr("Enabled")
}
Text {
width: 100
height: 20
color: "black"
horizontalAlignment: Text.AlignHCenter
text: "Disabled"
text: qsTr("Disabled")
}
// QGCLabel
......@@ -560,12 +560,12 @@ Rectangle {
QGCLabel {
width: 100
height: 20
text: "Label"
text: qsTr("Label")
}
QGCLabel {
width: 100
height: 20
text: "Label"
text: qsTr("Label")
enabled: false
}
......@@ -577,12 +577,12 @@ Rectangle {
QGCButton {
width: 100
height: 20
text: "Button"
text: qsTr("Button")
}
QGCButton {
width: 100
height: 20
text: "Button"
text: qsTr("Button")
enabled: false
}
......@@ -595,12 +595,12 @@ Rectangle {
width: 100
height: 20
primary: true
text: "Button"
text: qsTr("Button")
}
QGCButton {
width: 100
height: 20
text: "Button"
text: qsTr("Button")
primary: true
enabled: false
}
......@@ -613,25 +613,25 @@ Rectangle {
Menu {
id: buttonMenu
MenuItem {
text: "Item 1"
text: qsTr("Item 1")
}
MenuItem {
text: "Item 2"
text: qsTr("Item 2")
}
MenuItem {
text: "Item 3"
text: qsTr("Item 3")
}
}
QGCButton {
width: 100
height: 20
text: "Button"
text: qsTr("Button")
menu: buttonMenu
}
QGCButton {
width: 100
height: 20
text: "Button"
text: qsTr("Button")
enabled: false
menu: buttonMenu
}
......@@ -644,12 +644,12 @@ Rectangle {
QGCRadioButton {
width: 100
height: 20
text: "Radio"
text: qsTr("Radio")
}
QGCRadioButton {
width: 100
height: 20
text: "Radio"
text: qsTr("Radio")
enabled: false
}
......@@ -661,12 +661,12 @@ Rectangle {
QGCCheckBox {
width: 100
height: 20
text: "Check Box"
text: qsTr("Check Box")
}
QGCCheckBox {
width: 100
height: 20
text: "Check Box"
text: qsTr("Check Box")
enabled: false
}
......@@ -695,12 +695,12 @@ Rectangle {
QGCComboBox {
width: 100
height: 20
model: [ "Item 1", "Item 2", "Item 3" ]
model: [ qsTr("Item 1"), qsTr("Item 2"), qsTr("Item 3") ]
}
QGCComboBox {
width: 100
height: 20
model: [ "Item 1", "Item 2", "Item 3" ]
model: [ qsTr("Item 1"), qsTr("Item 2"), qsTr("Item 3") ]
enabled: false
}
......@@ -712,12 +712,12 @@ Rectangle {
SubMenuButton {
width: 100
height: 100
text: "SUB MENU"
text: qsTr("SUB MENU")
}
SubMenuButton {
width: 100
height: 100
text: "SUB MENU"
text: qsTr("SUB MENU")
enabled: false
}
}
......
......@@ -26,7 +26,7 @@ Rectangle {
id: label
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
text: "Slide to " + confirmText
text: qsTr("Slide to %1").arg(confirmText)
}
Rectangle {
......
......@@ -36,7 +36,7 @@ Rectangle {
property bool calInProgress: false
// Text to show while calibration is in progress
property string calInProgressText: "Hold Still"
property string calInProgressText: qsTr("Hold Still")
// Image source
property var imageSource: ""
......@@ -70,7 +70,7 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignBottom
font.pixelSize: ScreenTools.mediumFontPixelSize
text: calInProgress ? calInProgressText : (calValid ? "Completed" : "Incomplete")
text: calInProgress ? calInProgressText : (calValid ? qsTr("Completed") : qsTr("Incomplete"))
}
}
}
......@@ -38,6 +38,10 @@ QGCView {
id: qgcView
viewPanel: panel
// Those user visible strings are hard to translate because we can't send the
// HTML strings to translation as this can create a security risk. we need to find
// a better way to hightlight them, or use less hightlights.
// User visible strings
readonly property string title: "FIRMWARE"
readonly property string highlightPrefix: "<font color=\"" + qgcPal.warningText + "\">"
......@@ -55,7 +59,7 @@ QGCView {
property string firmwareName
function cancelFlash() {
statusTextArea.append(highlightPrefix + "Upgrade cancelled" + highlightSuffix)
statusTextArea.append(highlightPrefix + qsTr("Upgrade cancelled") + highlightSuffix)
statusTextArea.append("------------------------------------------")
controller.cancel()
}
......@@ -105,7 +109,7 @@ QGCView {
QGroundControl.multiVehicleManager.activeVehicle.autoDisconnect = true
} else {
// We end up here when we detect a board plugged in after we've started upgrade
statusTextArea.append(highlightPrefix + "Found device" + highlightSuffix + ": " + controller.boardType)
statusTextArea.append(highlightPrefix + qsTr("Found device") + highlightSuffix + ": " + controller.boardType)
if (controller.boardType == "Pixhawk" || controller.boardType == "AeroCore" || controller.boardType == "PX4 Flow" || controller.boardType == "PX4 FMU V1") {
showDialog(pixhawkFirmwareSelectDialog, title, qgcView.showDialogDefaultWidth, StandardButton.Ok | StandardButton.Cancel)
}
......@@ -162,19 +166,19 @@ QGCView {
id: firmwareTypeList
ListElement {
text: "Standard Version (stable)";
text: qsTr("Standard Version (stable)")
firmwareType: FirmwareUpgradeController.StableFirmware
}
ListElement {
text: "Beta Testing (beta)";
text: qsTr("Beta Testing (beta)")
firmwareType: FirmwareUpgradeController.BetaFirmware
}
ListElement {
text: "Developer Build (master)";
text: qsTr("Developer Build (master)")
firmwareType: FirmwareUpgradeController.DeveloperFirmware
}
ListElement {
text: "Custom firmware file...";
text: qsTr("Custom firmware file...")
firmwareType: FirmwareUpgradeController.CustomFirmware
}
}
......@@ -183,11 +187,11 @@ QGCView {
id: px4FlowTypeList
ListElement {
text: "Standard Version (stable)";
text: qsTr("Standard Version (stable)")
firmwareType: FirmwareUpgradeController.StableFirmware
}
ListElement {
text: "Custom firmware file...";
text: qsTr("Custom firmware file...")
firmwareType: FirmwareUpgradeController.CustomFirmware
}
}
......@@ -217,7 +221,7 @@ QGCView {
id: px4FlightStack
checked: true
exclusiveGroup: firmwareGroup
text: "PX4 Flight Stack"
text: qsTr("PX4 Flight Stack")
visible: !px4Flow
onClicked: parent.firmwareVersionChanged(firmwareTypeList)
......@@ -226,7 +230,7 @@ QGCView {
QGCRadioButton {
id: apmFlightStack
exclusiveGroup: firmwareGroup
text: "ArduPilot Flight Stack"
text: qsTr("ArduPilot Flight Stack")
visible: !px4Flow
onClicked: parent.firmwareVersionChanged(firmwareTypeList)
......@@ -253,7 +257,7 @@ QGCView {
QGCCheckBox {
id: _advanced
text: "Advanced settings"
text: qsTr("Advanced settings")
checked: px4Flow ? true : false
onClicked: {
......@@ -274,7 +278,7 @@ QGCView {
width: parent.width
wrapMode: Text.WordWrap
visible: showFirmwareTypeSelection
text: px4Flow ? "Select which version of the firmware you would like to install:" : "Select which version of the above flight stack you would like to install:"
text: px4Flow ? qsTr("Select which version of the firmware you would like to install:") : qsTr("Select which version of the above flight stack you would like to install:")
}
QGCComboBox {
......@@ -288,18 +292,18 @@ QGCView {
controller.selectedFirmwareType = index
if (model.get(index).firmwareType == FirmwareUpgradeController.BetaFirmware) {
firmwareVersionWarningLabel.visible = true
firmwareVersionWarningLabel.text = "WARNING: BETA FIRMWARE. " +
"This firmware version is ONLY intended for beta testers. " +
"Although it has received FLIGHT TESTING, it represents actively changed code. " +
"Do NOT use for normal operation."
firmwareVersionWarningLabel.text = qsTr("WARNING: BETA FIRMWARE. ") +
qsTr("This firmware version is ONLY intended for beta testers. ") +
qsTr("Although it has received FLIGHT TESTING, it represents actively changed code. ") +
qsTr("Do NOT use for normal operation.")
} else if (model.get(index).firmwareType == FirmwareUpgradeController.DeveloperFirmware) {
firmwareVersionWarningLabel.visible = true
firmwareVersionWarningLabel.text = "WARNING: CONTINUOUS BUILD FIRMWARE. " +
"This firmware has NOT BEEN FLIGHT TESTED. " +
"It is only intended for DEVELOPERS. " +
"Run bench tests without props first. " +
"Do NOT fly this without additonal safety precautions. " +
"Follow the mailing list actively when using it."
firmwareVersionWarningLabel.text = qsTr("WARNING: CONTINUOUS BUILD FIRMWARE. ") +
qsTr("This firmware has NOT BEEN FLIGHT TESTED. ") +
qsTr("It is only intended for DEVELOPERS. ") +
qsTr("Run bench tests without props first. ") +
qsTr("Do NOT fly this without additonal safety precautions. ") +
qsTr("Follow the mailing list actively when using it.")
} else {
firmwareVersionWarningLabel.visible = false
}
......
......@@ -39,7 +39,7 @@ QGCView {
QGCPalette { id: qgcPal; colorGroupEnabled: panel.enabled }
readonly property string dialogTitle: "Joystick Config"
readonly property string dialogTitle: qsTr("Joystick Config")
readonly property real labelToMonitorMargin: defaultTextWidth * 3
property bool controllerCompleted: false
property bool controllerAndViewReady: false
......@@ -122,7 +122,7 @@ QGCView {
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: "Not Mapped"
text: qsTr("Not Mapped")
visible: !mapped
}
......@@ -150,7 +150,7 @@ QGCView {
QGCLabel {
id: header
font.pixelSize: ScreenTools.mediumFontPixelSize
text: "JOYSTICK"
text: qsTr("JOYSTICK")
}
Item {
......@@ -174,7 +174,7 @@ QGCView {
width: parent.width
spacing: 5
QGCLabel { text: "Attitude Controls" }
QGCLabel { text: qsTr("Attitude Controls") }
Item {
width: parent.width
......@@ -183,7 +183,7 @@ QGCView {
QGCLabel {
id: rollLabel
width: defaultTextWidth * 10
text: "Roll"
text: qsTr("Roll")
}
Loader {
......@@ -213,7 +213,7 @@ QGCView {
QGCLabel {
id: pitchLabel
width: defaultTextWidth * 10
text: "Pitch"
text: qsTr("Pitch")
}
Loader {
......@@ -243,7 +243,7 @@ QGCView {
QGCLabel {
id: yawLabel
width: defaultTextWidth * 10
text: "Yaw"
text: qsTr("Yaw")
}
Loader {
......@@ -273,7 +273,7 @@ QGCView {
QGCLabel {
id: throttleLabel
width: defaultTextWidth * 10
text: "Throttle"
text: qsTr("Throttle")
}
Loader {
......@@ -303,14 +303,14 @@ QGCView {
QGCButton {
id: skipButton
text: "Skip"
text: qsTr("Skip")
onClicked: controller.skipButtonClicked()
}
QGCButton {
id: cancelButton
text: "Cancel"
text: qsTr("Cancel")
onClicked: controller.cancelButtonClicked()
}
......@@ -318,7 +318,7 @@ QGCView {
QGCButton {
id: nextButton
primary: true
text: "Calibrate"
text: qsTr("Calibrate")
onClicked: controller.nextButtonClicked()
}
......@@ -348,7 +348,7 @@ QGCView {
width: parent.width / 2
spacing: ScreenTools.defaultFontPixelHeight
QGCLabel { text: "Additional Joystick settings:" }
QGCLabel { text: qsTr("Additional Joystick settings:") }
Column {
width: parent.width
......@@ -357,7 +357,7 @@ QGCView {
QGCCheckBox {
enabled: _activeJoystick.calibrated
text: _activeJoystick.calibrated ? "Enable joystick input" : "Enable/Disable not allowed (Calibrate First)"
text: _activeJoystick.calibrated ? qsTr("Enable joystick input") : qsTr("Enable/Disable not allowed (Calibrate First)")
checked: _activeVehicle.joystickEnabled
onClicked: _activeVehicle.joystickEnabled = checked
......@@ -370,7 +370,7 @@ QGCView {
QGCLabel {
id: activeJoystickLabel
anchors.baseline: joystickCombo.baseline
text: "Active joystick:"
text: qsTr("Active joystick:")
}
QGCComboBox {
......@@ -383,7 +383,7 @@ QGCView {
Component.onCompleted: {
var index = joystickCombo.find(joystickManager.activeJoystickName)
if (index == -1) {
console.warn("Active joystick name not in combo", joystickManager.activeJoystickName)
console.warn(qsTr("Active joystick name not in combo"), joystickManager.activeJoystickName)
} else {
joystickCombo.currentIndex = index
}
......@@ -398,7 +398,7 @@ QGCView {
QGCRadioButton {
exclusiveGroup: throttleModeExclusiveGroup
text: "Center stick is zero throttle"
text: qsTr("Center stick is zero throttle")
checked: _activeJoystick.throttleMode == 0
onClicked: _activeJoystick.throttleMode = 0
......@@ -406,7 +406,7 @@ QGCView {
QGCRadioButton {
exclusiveGroup: throttleModeExclusiveGroup
text: "Full down stick is zero throttle"
text: qsTr("Full down stick is zero throttle")
checked: _activeJoystick.throttleMode == 1
onClicked: _activeJoystick.throttleMode = 1
......@@ -416,7 +416,7 @@ QGCView {
QGCCheckBox {
id: advancedSettings
checked: _activeVehicle.joystickMode != 0
text: "Advanced settings (careful!)"
text: qsTr("Advanced settings (careful!)")
onClicked: {
if (!checked) {
......@@ -433,7 +433,7 @@ QGCView {
QGCLabel {
id: joystickModeLabel
anchors.baseline: joystickModeCombo.baseline
text: "Joystick mode:"
text: qsTr("Joystick mode:")
}
QGCComboBox {
......@@ -463,7 +463,7 @@ QGCView {
}
}
QGCLabel { text: "Button actions:" }
QGCLabel { text: qsTr("Button actions:") }
Column {
width: parent.width
......@@ -471,7 +471,7 @@ QGCView {
QGCLabel {
visible: _activeVehicle.manualControlReservedButtonCount != 0
text: "Buttons 0-" + reservedButtonCount + " reserved for firmware use"
text: qsTr("Buttons 0-%1 reserved for firmware use").arg(reservedButtonCount)
property int reservedButtonCount: _activeVehicle.manualControlReservedButtonCount == -1 ? _activeJoystick.buttonCount : _activeVehicle.manualControlReservedButtonCount
}
......@@ -547,7 +547,7 @@ QGCView {
width: parent.width
spacing: 5
QGCLabel { text: "Axis Monitor" }
QGCLabel { text: qsTr("Axis Monitor") }
Connections {
target: controller
......@@ -595,7 +595,7 @@ QGCView {
width: parent.width
spacing: ScreenTools.defaultFontPixelHeight
QGCLabel { text: "Button Monitor" }
QGCLabel { text: qsTr("Button Monitor") }
Connections {
target: _activeJoystick
......
......@@ -48,7 +48,7 @@ QGCView {
QGCLabel {
id: titleLabel
text: "PX4Flow Camera"
text: qsTr("PX4Flow Camera")
font.weight: Font.DemiBold
}
......
......@@ -47,7 +47,7 @@ Rectangle {
readonly property real _defaultTextWidth: ScreenTools.defaultFontPixelWidth
readonly property real _margin: Math.round(_defaultTextHeight / 2)
readonly property real _buttonWidth: Math.round(_defaultTextWidth * 18)
readonly property string _armedVehicleText: "This operation cannot be performed while vehicle is armed."
readonly property string _armedVehicleText: qsTr("This operation cannot be performed while vehicle is armed.")
property string _messagePanelText: "missing message panel text"
property bool _fullParameterVehicleAvailable: QGroundControl.multiVehicleManager.parameterReadyVehicleAvailable && !QGroundControl.multiVehicleManager.activeVehicle.missingParameters
......
......@@ -94,8 +94,8 @@ Rectangle {
color: setupComplete ? qgcPal.text : qgcPal.warningText
font.weight: Font.DemiBold
text: setupComplete ?
"Below you will find a summary of the settings for your vehicle. To the left are the setup menus for each component." :
"WARNING: Your vehicle requires setup prior to flight. Please resolve the items marked in red using the menu on the left."
qsTr("Below you will find a summary of the settings for your vehicle. To the left are the setup menus for each component.") :
qsTr("WARNING: Your vehicle requires setup prior to flight. Please resolve the items marked in red using the menu on the left.")
property bool setupComplete: QGroundControl.multiVehicleManager.activeVehicle ? QGroundControl.multiVehicleManager.activeVehicle.autopilot.setupComplete : false
}
......
......@@ -96,12 +96,12 @@ QGCView {
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
QGCButton {
text: "Load Custom Qml file..."
text: qsTr("Load Custom Qml file...")
width: ScreenTools.defaultFontPixelWidth * 22
onClicked: controller.selectQmlFile()
}
QGCButton {
text: "Reset"
text: qsTr("Reset")
width: ScreenTools.defaultFontPixelWidth * 22
onClicked: {
controller.clearQmlFile()
......
......@@ -67,7 +67,7 @@ QGCView {
selectionMode: SelectionMode.MultiSelection
TableViewColumn {
title: "Id"
title: qsTr("Id")
width: ScreenTools.defaultFontPixelWidth * 6
horizontalAlignment: Text.AlignHCenter
delegate : Text {
......@@ -80,7 +80,7 @@ QGCView {
}
TableViewColumn {
title: "Date"
title: qsTr("Date")
width: ScreenTools.defaultFontPixelWidth * 34
horizontalAlignment: Text.AlignHCenter
delegate : Text {
......@@ -91,7 +91,7 @@ QGCView {
if(controller.model.get(styleData.row).received) {
var d = controller.model.get(styleData.row).time
if(d.getUTCFullYear() < 2010)
return "Date Unknown"
return qsTr("Date Unknown")
else
return d.toLocaleString()
}
......@@ -102,7 +102,7 @@ QGCView {
}
TableViewColumn {
title: "Size"
title: qsTr("Size")
width: ScreenTools.defaultFontPixelWidth * 18
horizontalAlignment: Text.AlignHCenter
delegate : Text {
......@@ -115,7 +115,7 @@ QGCView {
}
TableViewColumn {
title: "Status"
title: qsTr("Status")
width: ScreenTools.defaultFontPixelWidth * 22
horizontalAlignment: Text.AlignHCenter
delegate : Text {
......@@ -135,7 +135,7 @@ QGCView {
anchors.top: parent.top
anchors.right: parent.right
enabled: !controller.requestingList && !controller.downloadingLogs
text: "Refresh"
text: qsTr("Refresh")
onClicked: {
controller.refresh()
}
......@@ -147,7 +147,7 @@ QGCView {
anchors.top: refreshButton.bottom
anchors.right: parent.right
enabled: !controller.requestingList && !controller.downloadingLogs && tableView.selection.count > 0
text: "Download"
text: qsTr("Download")
onClicked: {
//-- Clear selection
for(var i = 0; i < controller.model.count; i++) {
......@@ -170,7 +170,7 @@ QGCView {
anchors.top: downloadButton.bottom
anchors.right: parent.right
enabled: !controller.requestingList && !controller.downloadingLogs && controller.model.count > 0
text: "Erase All"
text: qsTr("Erase All")
onClicked: {
eraseAllDialog.visible = true
}
......@@ -179,8 +179,8 @@ QGCView {
visible: false
icon: StandardIcon.Warning
standardButtons: StandardButton.Yes | StandardButton.No
title: "Delete All Log Files"
text: "All log files will be erased permanently. Is this really what you want?"
title: qsTr("Delete All Log Files")
text: qsTr("All log files will be erased permanently. Is this really what you want?")
onYes: {
controller.eraseAll()
eraseAllDialog.visible = false
......@@ -196,7 +196,7 @@ QGCView {
anchors.margins: _margins
anchors.top: eraseAllButton.bottom
anchors.right: parent.right
text: "Cancel"
text: qsTr("Cancel")
enabled: controller.requestingList || controller.downloadingLogs
onClicked: {
controller.cancel()
......
......@@ -56,7 +56,7 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: "missing connected implementation"
text: qsTr("missing connected implementation")
}
}
}
......@@ -76,7 +76,7 @@ Rectangle {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: "no vehicle connected"
text: qsTr("no vehicle connected")
}
}
}
......
......@@ -124,8 +124,8 @@ Item {
MessageDialog {
id: unsavedMissionCloseDialog
title: "QGroundControl close"
text: "You have a mission edit in progress which has not been saved/sent. If you close you will lose changes. Are you sure you want to close?"
title: qsTr("QGroundControl close")
text: qsTr("You have a mission edit in progress which has not been saved/sent. If you close you will lose changes. Are you sure you want to close?")
standardButtons: StandardButton.Yes | StandardButton.No
modality: Qt.ApplicationModal
visible: false
......@@ -143,8 +143,8 @@ Item {
MessageDialog {
id: activeConnectionsCloseDialog
title: "QGroundControl close"
text: "There are still active connections to vehicles. Do you want to disconnect these before closing?"
title: qsTr("QGroundControl close")
text: qsTr("There are still active connections to vehicles. Do you want to disconnect these before closing?")
standardButtons: StandardButton.Yes | StandardButton.Cancel
modality: Qt.ApplicationModal
visible: false
......@@ -238,7 +238,7 @@ Item {
messageFlick.flick(0,-5000)
activeVehicle.resetMessages()
} else {
messageText.text = "No Messages"
messageText.text = qsTr("No Messages")
}
currentPopUp = messageArea
messageArea.visible = true
......
......@@ -158,14 +158,14 @@ Item {
spacing: ScreenTools.defaultFontPixelHeight
QGCLabel {
text: "Preferences"
text: qsTr("Preferences")
anchors.horizontalCenter: parent.horizontalCenter
}
QGCButton {
anchors.left: parent.left
anchors.right: parent.right
text: "General"
text: qsTr("General")
exclusiveGroup: panelActionGroup
onClicked: {
if(__rightPanel.source != "GeneralSettings.qml") {
......@@ -178,7 +178,7 @@ Item {
QGCButton {
anchors.left: parent.left
anchors.right: parent.right
text: "Comm Links"
text: qsTr("Comm Links")
exclusiveGroup: panelActionGroup
onClicked: {
if(__rightPanel.source != "LinkSettings.qml") {
......@@ -191,7 +191,7 @@ Item {
QGCButton {
anchors.left: parent.left
anchors.right: parent.right
text: "Offline Maps"
text: qsTr("Offline Maps")
exclusiveGroup: panelActionGroup
onClicked: {
if(__rightPanel.source != "OfflineMap.qml") {
......@@ -204,7 +204,7 @@ Item {
QGCButton {
anchors.left: parent.left
anchors.right: parent.right
text: "MavLink"
text: qsTr("MavLink")
exclusiveGroup: panelActionGroup
onClicked: {
if(__rightPanel.source != "MavlinkSettings.qml") {
......@@ -217,7 +217,7 @@ Item {
QGCButton {
anchors.left: parent.left
anchors.right: parent.right
text: "Console"
text: qsTr("Console")
exclusiveGroup: panelActionGroup
onClicked: {
if(__rightPanel.source != "QGroundControl/Controls/AppMessages.qml") {
......@@ -230,7 +230,7 @@ Item {
QGCButton {
anchors.left: parent.left
anchors.right: parent.right
text: "Mock Link"
text: qsTr("Mock Link")
visible: ScreenTools.isDebug
exclusiveGroup: panelActionGroup
onClicked: {
......@@ -244,7 +244,7 @@ Item {
QGCButton {
anchors.left: parent.left
anchors.right: parent.right
text: "Debug"
text: qsTr("Debug")
visible: ScreenTools.isDebug
exclusiveGroup: panelActionGroup
onClicked: {
......
......@@ -40,7 +40,7 @@ Item {
}
QGCLabel {
text: "Bluetooth Not Available"
text: qsTr("Bluetooth Not Available")
visible: !QGroundControl.linkManager.isBluetoothAvailable
anchors.centerIn: parent
}
......@@ -59,7 +59,7 @@ Item {
QGCLabel {
id: btLabel
text: "Bluetooth Link Settings"
text: qsTr("Bluetooth Link Settings")
}
Rectangle {
height: 1
......@@ -73,7 +73,7 @@ Item {
Row {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel {
text: "Device:"
text: qsTr("Device:")
width: _firstColumn
}
QGCLabel {
......@@ -85,7 +85,7 @@ Item {
visible: !ScreenTools.isiOS
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel {
text: "Address:"
text: qsTr("Address:")
width: _firstColumn
}
QGCLabel {
......@@ -98,7 +98,7 @@ Item {
width: parent.width
}
QGCLabel {
text: "Bluetooth Devices:"
text: qsTr("Bluetooth Devices:")
}
Item {
width: hostRow.width
......@@ -152,7 +152,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
QGCButton {
width: ScreenTools.defaultFontPixelWidth * 10
text: "Scan"
text: qsTr("Scan")
enabled: subEditConfig && subEditConfig.linkType === LinkConfiguration.TypeBluetooth && !subEditConfig.scanning
onClicked: {
if(subEditConfig)
......@@ -161,7 +161,7 @@ Item {
}
QGCButton {
width: ScreenTools.defaultFontPixelWidth * 10
text: "Stop"
text: qsTr("Stop")
enabled: subEditConfig && subEditConfig.linkType === LinkConfiguration.TypeBluetooth && subEditConfig.scanning
onClicked: {
if(subEditConfig)
......
......@@ -55,7 +55,7 @@ QGCView {
anchors.left: parent.left
columns: 2
Text {
text: "Qt Platform:"
text: qsTr("Qt Platform:")
color: qgcPal.text
}
Text {
......@@ -63,7 +63,7 @@ QGCView {
color: qgcPal.text
}
Text {
text: "Default font width:"
text: qsTr("Default font width:")
color: qgcPal.text
}
Text {
......@@ -71,7 +71,7 @@ QGCView {
color: qgcPal.text
}
Text {
text: "Default font height:"
text: qsTr("Default font height:")
color: qgcPal.text
}
Text {
......@@ -79,7 +79,7 @@ QGCView {
color: qgcPal.text
}
Text {
text: "Default font pixel size:"
text: qsTr("Default font pixel size:")
color: qgcPal.text
}
Text {
......@@ -87,7 +87,7 @@ QGCView {
color: qgcPal.text
}
Text {
text: "Default font point size:"
text: qsTr("Default font point size:")
color: qgcPal.text
}
Text {
......@@ -95,7 +95,7 @@ QGCView {
color: qgcPal.text
}
Text {
text: "QML Screen Desktop:"
text: qsTr("QML Screen Desktop:")
color: qgcPal.text
}
Text {
......@@ -103,7 +103,7 @@ QGCView {
color: qgcPal.text
}
Text {
text: "QML Screen Size:"
text: qsTr("QML Screen Size:")
color: qgcPal.text
}
Text {
......@@ -111,7 +111,7 @@ QGCView {
color: qgcPal.text
}
Text {
text: "QML Pixel Density:"
text: qsTr("QML Pixel Density:")
color: qgcPal.text
}
Text {
......@@ -119,7 +119,7 @@ QGCView {
color: qgcPal.text
}
Text {
text: "QML Pixel Ratio:"
text: qsTr("QML Pixel Ratio:")
color: qgcPal.text
}
Text {
......
This diff is collapsed.
This diff is collapsed.
......@@ -45,7 +45,7 @@ Item {
width: parent.width
spacing: ScreenTools.defaultFontPixelHeight / 2
QGCLabel {
text: "Log Replay Link Settings"
text: qsTr("Log Replay Link Settings")
}
Item {
height: ScreenTools.defaultFontPixelHeight / 2
......@@ -54,7 +54,7 @@ Item {
Row {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel {
text: "Log File:"
text: qsTr("Log File:")
width: _firstColumn
anchors.verticalCenter: parent.verticalCenter
}
......@@ -65,7 +65,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
}
QGCButton {
text: "Browse"
text: qsTr("Browse")
onClicked: {
fileDialog.visible = true
}
......@@ -73,7 +73,7 @@ Item {
}
FileDialog {
id: fileDialog
title: "Please choose a file"
title: qsTr("Please choose a file")
folder: shortcuts.home
visible: false
selectExisting: true
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -48,7 +48,7 @@ Item {
spacing: ScreenTools.defaultFontPixelHeight / 2
QGCLabel {
id: tcpLabel
text: "TCP Link Settings"
text: qsTr("TCP Link Settings")
}
Rectangle {
height: 1
......@@ -62,7 +62,7 @@ Item {
Row {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel {
text: "Host Address:"
text: qsTr("Host Address:")
width: _firstColumn
anchors.verticalCenter: parent.verticalCenter
}
......@@ -76,7 +76,7 @@ Item {
Row {
spacing: ScreenTools.defaultFontPixelWidth
QGCLabel {
text: "TCP Port:"
text: qsTr("TCP Port:")
width: _firstColumn
anchors.verticalCenter: parent.verticalCenter
}
......
This diff is collapsed.
This diff is collapsed.
......@@ -373,7 +373,7 @@ Row {
anchors.horizontalCenter: parent.horizontalCenter
QGCLabel {
text: activeVehicle ? activeVehicle.flightMode : "N/A"
text: activeVehicle ? activeVehicle.flightMode : qsTr("N/A", "No data to display")
font.pixelSize: tbFontLarge
color: qgcPal.buttonText
anchors.verticalCenter: parent.verticalCenter
......
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