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 { ...@@ -31,7 +31,7 @@ FactPanel {
VehicleSummaryRow { VehicleSummaryRow {
labelText: qsTr("Compass 0:") labelText: qsTr("Compass 0:")
valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : ("Ready")) : "" valueText: mag0IdFact ? (mag0IdFact.value === 0 ? qsTr("Setup required") : qsTr("Ready")) : ""
} }
VehicleSummaryRow { VehicleSummaryRow {
......
...@@ -75,7 +75,7 @@ Item { ...@@ -75,7 +75,7 @@ Item {
z: QGroundControl.zOrderTopMost z: QGroundControl.zOrderTopMost
color: mapPal.text color: mapPal.text
font.pixelSize: ScreenTools.largeFontPixelSize font.pixelSize: ScreenTools.largeFontPixelSize
text: "No GPS Lock for Vehicle" text: qsTr("No GPS Lock for Vehicle")
} }
QGCLabel { QGCLabel {
...@@ -421,7 +421,7 @@ Item { ...@@ -421,7 +421,7 @@ Item {
guidedModeConfirm.confirmText = qsTr("land") guidedModeConfirm.confirmText = qsTr("land")
break; break;
case confirmHome: case confirmHome:
guidedModeConfirm.confirmText = "return to launch" guidedModeConfirm.confirmText = qsTr("return to launch")
break; break;
case confirmChangeAlt: case confirmChangeAlt:
altitudeSlider.visible = true altitudeSlider.visible = true
......
...@@ -89,7 +89,7 @@ Item { ...@@ -89,7 +89,7 @@ Item {
color: Qt.rgba(0,0,0,0.65) color: Qt.rgba(0,0,0,0.65)
QGCLabel { QGCLabel {
text: active ? heading.toFixed(0) : "OFF" text: active ? heading.toFixed(0) : qsTr("OFF")
font.weight: active ? Font.DemiBold : Font.Light font.weight: active ? Font.DemiBold : Font.Light
font.pixelSize: _fontSize < 1 ? 1 : _fontSize; font.pixelSize: _fontSize < 1 ? 1 : _fontSize;
color: "white" color: "white"
......
...@@ -52,7 +52,7 @@ QGCFlickable { ...@@ -52,7 +52,7 @@ QGCFlickable {
} }
function showPicker() { 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) { function listContains(list, value) {
...@@ -163,7 +163,7 @@ QGCFlickable { ...@@ -163,7 +163,7 @@ QGCFlickable {
QGCLabel { QGCLabel {
id: _label id: _label
text: "Select the values you want to display:" text: qsTr("Select the values you want to display:")
} }
Loader { Loader {
...@@ -195,7 +195,7 @@ QGCFlickable { ...@@ -195,7 +195,7 @@ QGCFlickable {
QGCLabel { QGCLabel {
width: parent.width width: parent.width
wrapMode: Text.WordWrap 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 { Repeater {
...@@ -254,7 +254,7 @@ QGCFlickable { ...@@ -254,7 +254,7 @@ QGCFlickable {
QGCCheckBox { QGCCheckBox {
id: _largeCheckBox id: _largeCheckBox
text: "large" text: qsTr("large")
checked: listContains(controller.largeValues, propertyName) checked: listContains(controller.largeValues, propertyName)
enabled: _addCheckBox.checked enabled: _addCheckBox.checked
onClicked: updateValues() onClicked: updateValues()
......
...@@ -82,6 +82,7 @@ Rectangle { ...@@ -82,6 +82,7 @@ Rectangle {
QGCLabel { text: qsTr("Azimuth:") } QGCLabel { text: qsTr("Azimuth:") }
QGCLabel { text: _azimuthText } QGCLabel { text: _azimuthText }
}
QGCFlickable { QGCFlickable {
anchors.leftMargin: _margins anchors.leftMargin: _margins
......
...@@ -114,7 +114,7 @@ Rectangle { ...@@ -114,7 +114,7 @@ Rectangle {
} }
QGCButton { QGCButton {
text: "Move Home to map center" text: qsTr("Move Home to map center")
visible: missionItem.homePosition visible: missionItem.homePosition
onClicked: editorRoot.moveHomeToMapCenter() onClicked: editorRoot.moveHomeToMapCenter()
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
......
...@@ -73,7 +73,7 @@ Rectangle { ...@@ -73,7 +73,7 @@ Rectangle {
QGCCheckBox { QGCCheckBox {
anchors.left: parent.left anchors.left: parent.left
text: "Relative altitude" text: qsTr("Relative altitude")
checked: missionItem.gridAltitudeRelative checked: missionItem.gridAltitudeRelative
onClicked: missionItem.gridAltitudeRelative = checked onClicked: missionItem.gridAltitudeRelative = checked
} }
...@@ -81,7 +81,7 @@ Rectangle { ...@@ -81,7 +81,7 @@ Rectangle {
QGCCheckBox { QGCCheckBox {
id: cameraTrigger id: cameraTrigger
anchors.left: parent.left anchors.left: parent.left
text: "Camera trigger:" text: qsTr("Camera trigger:")
checked: missionItem.cameraTrigger checked: missionItem.cameraTrigger
onClicked: missionItem.cameraTrigger = checked onClicked: missionItem.cameraTrigger = checked
} }
...@@ -96,7 +96,7 @@ Rectangle { ...@@ -96,7 +96,7 @@ Rectangle {
QGCLabel { QGCLabel {
anchors.baseline: textField.baseline anchors.baseline: textField.baseline
anchors.left: parent.left anchors.left: parent.left
text: "Distance:" text: qsTr("Distance:")
} }
FactTextField { FactTextField {
...@@ -109,7 +109,7 @@ Rectangle { ...@@ -109,7 +109,7 @@ Rectangle {
} }
QGCButton { QGCButton {
text: _addPointsMode ? "Finish Polygon" : "Draw Polygon" text: _addPointsMode ? qsTr("Finish Polygon") : qsTr("Draw Polygon")
onClicked: { onClicked: {
if (_addPointsMode) { if (_addPointsMode) {
_addPointsMode = false _addPointsMode = false
......
...@@ -140,7 +140,7 @@ Rectangle { ...@@ -140,7 +140,7 @@ Rectangle {
anchors.fill: commandPicker anchors.fill: commandPicker
visible: missionItem.sequenceNumber == 0 || !missionItem.isCurrentItem || !missionItem.isSimpleItem visible: missionItem.sequenceNumber == 0 || !missionItem.isCurrentItem || !missionItem.isSimpleItem
verticalAlignment: Text.AlignVCenter 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 color: _outerTextColor
} }
......
...@@ -330,7 +330,7 @@ QGCView { ...@@ -330,7 +330,7 @@ QGCView {
acceptedButtons: Qt.LeftButton acceptedButtons: Qt.LeftButton
onClicked: { onClicked: {
_editorDialogFact = factRow.modelFact _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 { ...@@ -365,7 +365,7 @@ QGCView {
QGCLabel { QGCLabel {
id: searchForLabel id: searchForLabel
text: "Search for:" text: qsTr("Search for:")
} }
QGCTextField { QGCTextField {
...@@ -380,7 +380,7 @@ QGCView { ...@@ -380,7 +380,7 @@ QGCView {
anchors.top: searchFor.bottom anchors.top: searchFor.bottom
width: parent.width width: parent.width
wrapMode: Text.WordWrap 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 { ...@@ -85,7 +85,7 @@ QGCViewDialog {
QGCLabel { QGCLabel {
width: parent.width width: parent.width
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
text: fact.shortDescription ? fact.shortDescription : "Description missing" text: fact.shortDescription ? fact.shortDescription : qsTr("Description missing")
} }
QGCLabel { 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