Commit d25f35d0 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Merge branch 'Plasma/5.14'

parents 81ccac04 891b38da
......@@ -40,8 +40,8 @@ ScrollView {
Header {
Layout.fillWidth: true
enabled: view.count > 0
text: i18n("Device Profiles")
disabledText: i18nc("@label", "No Device Profiles Available")
text: i18nd("kcm_pulseaudio", "Device Profiles")
disabledText: i18ndc("kcm_pulseaudio", "@label", "No Device Profiles Available")
}
ListView {
......@@ -57,7 +57,7 @@ ScrollView {
Header {
Layout.fillWidth: true
text: i18n("Advanced Output Configuration")
text: i18nd("kcm_pulseaudio", "Advanced Output Configuration")
visible: moduleManager.settingsSupported
}
......@@ -70,7 +70,7 @@ ScrollView {
Layout.topMargin: units.smallSpacing
Layout.leftMargin: units.gridUnit / 2
Layout.rightMargin: units.gridUnit / 2
text: i18n("Add virtual output device for simultaneous output on all local sound cards")
text: i18nd("kcm_pulseaudio", "Add virtual output device for simultaneous output on all local sound cards")
checked: moduleManager.combineSinks
onCheckedChanged: moduleManager.combineSinks = checked;
enabled: moduleManager.loadedModules.indexOf("module-gconf") != -1
......@@ -81,7 +81,7 @@ ScrollView {
Layout.fillWidth: true
Layout.leftMargin: units.gridUnit / 2
Layout.rightMargin: units.gridUnit / 2
text: i18n("Automatically switch all running streams when a new output becomes available")
text: i18nd("kcm_pulseaudio", "Automatically switch all running streams when a new output becomes available")
checked: moduleManager.switchOnConnect
onCheckedChanged: moduleManager.switchOnConnect = checked;
enabled: moduleManager.loadedModules.indexOf("module-gconf") != -1
......@@ -92,13 +92,13 @@ ScrollView {
Layout.alignment: Qt.AlignHCenter
enabled: false
font.italic: true
text: i18n("Requires 'module-gconf' PulseAudio module")
text: i18nd("kcm_pulseaudio", "Requires 'module-gconf' PulseAudio module")
visible: moduleManager.settingsSupported && moduleManager.loadedModules.indexOf("module-gconf") == -1
}
Header {
Layout.fillWidth: true
text: i18n("Speaker Placement and Testing")
text: i18nd("kcm_pulseaudio", "Speaker Placement and Testing")
}
RowLayout {
......@@ -106,7 +106,7 @@ ScrollView {
visible: sinks.count > 1
Label {
text: i18nc("@label", "Output:")
text: i18ndc("kcm_pulseaudio", "@label", "Output:")
font.bold: true
}
......@@ -145,7 +145,7 @@ ScrollView {
height: 50
Button{
text: i18n("Front Left")
text: i18nd("kcm_pulseaudio", "Front Left")
anchors.centerIn: parent
visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("front-left") > -1 : false
onClicked: sinks.pulseObject.testChannel("front-left")
......@@ -156,7 +156,7 @@ ScrollView {
height: 50
Button{
text: i18n("Front Center")
text: i18nd("kcm_pulseaudio", "Front Center")
anchors.centerIn: parent
visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("front-center") > -1 : false
onClicked: sinks.pulseObject.testChannel("front-center")
......@@ -167,7 +167,7 @@ ScrollView {
height: 50
Button{
text: i18n("Front Right")
text: i18nd("kcm_pulseaudio", "Front Right")
anchors.centerIn: parent
visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("front-right") > -1 : false
onClicked: sinks.pulseObject.testChannel("front-right")
......@@ -178,7 +178,7 @@ ScrollView {
height: 50
Button{
text: i18n("Side Left")
text: i18nd("kcm_pulseaudio", "Side Left")
anchors.centerIn: parent
visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("side-left") > -1 : false
onClicked: sinks.pulseObject.testChannel("side-left")
......@@ -204,7 +204,7 @@ ScrollView {
width: grid.width/3
height: 50
Button{
text: i18n("Side Right")
text: i18nd("kcm_pulseaudio", "Side Right")
anchors.centerIn: parent
visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("side-right") > -1 : false
onClicked: sinks.pulseObject.testChannel("side-right")
......@@ -214,7 +214,7 @@ ScrollView {
width: grid.width/3
height: 50
Button{
text: i18n("Rear Left")
text: i18nd("kcm_pulseaudio", "Rear Left")
anchors.centerIn: parent
visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("rear-left") > -1 : false
onClicked: sinks.pulseObject.testChannel("rear-left")
......@@ -224,7 +224,7 @@ ScrollView {
width: grid.width/3
height: 50
Button{
text: i18n("Subwoofer")
text: i18nd("kcm_pulseaudio", "Subwoofer")
anchors.centerIn: parent
visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("lfe") > -1 : false
onClicked: sinks.pulseObject.testChannel("subwoofer")
......@@ -234,7 +234,7 @@ ScrollView {
width: grid.width/3
height: 50
Button{
text: i18n("Rear Right")
text: i18nd("kcm_pulseaudio", "Rear Right")
anchors.centerIn: parent
visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("rear-right") > -1 : false
onClicked: sinks.pulseObject.testChannel("rear-right")
......
......@@ -40,8 +40,8 @@ ScrollView {
Header {
Layout.fillWidth: true
enabled: eventStreamView.count || sinkInputView.count
text: i18n("Playback")
disabledText: i18nc("@label", "No Applications Playing Audio")
text: i18nd("kcm_pulseaudio", "Playback")
disabledText: i18ndc("kcm_pulseaudio", "@label", "No Applications Playing Audio")
}
ListView {
......@@ -79,8 +79,8 @@ ScrollView {
Header {
Layout.fillWidth: true
enabled: sourceOutputView.count > 0
text: i18n("Capture")
disabledText: i18nc("@label", "No Applications Recording Audio")
text: i18nd("kcm_pulseaudio", "Capture")
disabledText: i18ndc("kcm_pulseaudio", "@label", "No Applications Recording Audio")
}
ListView {
......
......@@ -49,7 +49,7 @@ ColumnLayout {
RowLayout {
Label {
id: profileLabel
text: i18nc("@label", "Profile:")
text: i18ndc("kcm_pulseaudio", "@label", "Profile:")
font.bold: true
}
ComboBox {
......
......@@ -25,6 +25,6 @@ RadioButton {
property bool isDefault: true
checked: isDefault
text: checked ? i18n("Default") : ""
text: checked ? i18nd("kcm_pulseaudio", "Default") : ""
onIsDefaultChanged: checked = isDefault
}
......@@ -70,7 +70,7 @@ ColumnLayout {
visible: portbox.count > 1
Label {
text: i18n("Port")
text: i18nd("kcm_pulseaudio", "Port")
}
ComboBox {
......@@ -88,9 +88,9 @@ ColumnLayout {
var text = port.description;
if (port.availability == Port.Unavailable) {
if (port.name == "analog-output-speaker" || port.name == "analog-input-microphone-internal") {
text += i18nc("Port is unavailable", " (unavailable)");
text += i18ndc("kcm_pulseaudio", "Port is unavailable", " (unavailable)");
} else {
text += i18nc("Port is unplugged", " (unplugged)");
text += i18ndc("kcm_pulseaudio", "Port is unplugged", " (unplugged)");
}
}
items.push(text);
......
......@@ -36,8 +36,8 @@ ScrollView {
Header {
Layout.fillWidth: true
enabled: sinks.count > 0
text: i18n("Outputs")
disabledText: i18nc("@label", "No Output Devices Available")
text: i18nd("kcm_pulseaudio", "Outputs")
disabledText: i18ndc("kcm_pulseaudio", "@label", "No Output Devices Available")
}
ListView {
......@@ -54,8 +54,8 @@ ScrollView {
Header {
Layout.fillWidth: true
enabled: sources.count > 0
text: i18n("Inputs")
disabledText: i18nc("@label", "No Input Devices Available")
text: i18nd("kcm_pulseaudio", "Inputs")
disabledText: i18ndc("kcm_pulseaudio", "@label", "No Input Devices Available")
}
ListView {
......
......@@ -25,7 +25,7 @@ ToolButton {
property bool muted: true
iconName: 'audio-volume-muted'
tooltip: i18n("Mute audio")
tooltip: i18nd("kcm_pulseaudio", "Mute audio")
checkable: true
checked: muted
onMutedChanged: checked = muted
......
......@@ -56,9 +56,9 @@ ColumnLayout {
Layout.fillWidth: true
text: {
if (isEventStream) {
return i18n("Notification Sounds");
return i18nd("kcm_pulseaudio", "Notification Sounds");
} else if (Client) {
return i18nc("label of stream items", "%1: %2", Client.name, Name);
return i18ndc("kcm_pulseaudio", "label of stream items", "%1: %2", Client.name, Name);
} else {
return Name;
}
......
......@@ -85,7 +85,7 @@ RowLayout {
y: slider.height / 1.2
opacity: 0.5
font.pixelSize: slider.height / 2.2
text: i18n("100%")
text: i18nd("kcm_pulseaudio", "100%")
}
Timer {
......@@ -101,12 +101,12 @@ RowLayout {
Layout.alignment: Qt.AlignHCenter
Layout.minimumWidth: percentMetrics.advanceWidth
horizontalAlignment: Qt.AlignRight
text: i18nc("volume percentage", "%1%", Math.round(value / PulseAudio.NormalVolume * 100.0))
text: i18ndc("kcm_pulseaudio", "volume percentage", "%1%", Math.round(value / PulseAudio.NormalVolume * 100.0))
}
TextMetrics {
id: percentMetrics
font: percentText.font
text: i18nc("only used for sizing, should be widest possible string", "100%")
text: i18ndc("kcm_pulseaudio", "only used for sizing, should be widest possible string", "100%")
}
}
......@@ -31,7 +31,7 @@ Kirigami.Page {
property int wheelDelta: 0
property QtObject sinkModel: SinkModel { }
property QtObject sourceModel: SourceModel { }
ConfigModule.quickHelp: i18n("This module allows configuring the Pulseaudio sound subsystem.")
ConfigModule.quickHelp: i18nd("kcm_pulseaudio", "This module allows configuring the Pulseaudio sound subsystem.")
contentItem: MouseArea {
acceptedButtons: Qt.NoButton
......@@ -62,15 +62,15 @@ Kirigami.Page {
anchors.fill: parent
Tab {
title: i18nc("@title:tab", "Devices")
title: i18ndc("kcm_pulseaudio", "@title:tab", "Devices")
Devices {}
}
Tab {
title: i18nc("@title:tab", "Applications")
title: i18ndc("kcm_pulseaudio", "@title:tab", "Applications")
Applications {}
}
Tab {
title: i18nc("@title:tab", "Advanced")
title: i18ndc("kcm_pulseaudio", "@title:tab", "Advanced")
Advanced {}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment