From f253dfbf25e080681e5500d07097fba3c76e270c Mon Sep 17 00:00:00 2001
From: Casper Jeukendrup <48658420+cbjeukendrup@users.noreply.github.com>
Date: Tue, 19 Jul 2022 01:05:06 +0200
Subject: [PATCH] Audit "instruments" strings
---
.../qml/MuseScore/InstrumentsScene/InstrumentsPanel.qml | 4 +++-
.../InstrumentsScene/internal/InstrumentsOnScoreView.qml | 4 ++--
src/instrumentsscene/view/stafftreeitem.cpp | 2 ++
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/instrumentsscene/qml/MuseScore/InstrumentsScene/InstrumentsPanel.qml b/src/instrumentsscene/qml/MuseScore/InstrumentsScene/InstrumentsPanel.qml
index 4d12bfe685..5af745ac36 100644
--- a/src/instrumentsscene/qml/MuseScore/InstrumentsScene/InstrumentsPanel.qml
+++ b/src/instrumentsscene/qml/MuseScore/InstrumentsScene/InstrumentsPanel.qml
@@ -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 Add, or use the shortcut āiā")
+ //: 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 %1āiā%2")
+ .arg("").arg("")
visible: instrumentsTreeModel.isEmpty && instrumentsTreeModel.isAddingAvailable
verticalAlignment: Qt.AlignTop
diff --git a/src/instrumentsscene/qml/MuseScore/InstrumentsScene/internal/InstrumentsOnScoreView.qml b/src/instrumentsscene/qml/MuseScore/InstrumentsScene/internal/InstrumentsOnScoreView.qml
index bab307259b..79ed1a6ad2 100644
--- a/src/instrumentsscene/qml/MuseScore/InstrumentsScene/internal/InstrumentsOnScoreView.qml
+++ b/src/instrumentsscene/qml/MuseScore/InstrumentsScene/internal/InstrumentsOnScoreView.qml
@@ -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
}
diff --git a/src/instrumentsscene/view/stafftreeitem.cpp b/src/instrumentsscene/view/stafftreeitem.cpp
index 2b306db630..5115f8e6f8 100644
--- a/src/instrumentsscene/view/stafftreeitem.cpp
+++ b/src/instrumentsscene/view/stafftreeitem.cpp
@@ -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());