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
				
			
		|  | @ -425,7 +425,7 @@ QStringList DiveObjectHelper::buddyList() const | |||
| 			QRegExp sep("(,\\s)"); | ||||
| 			QStringList tempList = temp.split(sep); | ||||
| 			buddies << tempList; | ||||
| 			buddies << "Multiple Buddies"; | ||||
| 			buddies << tr("Multiple Buddies"); | ||||
| 		} | ||||
| 	} | ||||
| 	buddies.removeDuplicates(); | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -870,7 +870,7 @@ void QMLManager::commitChanges(QString diveId, QString date, QString location, Q | |||
| 	} | ||||
| 	if (myDive->buddy() != buddy) { | ||||
| 		if (myDive->buddy().contains(",")) { | ||||
| 			if (!buddy.contains("Multiple Buddies")) { | ||||
| 			if (!buddy.contains(tr("Multiple Buddies"))) { | ||||
| 				diveChanged = true; | ||||
| 				free(d->buddy); | ||||
| 				d->buddy = strdup(qPrintable(buddy)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue