mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: allow magic phrase for multiple buddies to be localized
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0196d9a220
commit
b15b3c195c
4 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue