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

fix key import bug

parent d3ea404c
Branches
Tags
No related merge requests found
...@@ -162,7 +162,7 @@ class PasteKeyViewController: UIViewController, UITextViewDelegate { ...@@ -162,7 +162,7 @@ class PasteKeyViewController: UIViewController, UITextViewDelegate {
publicKeys.append(key) publicKeys.append(key)
} }
} }
if keys.count > 0 { if tempKeys.count > 0 {
return .KEY return .KEY
} }
return .WRONGFORMAT return .WRONGFORMAT
......
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
"Import.PasteKey.Area.Default" = "Bitte, füge den Schlüssel hier ein..."; "Import.PasteKey.Area.Default" = "Bitte, füge den Schlüssel hier ein...";
"Import.PasteKey.Info.Start" = "Du kannst einen Schlüssel aus einer Mail, Datei oder von einer Webseite kopieren und unten einfügen. \nEin Schlüssel beginnt mit -----BEGIN PGP PUBLIC KEY BLOCK-----."; "Import.PasteKey.Info.Start" = "Du kannst einen Schlüssel aus einer Mail, Datei oder von einer Webseite kopieren und unten einfügen. \nEin Schlüssel beginnt mit -----BEGIN PGP PUBLIC KEY BLOCK-----.";
"Import.PasteKey.Info.WrongFormat" = "Dein eingefügter Text sieht wie ein Schlüssel aus, aber ist nicht korrekt. Bitte überprüfe den Text nochmal.\nEin Schlüssel startet mit -----BEGIN PGP PUBLIC KEY BLOCK----- und endet mit -----END PGP PUBLIC KEY BLOCK-----."; "Import.PasteKey.Info.WrongFormat" = "Dein eingefügter Text sieht wie ein Schlüssel aus, aber ist nicht korrekt. Bitte überprüfe den Text nochmal.\nEin Schlüssel startet mit -----BEGIN PGP PUBLIC KEY BLOCK----- und endet mit -----END PGP PUBLIC KEY BLOCK-----.";
"Import.PasteKey.Info.NoKeyFormat" = "Dein eingefügter Text beinhaltet keinen Schlüssel. \nEin Schlüssel startet mit -----BEGIN PGP PUBLIC KEY BLOCK----- und endet mit -----END PGP PUBLIC KEY BLOCK-----."; "Import.PasteKey.Info.NoKeyFormat" = "Dein eingefügter Text beinhaltet keinen Schlüssel. \nEin Schlüssel startet mit -----BEGIN PGP PUBLIC KEY BLOCK----- und endet mit -----END PGP PUBLIC KEY BLOCK-----.\n Falls das Problem weiterbesteht, ünterstützen wir das Schlüsselformat nicht. Sorry!";
"Import.PasteKey.Info.Key" = "Dein eingefügter Text beinhaltet mindestens einen Schlüssel. Klicke auf Weiter um die Schlüssel auszuwählen."; "Import.PasteKey.Info.Key" = "Dein eingefügter Text beinhaltet mindestens einen Schlüssel. Klicke auf Weiter um die Schlüssel auszuwählen.";
"Key.DiscoveryChannel" = "Erhalten durch "; "Key.DiscoveryChannel" = "Erhalten durch ";
"Key.DiscoveryChannel.Mail" = "mail"; "Key.DiscoveryChannel.Mail" = "mail";
......
...@@ -285,7 +285,7 @@ ...@@ -285,7 +285,7 @@
"Import.PasteKey.Area.Default" = "Please, paste a key here..."; "Import.PasteKey.Area.Default" = "Please, paste a key here...";
"Import.PasteKey.Info.Start" = "You can copy a key from a mail, file or website and and paste it below. \nA key starts with -----BEGIN PGP PUBLIC KEY BLOCK-----."; "Import.PasteKey.Info.Start" = "You can copy a key from a mail, file or website and and paste it below. \nA key starts with -----BEGIN PGP PUBLIC KEY BLOCK-----.";
"Import.PasteKey.Info.WrongFormat" = "Your pasted text looks like a key but is not correct. Please, check your input again. \nA key starts with -----BEGIN PGP PUBLIC KEY BLOCK----- and ends with -----END PGP PUBLIC KEY BLOCK-----."; "Import.PasteKey.Info.WrongFormat" = "Your pasted text looks like a key but is not correct. Please, check your input again. \nA key starts with -----BEGIN PGP PUBLIC KEY BLOCK----- and ends with -----END PGP PUBLIC KEY BLOCK-----.";
"Import.PasteKey.Info.NoKeyFormat" = "Your pasted text does not contain a key. \nA key starts with -----BEGIN PGP PUBLIC KEY BLOCK----- and ends with -----END PGP PUBLIC KEY BLOCK-----."; "Import.PasteKey.Info.NoKeyFormat" = "Your pasted text does not contain a key. \nA key starts with -----BEGIN PGP PUBLIC KEY BLOCK----- and ends with -----END PGP PUBLIC KEY BLOCK-----. \nIf the problem still appears, we might not support the key format. Sorry!";
"Import.PasteKey.Info.Key" = "Your pasted text contains at least one key. Please, go ahead to get an overview about them."; "Import.PasteKey.Info.Key" = "Your pasted text contains at least one key. Please, go ahead to get an overview about them.";
"Key.DiscoveryChannel" = "Discovered by "; "Key.DiscoveryChannel" = "Discovered by ";
"Key.DiscoveryChannel.Mail" = "mail"; "Key.DiscoveryChannel.Mail" = "mail";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment