feat(GODT-2772): marked strings as translatable.

This commit is contained in:
Xavier Michelon
2023-08-23 17:09:03 +02:00
parent f617a44d28
commit b3a5270bdc
4 changed files with 10 additions and 10 deletions

View File

@ -90,7 +90,7 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
colorScheme: wizard.colorScheme colorScheme: wizard.colorScheme
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
text: "Install the bridge certificate" text: qsTr("Install the bridge certificate")
type: Label.LabelType.Title type: Label.LabelType.Title
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
@ -100,7 +100,7 @@ Item {
color: colorScheme.text_weak color: colorScheme.text_weak
colorScheme: wizard.colorScheme colorScheme: wizard.colorScheme
horizontalAlignment: Text.AlignHCenter 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 accounts) 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 accounts) and validate.")
type: Label.LabelType.Body type: Label.LabelType.Body
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
@ -121,7 +121,7 @@ Item {
colorScheme: wizard.colorScheme colorScheme: wizard.colorScheme
enabled: !certificateInstall.waitingForCert enabled: !certificateInstall.waitingForCert
loading: certificateInstall.waitingForCert loading: certificateInstall.waitingForCert
text: "Install the certificate" text: qsTr("Install the certificate")
onClicked: { onClicked: {
certificateInstall.waitingForCert = true; certificateInstall.waitingForCert = true;
@ -163,7 +163,7 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
colorScheme: wizard.colorScheme colorScheme: wizard.colorScheme
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
text: "Install the profile" text: qsTr("Install the profile")
type: Label.LabelType.Title type: Label.LabelType.Title
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
@ -192,7 +192,7 @@ Item {
Button { Button {
Layout.fillWidth: true Layout.fillWidth: true
colorScheme: wizard.colorScheme colorScheme: wizard.colorScheme
text: "Install the profile" text: qsTr("Install the profile")
onClicked: { onClicked: {
wizard.user.configureAppleMail(wizard.address); wizard.user.configureAppleMail(wizard.address);

View File

@ -128,7 +128,7 @@ Rectangle {
password: wizard.user ? wizard.user.password : "" password: wizard.user ? wizard.user.password : ""
port: Backend.imapPort.toString() port: Backend.imapPort.toString()
security: Backend.useSSLForIMAP ? "SSL" : "STARTTLS" security: Backend.useSSLForIMAP ? "SSL" : "STARTTLS"
title: qsTr("IMAP") title: "IMAP"
username: wizard.address username: wizard.address
} }
Configuration { Configuration {
@ -139,7 +139,7 @@ Rectangle {
password: wizard.user ? wizard.user.password : "" password: wizard.user ? wizard.user.password : ""
port: Backend.smtpPort.toString() port: Backend.smtpPort.toString()
security: Backend.useSSLForSMTP ? "SSL" : "STARTTLS" security: Backend.useSSLForSMTP ? "SSL" : "STARTTLS"
title: qsTr("SMTP") title: "SMTP"
username: wizard.address username: wizard.address
} }
} }

View File

@ -77,7 +77,7 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
colorScheme: wizard.colorScheme colorScheme: wizard.colorScheme
iconSource: "/qml/icons/ic-other-mail-clients.svg" iconSource: "/qml/icons/ic-other-mail-clients.svg"
text: "Other" text: qsTr("Other")
onClicked: { onClicked: {
wizard.client = SetupWizard.Client.Generic; wizard.client = SetupWizard.Client.Generic;

View File

@ -67,10 +67,10 @@ Item {
case SetupWizard.Client.MozillaThunderbird: case SetupWizard.Client.MozillaThunderbird:
return "Thunderbird"; return "Thunderbird";
case SetupWizard.Client.Generic: case SetupWizard.Client.Generic:
return "your email client"; return qsTr("your email client");
default: default:
console.error("Unknown mail client " + client); console.error("Unknown mail client " + client);
return "your email client"; return qsTr("your email client");
} }
} }
function closeWizard() { function closeWizard() {