From bdcbf308d1b6c64d9a909cf232f4d805350aafdf Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 19 Jul 2017 11:41:40 +0200 Subject: qsTr all the strings --- components/mailviewer/contents/ui/MailPart.qml | 2 +- framework/qml/MailViewer.qml | 6 +++--- framework/qml/Outbox.qml | 2 +- framework/qml/People.qml | 4 ++-- framework/qml/StatusBar.qml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/mailviewer/contents/ui/MailPart.qml b/components/mailviewer/contents/ui/MailPart.qml index 7ff426e9..3dbca1d4 100644 --- a/components/mailviewer/contents/ui/MailPart.qml +++ b/components/mailviewer/contents/ui/MailPart.qml @@ -51,7 +51,7 @@ Item { leftMargin: Kube.Units.smallSpacing } - text: "sent by " + root.sender + " on " + root.date + text: qsTr("sent by %1 on %2").arg(root.sender).arg(root.date) color: "grey" } ListView { diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index 6cc318da..cbf754c3 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml @@ -161,15 +161,15 @@ Rectangle { states: [ State { name: "trash"; when: root.trash - PropertyChanges { target: subject; text: "Trash: " + root.subject } + PropertyChanges { target: subject; text: qsTr("Trash: %1").arg(root.subject) } }, State { name: "draft"; when: root.draft - PropertyChanges { target: subject; text: "Draft: " + root.subject } + PropertyChanges { target: subject; text: qsTr("Draft: %1").arg(root.subject) } }, State { name: "sent"; when: root.sent - PropertyChanges { target: subject; text: "Sent: " + root.subject } + PropertyChanges { target: subject; text: qsTr("Sent: %1").arg(root.subject) } } ] } diff --git a/framework/qml/Outbox.qml b/framework/qml/Outbox.qml index 9fad8db5..bdd68a7d 100644 --- a/framework/qml/Outbox.qml +++ b/framework/qml/Outbox.qml @@ -109,7 +109,7 @@ Kube.IconButton { states: [ State { name: "inprogress"; when: model.status == Kube.OutboxModel.InProgressStatus - PropertyChanges { target: subjectLabel; text: "Sending: " + model.subject } + PropertyChanges { target: subjectLabel; text: qsTr("Sending: %1").arg(model.subject) } }, State { name: "error"; when: model.status == Kube.OutboxModel.ErrorStatus diff --git a/framework/qml/People.qml b/framework/qml/People.qml index 41cada2a..42c95d78 100644 --- a/framework/qml/People.qml +++ b/framework/qml/People.qml @@ -343,7 +343,7 @@ Item { Row { spacing: Kube.Units.smallSpacing - Kube.Label { text: "(main)" } + Kube.Label { text: qsTr("(main)") } Kube.Label { text: modelData ; color: Kube.Colors.highlightColor } Item { width: Kube.Units.smallSpacing; height: 1 } } @@ -362,7 +362,7 @@ Item { Row { spacing: Kube.Units.smallSpacing - Kube.Label { text: "(main)" } + Kube.Label { text: qsTr("(main)") } Kube.Label { text: modelData ; opacity: 0.6 } Item { width: Kube.Units.smallSpacing; height: 1 } } diff --git a/framework/qml/StatusBar.qml b/framework/qml/StatusBar.qml index c936146e..52fcfbdc 100644 --- a/framework/qml/StatusBar.qml +++ b/framework/qml/StatusBar.qml @@ -50,7 +50,7 @@ Item { State { name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus PropertyChanges { target: root; visible: true } - PropertyChanges { target: statusText; text: "Disconnected"; visible: true } + PropertyChanges { target: statusText; text: qsTr("Disconnected"); visible: true } PropertyChanges { target: descriptionText; visible: true } }, State { -- cgit v1.2.3