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
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 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
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);

View File

@ -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
}
}

View File

@ -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;

View File

@ -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() {