From bfe837c9184c198544848d58098ed2cac6346fe9 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 20 Jan 2023 23:21:37 +0000 Subject: [PATCH] effects/tileseditor: Set translation domain in QML files BUG: 464572 --- src/effects/tileseditor/qml/TileDelegate.qml | 10 +++++----- src/effects/tileseditor/qml/main.qml | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/effects/tileseditor/qml/TileDelegate.qml b/src/effects/tileseditor/qml/TileDelegate.qml index 56b5ba11e6..e5535d50bd 100644 --- a/src/effects/tileseditor/qml/TileDelegate.qml +++ b/src/effects/tileseditor/qml/TileDelegate.qml @@ -168,14 +168,14 @@ Item { id: splitButton Layout.fillWidth: true 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 onClicked: tile.split(KWinComponents.Tile.Horizontal) } PlasmaComponents.Button { Layout.fillWidth: true 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 onClicked: tile.split(KWinComponents.Tile.Vertical) } @@ -183,7 +183,7 @@ Item { Layout.fillWidth: true visible: tile.layoutDirection !== KWinComponents.Tile.Floating 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 onClicked: tile.split(KWinComponents.Tile.Floating) } @@ -192,7 +192,7 @@ Item { visible: tile.canBeRemoved Layout.fillWidth: true icon.name: "edit-delete" - text: i18n("Delete") + text: i18nd("kwin_effects","Delete") display: parent.compact ? PlasmaComponents.Button.IconOnly : PlasmaComponents.Button.TextBesideIcon onClicked: { tile.remove(); @@ -212,7 +212,7 @@ Item { } visible: tile.layoutDirection === KWinComponents.Tile.Floating && tile.isLayout icon.name: "window-duplicate" - text: i18n("Add Floating Tile") + text: i18nd("kwin_effects","Add Floating Tile") onClicked: tile.split(KWinComponents.Tile.Floating) } } diff --git a/src/effects/tileseditor/qml/main.qml b/src/effects/tileseditor/qml/main.qml index 3a444c547c..5337d20ec3 100644 --- a/src/effects/tileseditor/qml/main.qml +++ b/src/effects/tileseditor/qml/main.qml @@ -144,7 +144,7 @@ FocusScope { } contentItem: RowLayout { PlasmaComponents.Label { - text: i18n("Padding:") + text: i18nd("kwin_effects","Padding:") } PlasmaComponents.SpinBox { from: 0 @@ -154,7 +154,7 @@ FocusScope { } PlasmaComponents.Button { icon.name: "document-open" - text: i18n("Load Layout...") + text: i18nd("kwin_effects","Load Layout...") onClicked: loadLayoutDialog.open() // This mouse area is for fitts law MouseArea { @@ -268,7 +268,7 @@ FocusScope { } PlasmaComponents.Button { Layout.alignment: Qt.AlignRight - text: i18n("Close") + text: i18nd("kwin_effects","Close") onClicked: loadLayoutDialog.close() } }