Browse Source

Added missing qsTr on QML files

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
QGC4.4
Tomaz Canabrava 9 years ago
parent
commit
b8d13084f4
  1. 2
      src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml
  2. 4
      src/FlightDisplay/FlightDisplayViewWidgets.qml
  3. 2
      src/FlightMap/Widgets/QGCCompassWidget.qml
  4. 8
      src/FlightMap/Widgets/ValuesWidget.qml
  5. 1
      src/MissionEditor/MissionItemStatus.qml
  6. 2
      src/MissionEditor/SimpleItemEditor.qml
  7. 8
      src/MissionEditor/SurveyItemEditor.qml
  8. 2
      src/QmlControls/MissionItemEditor.qml
  9. 6
      src/QmlControls/ParameterEditor.qml
  10. 2
      src/QmlControls/ParameterEditorDialog.qml

2
src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml

@ -31,7 +31,7 @@ FactPanel { @@ -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 {

4
src/FlightDisplay/FlightDisplayViewWidgets.qml

@ -75,7 +75,7 @@ Item { @@ -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 { @@ -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

2
src/FlightMap/Widgets/QGCCompassWidget.qml

@ -89,7 +89,7 @@ Item { @@ -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"

8
src/FlightMap/Widgets/ValuesWidget.qml

@ -52,7 +52,7 @@ QGCFlickable { @@ -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 { @@ -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 { @@ -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 { @@ -254,7 +254,7 @@ QGCFlickable {
QGCCheckBox {
id: _largeCheckBox
text: "large"
text: qsTr("large")
checked: listContains(controller.largeValues, propertyName)
enabled: _addCheckBox.checked
onClicked: updateValues()

1
src/MissionEditor/MissionItemStatus.qml

@ -82,6 +82,7 @@ Rectangle { @@ -82,6 +82,7 @@ Rectangle {
QGCLabel { text: qsTr("Azimuth:") }
QGCLabel { text: _azimuthText }
}
QGCFlickable {
anchors.leftMargin: _margins

2
src/MissionEditor/SimpleItemEditor.qml

@ -114,7 +114,7 @@ Rectangle { @@ -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

8
src/MissionEditor/SurveyItemEditor.qml

@ -73,7 +73,7 @@ Rectangle { @@ -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 { @@ -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 { @@ -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 { @@ -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

2
src/QmlControls/MissionItemEditor.qml

@ -140,7 +140,7 @@ Rectangle { @@ -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
}

6
src/QmlControls/ParameterEditor.qml

@ -330,7 +330,7 @@ QGCView { @@ -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 { @@ -365,7 +365,7 @@ QGCView {
QGCLabel {
id: searchForLabel
text: "Search for:"
text: qsTr("Search for:")
}
QGCTextField {
@ -380,7 +380,7 @@ QGCView { @@ -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.")
}
}
}

2
src/QmlControls/ParameterEditorDialog.qml

@ -85,7 +85,7 @@ QGCViewDialog { @@ -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 {

Loading…
Cancel
Save