From ae084506b673d4264f5da65e369922bfd29fe50a Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 19 Jul 2017 11:33:31 +0200 Subject: make more translatable --- components/accounts/contents/ui/AccountWizard.qml | 2 +- components/accounts/contents/ui/AccountWizardPage.qml | 4 ++-- components/kube/contents/ui/AccountsView.qml | 2 +- components/kube/contents/ui/AddresseeListEditor.qml | 4 ++-- components/kube/contents/ui/ComposerView.qml | 16 ++++++++-------- components/kube/contents/ui/Kube.qml | 16 ++++++++-------- components/kube/contents/ui/LogView.qml | 8 ++++---- components/mailviewer/contents/ui/ErrorPart.qml | 2 +- 8 files changed, 27 insertions(+), 27 deletions(-) (limited to 'components') diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml index 698f1d19..a57ddde3 100644 --- a/components/accounts/contents/ui/AccountWizard.qml +++ b/components/accounts/contents/ui/AccountWizard.qml @@ -44,7 +44,7 @@ Kube.Popup { Item { Kube.Heading { id: heading - text: "Select your new account type" + text: qsTr("Select your new account type") color: Kube.Colors.highlightColor } diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml index f0a49b10..f5d10258 100644 --- a/components/accounts/contents/ui/AccountWizardPage.qml +++ b/components/accounts/contents/ui/AccountWizardPage.qml @@ -116,7 +116,7 @@ Item { bottom: parent.bottom } - text: "Discard" + text: qsTr("Discard") onClicked: { root.done() } @@ -128,7 +128,7 @@ Item { bottom: parent.bottom } - text: "Save" + text: qsTr("Save") onClicked: { loader.item.save() diff --git a/components/kube/contents/ui/AccountsView.qml b/components/kube/contents/ui/AccountsView.qml index 011f77dc..407aad0d 100644 --- a/components/kube/contents/ui/AccountsView.qml +++ b/components/kube/contents/ui/AccountsView.qml @@ -44,7 +44,7 @@ Rectangle { right: parent.right margins: Kube.Units.largeSpacing } - text: "New Account" + text: qsTr("New Account") onClicked: accountWizard.open() } diff --git a/components/kube/contents/ui/AddresseeListEditor.qml b/components/kube/contents/ui/AddresseeListEditor.qml index 49545177..873e0c6c 100644 --- a/components/kube/contents/ui/AddresseeListEditor.qml +++ b/components/kube/contents/ui/AddresseeListEditor.qml @@ -89,7 +89,7 @@ Item { } Kube.Label { - text: "+ Add recipient" + text: "+ " + qsTr("Add recipient") color: Kube.Colors.highlightColor font.underline: parent.containsMouse } @@ -103,7 +103,7 @@ Item { visible: false - placeholderText: "Add recepient" + placeholderText: "+ " + qsTr("Add recipient") model: root.completer.model onSearchTermChanged: root.completer.searchString = searchTerm onAccepted: { diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml index 7b3b3f41..1d9c36da 100644 --- a/components/kube/contents/ui/ComposerView.qml +++ b/components/kube/contents/ui/ComposerView.qml @@ -305,7 +305,7 @@ Kube.View { } } Kube.Button { - text: "Attach file" + text: qsTr("Attach file") onClicked: { fileDialogComponent.createObject(parent) @@ -367,7 +367,7 @@ Kube.View { } Kube.Label { - text: "Sending Email to:" + text: qsTr("Sending Email to:") } AddresseeListEditor { @@ -381,7 +381,7 @@ Kube.View { } Kube.Label { - text: "Sending Copy to (CC):" + text: qsTr("Sending Copy to (CC):") } AddresseeListEditor { id: cc @@ -394,7 +394,7 @@ Kube.View { } Kube.Label { - text: "Sending Secret Copy to (Bcc):" + text: qsTr("Sending Secret Copy to (Bcc):") } AddresseeListEditor { id: bcc @@ -428,7 +428,7 @@ Kube.View { anchors.right: parent.right - text: "Save as Draft" + text: qsTr("Save as Draft") //TODO enabled: saveAsDraftAction.enabled onClicked: { saveAsDraftAction.execute() @@ -437,7 +437,7 @@ Kube.View { Kube.Button { anchors.left: parent.left - text: "Discard" + text: qsTr("Discard") onClicked: Kube.Fabric.postMessage(Kube.Messages.componentDone, {}) } } @@ -449,7 +449,7 @@ Kube.View { bottomMargin: Kube.Units.smallSpacing left: identityCombo.left } - text: "You are sending this from:" + text: qsTr("You are sending this from:") } Kube.ComboBox { @@ -480,7 +480,7 @@ Kube.View { } width: parent.width - Kube.Units.largeSpacing * 2 - text: "Send" + text: qsTr("Send") enabled: sendAction.enabled onClicked: { sendAction.execute() diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 504d45da..40ac24d0 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml @@ -121,7 +121,7 @@ Controls2.ApplicationWindow { Kube.ToolTip { - text: "hjfhd" + text: qsTr("search") visible: parent.hovered } } @@ -131,7 +131,7 @@ Controls2.ApplicationWindow { onClicked: kubeViews.openComposer(false) Kube.ToolTip { - text: "composer" + text: qsTr("composer") visible: parent.hovered } } @@ -141,7 +141,7 @@ Controls2.ApplicationWindow { onClicked: kubeViews.setMailView() Kube.ToolTip { - text: "mails" + text: qsTr("mails") visible: parent.hovered } } @@ -151,7 +151,7 @@ Controls2.ApplicationWindow { onClicked: kubeViews.setPeopleView() Kube.ToolTip { - text: "people" + text: qsTr("people") visible: parent.hovered } } @@ -169,7 +169,7 @@ Controls2.ApplicationWindow { width: height Kube.ToolTip { - text: "outbox" + text: qsTr("outbox") visible: parent.hovered } } @@ -179,7 +179,7 @@ Controls2.ApplicationWindow { onClicked: kubeViews.setLogView() Kube.ToolTip { - text: "logview" + text: qsTr("logview") visible: parent.hovered } } @@ -189,7 +189,7 @@ Controls2.ApplicationWindow { onClicked: kubeViews.setAccountsView() Kube.ToolTip { - text: "settings" + text: qsTr("settings") visible: parent.hovered } } @@ -313,7 +313,7 @@ Controls2.ApplicationWindow { } Kube.Button { - text: "Go" + text: qsTr("Go") onClicked: { Kube.Fabric.postMessage(Kube.Messages.search, {"filterString": searchField.text}) diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml index 640921c3..f3297ac6 100644 --- a/components/kube/contents/ui/LogView.qml +++ b/components/kube/contents/ui/LogView.qml @@ -76,7 +76,7 @@ Controls.SplitView { } height: Kube.Units.gridUnit width: parent.width - Kube.Units.largeSpacing * 2 - text: "Error" + text: qsTr("Error") } Kube.Label { @@ -136,7 +136,7 @@ Controls.SplitView { anchors.fill: parent columns: 2 Kube.Label { - text: "Resource Id:" + text: qsTr("Resource Id:") visible: details.resourceId } Kube.Label { @@ -144,13 +144,13 @@ Controls.SplitView { visible: details.resourceId } Kube.Label { - text: "Timestamp:" + text: qsTr("Timestamp:") } Kube.Label { text: Qt.formatDateTime(details.timestamp, " hh:mm:ss dd MMM yyyy") } Kube.Label { - text: "Message:" + text: qsTr("Message:") } Kube.Label { text: details.message diff --git a/components/mailviewer/contents/ui/ErrorPart.qml b/components/mailviewer/contents/ui/ErrorPart.qml index 734d5c5f..0e5d9b8e 100644 --- a/components/mailviewer/contents/ui/ErrorPart.qml +++ b/components/mailviewer/contents/ui/ErrorPart.qml @@ -35,7 +35,7 @@ Item { width: parent.width spacing: 5 Text { - text: "An error occured: " + errorString + text: qsTr("An error occured: %1").arg(errorString) } } } -- cgit v1.2.3