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 --- accounts/gmail/package/contents/ui/GmailSettings.qml | 10 +++++----- .../imap/package/contents/ui/ImapAccountSettings.qml | 14 +++++++------- .../package/contents/ui/KolabnowAccountSettings.qml | 10 +++++----- .../package/contents/ui/MaildirAccountSettings.qml | 4 ++-- 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 +- framework/qml/EditAccount.qml | 2 +- framework/qml/MailViewer.qml | 6 +++--- 14 files changed, 50 insertions(+), 50 deletions(-) diff --git a/accounts/gmail/package/contents/ui/GmailSettings.qml b/accounts/gmail/package/contents/ui/GmailSettings.qml index 86ea966a..b0eb1415 100644 --- a/accounts/gmail/package/contents/ui/GmailSettings.qml +++ b/accounts/gmail/package/contents/ui/GmailSettings.qml @@ -73,7 +73,7 @@ Item { } Kube.Label { - text: "Title of Account" + text: qsTr("Title of Account") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -86,7 +86,7 @@ Item { } Kube.Label { - text: "Name" + text: qsTr("Name") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -99,7 +99,7 @@ Item { } Kube.Label { - text: "Email address" + text: qsTr("Email address") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -113,7 +113,7 @@ Item { } Kube.Label { - text: "Password" + text: qsTr("Password") Layout.alignment: Qt.AlignRight } RowLayout { @@ -134,7 +134,7 @@ Item { } Controls.CheckBox { - text: "Show Password" + text: qsTr("Show Password") onClicked: { if(pwField.echoMode == TextInput.Password) { pwField.echoMode = TextInput.Normal; diff --git a/accounts/imap/package/contents/ui/ImapAccountSettings.qml b/accounts/imap/package/contents/ui/ImapAccountSettings.qml index 529024b2..170c3e0e 100644 --- a/accounts/imap/package/contents/ui/ImapAccountSettings.qml +++ b/accounts/imap/package/contents/ui/ImapAccountSettings.qml @@ -57,7 +57,7 @@ Item { rowSpacing: Kube.Units.largeSpacing Kube.Label { - text: "Title of Account" + text: qsTr("Title of Account") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -70,7 +70,7 @@ Item { } Kube.Label { - text: "Name" + text: qsTr("Name") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -83,7 +83,7 @@ Item { } Kube.Label { - text: "Email address" + text: qsTr("Email address") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -99,7 +99,7 @@ Item { } Kube.Label { - text: "Password" + text: qsTr("Password") Layout.alignment: Qt.AlignRight } RowLayout { @@ -120,7 +120,7 @@ Item { } Controls.CheckBox { - text: "Show Password" + text: qsTr("Show Password") onClicked: { if(pwField.echoMode == TextInput.Password) { pwField.echoMode = TextInput.Normal; @@ -132,7 +132,7 @@ Item { } Kube.Label { - text: "IMAP server address" + text: qsTr("IMAP server address") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -156,7 +156,7 @@ Item { } Kube.Label { - text: "Smtp address" + text: qsTr("Smtp address") Layout.alignment: Qt.AlignRight } Kube.TextField { diff --git a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml index f07fdb31..bd006c4c 100644 --- a/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml +++ b/accounts/kolabnow/package/contents/ui/KolabnowAccountSettings.qml @@ -57,7 +57,7 @@ Item { rowSpacing: Kube.Units.largeSpacing Kube.Label { - text: "Title of Account" + text: qsTr("Title of Account") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -70,7 +70,7 @@ Item { } Kube.Label { - text: "Name" + text: qsTr("Name") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -83,7 +83,7 @@ Item { } Kube.Label { - text: "Email address" + text: qsTr("Email address") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -97,7 +97,7 @@ Item { } Kube.Label { - text: "Password" + text: qsTr("Password") Layout.alignment: Qt.AlignRight } RowLayout { @@ -118,7 +118,7 @@ Item { } Controls.CheckBox { - text: "Show Password" + text: qsTr("Show Password") onClicked: { if(pwField.echoMode == TextInput.Password) { pwField.echoMode = TextInput.Normal; diff --git a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml index 78244b41..925bddb4 100644 --- a/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml +++ b/accounts/maildir/package/contents/ui/MaildirAccountSettings.qml @@ -57,7 +57,7 @@ Item { rowSpacing: Kube.Units.largeSpacing Kube.Label { - text: "Title of Account" + text: qsTr("Title of Account") Layout.alignment: Qt.AlignRight } Kube.TextField { @@ -70,7 +70,7 @@ Item { } Kube.Label { - text: "Path" + text: qsTr("Path") Layout.alignment: Qt.AlignRight } RowLayout { 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) } } } diff --git a/framework/qml/EditAccount.qml b/framework/qml/EditAccount.qml index 69c0ff11..ad7c1f76 100644 --- a/framework/qml/EditAccount.qml +++ b/framework/qml/EditAccount.qml @@ -121,7 +121,7 @@ Item { Kube.Button { anchors.right: parent.right - text: "Save" + text: qsTr("Save") onClicked: { loader.item.save() //TODO Feedback that the settings have been saved (popup notification/animation?) diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index d2720665..6cc318da 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml @@ -325,17 +325,17 @@ Rectangle { topMargin: Math.max(attachments.height, Kube.Units.largeSpacing) } visible: root.incomplete - text: "Incomplete body..." + text: qsTr("Incomplete body...") color: Kube.Colors.textColor enabled: false states: [ State { name: "inprogress"; when: model.status == Kube.MailListModel.InProgressStatus - PropertyChanges { target: incompleteBody; text: "Downloading message..." } + PropertyChanges { target: incompleteBody; text: qsTr("Downloading message...") } }, State { name: "error"; when: model.status == Kube.MailListModel.ErrorStatus - PropertyChanges { target: incompleteBody; text: "Failed to download message..." } + PropertyChanges { target: incompleteBody; text: qsTr("Failed to download message...") } } ] } -- cgit v1.2.3