Skip to content
Snippets Groups Projects
Commit 90e76dd5 authored by Oliver Wiese's avatar Oliver Wiese
Browse files

update localization of key import

remove duplicated done button
parent 19960b26
No related branches found
No related tags found
No related merge requests found
...@@ -204,7 +204,7 @@ class InboxViewController: UITableViewController, InboxCellDelegator { ...@@ -204,7 +204,7 @@ class InboxViewController: UITableViewController, InboxCellDelegator {
} else if segue.identifier == "yourTraySegue" { } else if segue.identifier == "yourTraySegue" {
if let DestinationNavigationController = segue.destination as? UINavigationController { if let DestinationNavigationController = segue.destination as? UINavigationController {
if let DestinationViewController = DestinationNavigationController.topViewController as? ContactViewController { if let DestinationViewController = DestinationNavigationController.topViewController as? ContactViewController {
DestinationViewController.navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(dismissView)) //DestinationViewController.navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(dismissView))
let records = folder.records.filter({ let records = folder.records.filter({
$0.isUser $0.isUser
}) })
......
...@@ -645,16 +645,16 @@ class ReadViewController: UITableViewController { ...@@ -645,16 +645,16 @@ class ReadViewController: UITableViewController {
private func importSecretKeyDialog(first: Bool) { private func importSecretKeyDialog(first: Bool) {
Logger.log(importPrivateKeyPopupOpen: mail) Logger.log(importPrivateKeyPopupOpen: mail)
var message = NSLocalizedString("Please, enter the password to import the new secret.", comment: "NewSecretKeyMessage") var message = NSLocalizedString("Read.Import.Secret.Body", comment: "NewSecretKeyMessage")
if !first { if !first {
message = NSLocalizedString("Wrong password! Please, enter the password to import the new secret again.", comment: "NewSecretKeyMessage") message = NSLocalizedString("Read.Import.Secret.Body.Wrong", comment: "NewSecretKeyMessage")
} }
let alert = UIAlertController(title: NSLocalizedString("New secret", comment: "NewSecretKeyTitle"), message: message, preferredStyle: UIAlertController.Style.alert) let alert = UIAlertController(title: NSLocalizedString("Read.Import.Secret.Title", comment: "NewSecretKeyTitle"), message: message, preferredStyle: UIAlertController.Style.alert)
alert.addAction(UIAlertAction(title: NSLocalizedString("No import", comment: "NoSecretKeyImport"), style: UIAlertAction.Style.destructive, handler: { (_: UIAlertAction) -> Void in alert.addAction(UIAlertAction(title: NSLocalizedString("Read.Import.Secret.No", comment: "NoSecretKeyImport"), style: UIAlertAction.Style.destructive, handler: { (_: UIAlertAction) -> Void in
Logger.log(importPrivateKeyPopupClose: self.mail, doImport: false) Logger.log(importPrivateKeyPopupClose: self.mail, doImport: false)
})) }))
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: "Import secret Key"), style: UIAlertAction.Style.default, handler: importSecretKey)) alert.addAction(UIAlertAction(title: NSLocalizedString("Read.Import.Secret.Ok", comment: "Import secret Key"), style: UIAlertAction.Style.default, handler: importSecretKey))
alert.addTextField(configurationHandler: newSecretkeyPassword(textField:)) alert.addTextField(configurationHandler: newSecretkeyPassword(textField:))
self.present(alert, animated: true, completion: nil) self.present(alert, animated: true, completion: nil)
} }
......
...@@ -265,3 +265,8 @@ ...@@ -265,3 +265,8 @@
"MailServerError.Crypto.Body" = "Es konnte keine Verbindung zum Server hergestellt werden.\n Die Konfiguration der Transportverschlüsselung ist falsch. Bitte überprüfe diese, sowie den Port der Serverkonfiguration. Mehr Informationen finden sich dazu auch auf der Webseite des Providers."; "MailServerError.Crypto.Body" = "Es konnte keine Verbindung zum Server hergestellt werden.\n Die Konfiguration der Transportverschlüsselung ist falsch. Bitte überprüfe diese, sowie den Port der Serverkonfiguration. Mehr Informationen finden sich dazu auch auf der Webseite des Providers.";
"MailServerError.OAUTH.Body" = "Es konnte keine Verbindung zum Server hergestellt werden.\n Google stellt einen sicheren Zugang zu deinem Postfach bereit. Bitte nutze dazu den spezifischen Login für Google."; "MailServerError.OAUTH.Body" = "Es konnte keine Verbindung zum Server hergestellt werden.\n Google stellt einen sicheren Zugang zu deinem Postfach bereit. Bitte nutze dazu den spezifischen Login für Google.";
"MailServerError.Default.Body" = "Es konnte keine Verbindung zum Server hergestellt werden.\n Bitte überprüfe das Password, den Accountname und die Serverkonfiguration (IMAP/SMTP). Die Serverkonfiguration kann mit der Serverkonfiguration auf der Provider-Webseite verglichen werden. In manchen Fällen muss der Zugriff mittels IMAP/SMTP in den Accounteinstellungen erst freigeschaltet werden."; "MailServerError.Default.Body" = "Es konnte keine Verbindung zum Server hergestellt werden.\n Bitte überprüfe das Password, den Accountname und die Serverkonfiguration (IMAP/SMTP). Die Serverkonfiguration kann mit der Serverkonfiguration auf der Provider-Webseite verglichen werden. In manchen Fällen muss der Zugriff mittels IMAP/SMTP in den Accounteinstellungen erst freigeschaltet werden.";
"Read.Import.Secret.Title" = "Neues Geheimnis";
"Read.Import.Secret.Body" = "Bitte gib das Passwort um das neue Geheimnis zu importieren ein.";
"Read.Import.Secret.No" = "Kein Import";
"Read.Import.Secret.Ok" = "Ok";
"Read.Import.Secret.Body.Wrong" = "Falsches Passwort! Bitte gib das Passwort um das neue Geheimnis zu importieren erneut ein.";
...@@ -235,3 +235,8 @@ ...@@ -235,3 +235,8 @@
"MailServerError.Crypto.Body" = "Couldn't connect to server.\n The transport encryption configuration is wrong. Please, check the transport encryption and port configuration. You can find more information on your provider's website."; "MailServerError.Crypto.Body" = "Couldn't connect to server.\n The transport encryption configuration is wrong. Please, check the transport encryption and port configuration. You can find more information on your provider's website.";
"MailServerError.OAUTH.Body" = "Couldn't connect to server.\n Google provides a more secure access to your mail account. Please, use the specific google login."; "MailServerError.OAUTH.Body" = "Couldn't connect to server.\n Google provides a more secure access to your mail account. Please, use the specific google login.";
"MailServerError.Default.Body" = "Couldn't connect to server.\n Please, check your account name, password and server configuration. You can also compare the server configuration with the configuration listed on the website of your provider. In some cases, you have to activate the IMAP/SMTP connection in your account settings."; "MailServerError.Default.Body" = "Couldn't connect to server.\n Please, check your account name, password and server configuration. You can also compare the server configuration with the configuration listed on the website of your provider. In some cases, you have to activate the IMAP/SMTP connection in your account settings.";
"Read.Import.Secret.Title" = "New secret";
"Read.Import.Secret.Body" = "Please, enter the password to import the new secret.";
"Read.Import.Secret.No" = "No import";
"Read.Import.Secret.Ok" = "Ok";
"Read.Import.Secret.Body.Wrong" = "Wrong password! Please, enter the password to import the new secret again.";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment