use qsTr (for translations later)

This commit is contained in:
end-4
2025-04-24 20:28:22 +02:00
parent 84f031573e
commit 8dd82baf26
19 changed files with 41 additions and 41 deletions
@@ -50,14 +50,14 @@ Button {
Layout.fillWidth: true
elide: Text.ElideRight
font.pixelSize: Appearance.font.pixelSize.normal
text: input ? "Input" : "Output"
text: input ? qsTr("Input") : qsTr("Output")
color: Appearance.colors.colOnLayer2
}
StyledText {
Layout.fillWidth: true
elide: Text.ElideRight
font.pixelSize: Appearance.font.pixelSize.smaller
text: (input ? Pipewire.defaultAudioSource?.description : Pipewire.defaultAudioSink?.description) ?? "Unknown"
text: (input ? Pipewire.defaultAudioSource?.description : Pipewire.defaultAudioSink?.description) ?? qsTr("Unknown")
color: Appearance.m3colors.m3outline
}
}
@@ -106,7 +106,7 @@ Item {
font.pixelSize: Appearance.font.pixelSize.normal
color: Appearance.m3colors.m3outline
horizontalAlignment: Text.AlignHCenter
text: "No audio source"
text: qsTr("No audio source")
}
}
}
@@ -341,13 +341,13 @@ Item {
Layout.alignment: Qt.AlignRight
DialogButton {
buttonText: "Cancel"
buttonText: qsTr("Cancel")
onClicked: {
root.showDeviceSelector = false
}
}
DialogButton {
buttonText: "OK"
buttonText: qsTr("OK")
onClicked: {
root.showDeviceSelector = false
if (root.selectedDevice) {