effects/tileseditor: Set translation domain in QML files

BUG: 464572
This commit is contained in:
David Edmundson 2023-01-20 23:21:37 +00:00
parent 0d44092db2
commit bfe837c918
2 changed files with 8 additions and 8 deletions

View file

@ -168,14 +168,14 @@ Item {
id: splitButton id: splitButton
Layout.fillWidth: true Layout.fillWidth: true
icon.name: "view-split-left-right" icon.name: "view-split-left-right"
text: i18n("Split Horizontally") text: i18nd("kwin_effects","Split Horizontally")
display: parent.compact ? PlasmaComponents.Button.IconOnly : PlasmaComponents.Button.TextBesideIcon display: parent.compact ? PlasmaComponents.Button.IconOnly : PlasmaComponents.Button.TextBesideIcon
onClicked: tile.split(KWinComponents.Tile.Horizontal) onClicked: tile.split(KWinComponents.Tile.Horizontal)
} }
PlasmaComponents.Button { PlasmaComponents.Button {
Layout.fillWidth: true Layout.fillWidth: true
icon.name: "view-split-top-bottom" icon.name: "view-split-top-bottom"
text: i18n("Split Vertically") text: i18nd("kwin_effects","Split Vertically")
display: parent.compact ? PlasmaComponents.Button.IconOnly : PlasmaComponents.Button.TextBesideIcon display: parent.compact ? PlasmaComponents.Button.IconOnly : PlasmaComponents.Button.TextBesideIcon
onClicked: tile.split(KWinComponents.Tile.Vertical) onClicked: tile.split(KWinComponents.Tile.Vertical)
} }
@ -183,7 +183,7 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
visible: tile.layoutDirection !== KWinComponents.Tile.Floating visible: tile.layoutDirection !== KWinComponents.Tile.Floating
icon.name: "window-duplicate" icon.name: "window-duplicate"
text: i18n("Add Floating Tile") text: i18nd("kwin_effects","Add Floating Tile")
display: parent.compact ? PlasmaComponents.Button.IconOnly : PlasmaComponents.Button.TextBesideIcon display: parent.compact ? PlasmaComponents.Button.IconOnly : PlasmaComponents.Button.TextBesideIcon
onClicked: tile.split(KWinComponents.Tile.Floating) onClicked: tile.split(KWinComponents.Tile.Floating)
} }
@ -192,7 +192,7 @@ Item {
visible: tile.canBeRemoved visible: tile.canBeRemoved
Layout.fillWidth: true Layout.fillWidth: true
icon.name: "edit-delete" icon.name: "edit-delete"
text: i18n("Delete") text: i18nd("kwin_effects","Delete")
display: parent.compact ? PlasmaComponents.Button.IconOnly : PlasmaComponents.Button.TextBesideIcon display: parent.compact ? PlasmaComponents.Button.IconOnly : PlasmaComponents.Button.TextBesideIcon
onClicked: { onClicked: {
tile.remove(); tile.remove();
@ -212,7 +212,7 @@ Item {
} }
visible: tile.layoutDirection === KWinComponents.Tile.Floating && tile.isLayout visible: tile.layoutDirection === KWinComponents.Tile.Floating && tile.isLayout
icon.name: "window-duplicate" icon.name: "window-duplicate"
text: i18n("Add Floating Tile") text: i18nd("kwin_effects","Add Floating Tile")
onClicked: tile.split(KWinComponents.Tile.Floating) onClicked: tile.split(KWinComponents.Tile.Floating)
} }
} }

View file

@ -144,7 +144,7 @@ FocusScope {
} }
contentItem: RowLayout { contentItem: RowLayout {
PlasmaComponents.Label { PlasmaComponents.Label {
text: i18n("Padding:") text: i18nd("kwin_effects","Padding:")
} }
PlasmaComponents.SpinBox { PlasmaComponents.SpinBox {
from: 0 from: 0
@ -154,7 +154,7 @@ FocusScope {
} }
PlasmaComponents.Button { PlasmaComponents.Button {
icon.name: "document-open" icon.name: "document-open"
text: i18n("Load Layout...") text: i18nd("kwin_effects","Load Layout...")
onClicked: loadLayoutDialog.open() onClicked: loadLayoutDialog.open()
// This mouse area is for fitts law // This mouse area is for fitts law
MouseArea { MouseArea {
@ -268,7 +268,7 @@ FocusScope {
} }
PlasmaComponents.Button { PlasmaComponents.Button {
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
text: i18n("Close") text: i18nd("kwin_effects","Close")
onClicked: loadLayoutDialog.close() onClicked: loadLayoutDialog.close()
} }
} }