Browse Source

Fact QML ready for translation

All qsTr calls done

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
QGC4.4
Tomaz Canabrava 9 years ago
parent
commit
1957086fe0
  1. 2
      src/FactSystem/FactControls/FactCheckBox.qml
  2. 2
      src/FactSystem/FactControls/FactPanel.qml
  3. 2
      src/FactSystem/FactControls/FactTextField.qml

2
src/FactSystem/FactControls/FactCheckBox.qml

@ -14,7 +14,7 @@ QGCCheckBox { @@ -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

2
src/FactSystem/FactControls/FactPanel.qml

@ -67,7 +67,7 @@ FocusScope { @@ -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)
}
}
}

2
src/FactSystem/FactControls/FactTextField.qml

@ -29,7 +29,7 @@ QGCTextField { @@ -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

Loading…
Cancel
Save