From b26bfeba0e629f9491d356ca7104b2c21f67a56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesin=CC=81ski?= Date: Tue, 1 Jul 2014 02:12:32 +0100 Subject: [PATCH] Localize "The update is improperly signed." #294 --- Sparkle/SUBasicUpdateDriver.m | 6 +++++- Sparkle/fr.lproj/Sparkle.strings | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 38f9c09c..7d1e4db5 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -292,7 +292,11 @@ { if (![self validateUpdateDownloadedToPath:downloadPath extractedToPath:tempDir DSASignature:[updateItem DSASignature] publicDSAKey:[host publicDSAKey]]) { - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUSignatureError userInfo:@{NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil), NSLocalizedFailureReasonErrorKey: @"The update is improperly signed."}]]; + NSDictionary *userInfo = @{ + NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil), + NSLocalizedFailureReasonErrorKey: SULocalizedString(@"The update is improperly signed.", nil), + }; + [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUSignatureError userInfo:userInfo]]; return; } diff --git a/Sparkle/fr.lproj/Sparkle.strings b/Sparkle/fr.lproj/Sparkle.strings index bbcbdf05..7ab704c3 100644 --- a/Sparkle/fr.lproj/Sparkle.strings +++ b/Sparkle/fr.lproj/Sparkle.strings @@ -73,3 +73,5 @@ without a download but with a URL. */ "Learn More..." = "En savoir plus…"; + +"The update is improperly signed." = "La signature numérique de la mise à jour est incorrecte";