QML UI: allow magic phrase for multiple buddies to be localized

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-01-22 17:23:55 -08:00
parent 0196d9a220
commit b15b3c195c
4 changed files with 4 additions and 4 deletions

View file

@ -157,7 +157,7 @@ Kirigami.Page {
watertemp = diveDetailsListView.currentItem.modelData.dive.waterTemp
suitIndex = diveDetailsListView.currentItem.modelData.dive.suitList.indexOf(diveDetailsListView.currentItem.modelData.dive.suit)
if (diveDetailsListView.currentItem.modelData.dive.buddy.indexOf(",") > 0) {
buddyIndex = diveDetailsListView.currentItem.modelData.dive.buddyList.indexOf("Multiple Buddies");
buddyIndex = diveDetailsListView.currentItem.modelData.dive.buddyList.indexOf(qsTr("Multiple Buddies"));
} else {
buddyIndex = diveDetailsListView.currentItem.modelData.dive.buddyList.indexOf(diveDetailsListView.currentItem.modelData.dive.buddy)
}

View file

@ -177,7 +177,7 @@ Item {
}
ComboBox {
id: buddyBox
editable: currentText != "Multiple Buddies"
editable: currentText != qsTr("Multiple Buddies")
model: diveDetailsListView.currentItem.modelData.dive.buddyList
inputMethodHints: Qt.ImhNoPredictiveText
Layout.fillWidth: true