From b3a5270bdc220693dfd5c7f1c4837b9e12b12afa Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Wed, 23 Aug 2023 17:09:03 +0200 Subject: [PATCH] feat(GODT-2772): marked strings as translatable. --- .../qml/SetupWizard/ClientConfigAppleMail.qml | 10 +++++----- .../qml/SetupWizard/ClientConfigParameters.qml | 4 ++-- .../qml/SetupWizard/ClientConfigSelector.qml | 2 +- .../bridge-gui/qml/SetupWizard/SetupWizard.qml | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigAppleMail.qml b/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigAppleMail.qml index bdef4a75..10508170 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigAppleMail.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigAppleMail.qml @@ -90,7 +90,7 @@ Item { Layout.fillWidth: true colorScheme: wizard.colorScheme horizontalAlignment: Text.AlignHCenter - text: "Install the bridge certificate" + text: qsTr("Install the bridge certificate") type: Label.LabelType.Title wrapMode: Text.WordWrap } @@ -100,7 +100,7 @@ Item { color: colorScheme.text_weak colorScheme: wizard.colorScheme horizontalAlignment: Text.AlignHCenter - text: "After clicking on the button below, a system pop-up will ask you for your credential, please enter your macOS user credentials (not your Proton account’s) and validate." + text: qsTr("After clicking on the button below, a system pop-up will ask you for your credentials, please enter your macOS user credentials (not your Proton account’s) and validate.") type: Label.LabelType.Body wrapMode: Text.WordWrap } @@ -121,7 +121,7 @@ Item { colorScheme: wizard.colorScheme enabled: !certificateInstall.waitingForCert loading: certificateInstall.waitingForCert - text: "Install the certificate" + text: qsTr("Install the certificate") onClicked: { certificateInstall.waitingForCert = true; @@ -163,7 +163,7 @@ Item { Layout.fillWidth: true colorScheme: wizard.colorScheme horizontalAlignment: Text.AlignHCenter - text: "Install the profile" + text: qsTr("Install the profile") type: Label.LabelType.Title wrapMode: Text.WordWrap } @@ -192,7 +192,7 @@ Item { Button { Layout.fillWidth: true colorScheme: wizard.colorScheme - text: "Install the profile" + text: qsTr("Install the profile") onClicked: { wizard.user.configureAppleMail(wizard.address); diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigParameters.qml b/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigParameters.qml index 366a55d3..91f5804a 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigParameters.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigParameters.qml @@ -128,7 +128,7 @@ Rectangle { password: wizard.user ? wizard.user.password : "" port: Backend.imapPort.toString() security: Backend.useSSLForIMAP ? "SSL" : "STARTTLS" - title: qsTr("IMAP") + title: "IMAP" username: wizard.address } Configuration { @@ -139,7 +139,7 @@ Rectangle { password: wizard.user ? wizard.user.password : "" port: Backend.smtpPort.toString() security: Backend.useSSLForSMTP ? "SSL" : "STARTTLS" - title: qsTr("SMTP") + title: "SMTP" username: wizard.address } } diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigSelector.qml b/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigSelector.qml index 51aaf5ea..fcb5ddf6 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigSelector.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/ClientConfigSelector.qml @@ -77,7 +77,7 @@ Item { Layout.fillWidth: true colorScheme: wizard.colorScheme iconSource: "/qml/icons/ic-other-mail-clients.svg" - text: "Other" + text: qsTr("Other") onClicked: { wizard.client = SetupWizard.Client.Generic; diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/SetupWizard.qml b/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/SetupWizard.qml index 50ae4230..609b50d2 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/SetupWizard.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/SetupWizard/SetupWizard.qml @@ -67,10 +67,10 @@ Item { case SetupWizard.Client.MozillaThunderbird: return "Thunderbird"; case SetupWizard.Client.Generic: - return "your email client"; + return qsTr("your email client"); default: console.error("Unknown mail client " + client); - return "your email client"; + return qsTr("your email client"); } } function closeWizard() {