Commit b8d13084 authored by Tomaz Canabrava's avatar Tomaz Canabrava

Added missing qsTr on QML files

Signed-off-by: 's avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent 89658a57
......@@ -31,7 +31,7 @@ FactPanel {
VehicleSummaryRow {
labelText: qsTr("Compass 0:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : ("Ready")) : ""
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
}
VehicleSummaryRow {
......
......@@ -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 {
......@@ -421,7 +421,7 @@ Item {
guidedModeConfirm.confirmText = qsTr("land")
break;
case confirmHome:
guidedModeConfirm.confirmText = "return to launch"
guidedModeConfirm.confirmText = qsTr("return to launch")
break;
case confirmChangeAlt:
altitudeSlider.visible = true
......
......@@ -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()
......
......@@ -82,6 +82,7 @@ Rectangle {
QGCLabel { text: qsTr("Azimuth:") }
QGCLabel { text: _azimuthText }
}
QGCFlickable {
anchors.leftMargin: _margins
......
......@@ -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
......
......@@ -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
......
......@@ -140,7 +140,7 @@ Rectangle {
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
}
......
......@@ -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 {
......
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