Audit "instruments" strings

This commit is contained in:
Casper Jeukendrup 2022-07-19 01:05:06 +02:00
parent 322d12a99e
commit f253dfbf25
No known key found for this signature in database
GPG key ID: 6C571BEF59E722DD
3 changed files with 7 additions and 3 deletions

View file

@ -116,7 +116,9 @@ Item {
Layout.leftMargin: 20
Layout.rightMargin: 20
text: qsTrc("instruments", "There are no instruments in your score. To choose some, press <b>Add</b>, or use the shortcut <b>i</b>")
//: Text between %1 and %2 will be printed in a bold font.
text: qsTrc("instruments", "There are no instruments in your score. To choose some, press %1Add%2, or use the shortcut %1i%2")
.arg("<b>").arg("</b>")
visible: instrumentsTreeModel.isEmpty && instrumentsTreeModel.isAddingAvailable
verticalAlignment: Qt.AlignTop

View file

@ -107,7 +107,7 @@ Item {
currentIndex: instrumentsOnScoreModel.currentOrderIndex
displayText: qsTrc("instruments", "Order: ") + currentText
displayText: qsTrc("instruments", "Order:") + " " + currentText
onActivated: function(index, value) {
instrumentsOnScoreModel.currentOrderIndex = index
@ -168,7 +168,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
horizontalAlignment: Text.AlignLeft
text: model.isSoloist ? qsTrc("instruments", "Soloist: ") + model.name : model.name
text: model.isSoloist ? qsTrc("instruments", "Soloist:") + " " + model.name : model.name
font: ui.theme.bodyBoldFont
}

View file

@ -55,6 +55,8 @@ void StaffTreeItem::init(const Staff* masterStaff)
}
QString staffName = staff->staffName();
//: Prefix for the display name for a linked staff. Preferably, keep this short.
QString title = masterStaff->isLinked() ? qtrc("instruments", "[LINK] %1").arg(staffName) : staffName;
setId(staff->id());