From 8d6fea08272e7d723cb8ed229b54f24a31000a4c Mon Sep 17 00:00:00 2001 From: Oliver Wiese <oliver.wiese@fu-berlin.de> Date: Tue, 8 Oct 2019 18:03:28 +0200 Subject: [PATCH] fix key import bug --- enzevalos_iphone/PasteKeyViewController.swift | 2 +- enzevalos_iphone/de.lproj/Localizable.strings | 2 +- enzevalos_iphone/en.lproj/Localizable.strings | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/enzevalos_iphone/PasteKeyViewController.swift b/enzevalos_iphone/PasteKeyViewController.swift index 443586f6..ada1b781 100644 --- a/enzevalos_iphone/PasteKeyViewController.swift +++ b/enzevalos_iphone/PasteKeyViewController.swift @@ -162,7 +162,7 @@ class PasteKeyViewController: UIViewController, UITextViewDelegate { publicKeys.append(key) } } - if keys.count > 0 { + if tempKeys.count > 0 { return .KEY } return .WRONGFORMAT diff --git a/enzevalos_iphone/de.lproj/Localizable.strings b/enzevalos_iphone/de.lproj/Localizable.strings index 2ea54f9e..40f27258 100644 --- a/enzevalos_iphone/de.lproj/Localizable.strings +++ b/enzevalos_iphone/de.lproj/Localizable.strings @@ -316,7 +316,7 @@ "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.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."; "Key.DiscoveryChannel" = "Erhalten durch "; "Key.DiscoveryChannel.Mail" = "mail"; diff --git a/enzevalos_iphone/en.lproj/Localizable.strings b/enzevalos_iphone/en.lproj/Localizable.strings index 1c14f515..672ba888 100644 --- a/enzevalos_iphone/en.lproj/Localizable.strings +++ b/enzevalos_iphone/en.lproj/Localizable.strings @@ -285,7 +285,7 @@ "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.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."; "Key.DiscoveryChannel" = "Discovered by "; "Key.DiscoveryChannel.Mail" = "mail"; -- GitLab