From 86d61d38091e71200e35b84c4eb7c6f8781c75db Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 19 Jul 2017 11:14:14 +0200 Subject: make it translateable --- framework/qml/EditAccount.qml | 2 +- framework/qml/FocusComposer.qml | 18 +++++++++--------- framework/qml/MailListView.qml | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/framework/qml/EditAccount.qml b/framework/qml/EditAccount.qml index 290cd5dc..69c0ff11 100644 --- a/framework/qml/EditAccount.qml +++ b/framework/qml/EditAccount.qml @@ -112,7 +112,7 @@ Item { Layout.fillWidth: true Kube.Button { - text: "Remove Account" + text: qsTr("Remove Account") onClicked: { loader.item.remove() diff --git a/framework/qml/FocusComposer.qml b/framework/qml/FocusComposer.qml index d586e5b0..d328b1dd 100644 --- a/framework/qml/FocusComposer.qml +++ b/framework/qml/FocusComposer.qml @@ -70,7 +70,7 @@ Item { Kube.Label { Layout.alignment: Qt.AlignVCenter | Qt.AlignRight - text: "To" + text: text: qsTr("To") } AutocompleteLineEdit { @@ -92,7 +92,7 @@ Item { Kube.Label { Layout.alignment: Qt.AlignVCenter | Qt.AlignRight - text: "Cc" + text: qsTr("Cc") visible: cc.visible } @@ -117,7 +117,7 @@ Item { Kube.Label { Layout.alignment: Qt.AlignVCenter | Qt.AlignRight - text: "Bcc" + text: qsTr("Bcc") visible: bcc.visible } @@ -141,7 +141,7 @@ Item { } Kube.Label { - text: "From" + text: qsTr("From") } RowLayout { @@ -161,7 +161,7 @@ Item { Kube.Button { id: ccButton - text: "Cc" + text: qsTr("Cc") onClicked: { cc.visible = true ccButton.visible = false @@ -171,7 +171,7 @@ Item { Kube.Button { id: bccButton - text: "Bcc" + text: qsTr("Bcc") onClicked: { bcc.visible = true @@ -214,7 +214,7 @@ Item { width: parent.width Kube.Button { - text: "Discard" + text: qsTr("Discard") onClicked: { root.done() @@ -229,7 +229,7 @@ Item { Kube.Button { id: saveDraftButton - text: "Save as Draft" + text: qsTr("Save as Draft") //TODO enabled: saveAsDraftAction.enabled onClicked: { saveAsDraftAction.execute() @@ -239,7 +239,7 @@ Item { Kube.PositiveButton { width: saveDraftButton.width - text: "Send" + text: qsTr("Send") enabled: sendAction.enabled onClicked: { sendAction.execute() diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index a6db1aba..20012576 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml @@ -60,7 +60,7 @@ FocusScope { anchors.centerIn: parent visible: listView.count === 0 //TODO depending on whether we synchronized already or not the label should change. - text: "Nothing here..." + text: qsTr("Nothing here...") } Kube.ListView { -- cgit v1.2.3