From d91223a5b645bdd4179d778c6dcd52aa15739c94 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 25 Apr 2021 14:46:42 -0700 Subject: [PATCH] Remove localizing authorization prompt The message string gets cached and I don't think this is the proper way to localize the auth dialog (which I think has some other mechanism). So I am removing localization here for now until this can possibly be done properly. --- Sparkle/SPUInstallerDriver.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sparkle/SPUInstallerDriver.m b/Sparkle/SPUInstallerDriver.m index ea1883c2..737a7526 100644 --- a/Sparkle/SPUInstallerDriver.m +++ b/Sparkle/SPUInstallerDriver.m @@ -448,11 +448,13 @@ // Changing this authorization prompt is a little complicated because the // Auth database retains and caches the right we use, and there isn't a good way // of updating the prompt. See code in SUInstallerLauncher.m + // For this reason, we don't provide localized strings for this prompt yet + // (and I believe, the authorization framework has a different way of specifying localizations..) NSString *authorizationPrompt; if ([mainBundleName isEqualToString:hostName]) { - authorizationPrompt = [NSString stringWithFormat:SULocalizedString(@"%1$@ wants permission to update.", nil), hostName]; + authorizationPrompt = [NSString stringWithFormat:@"%1$@ wants permission to update.", hostName]; } else { - authorizationPrompt = [NSString stringWithFormat:SULocalizedString(@"%1$@ wants permission to update %2$@.", nil), mainBundleName, hostName]; + authorizationPrompt = [NSString stringWithFormat:@"%1$@ wants permission to update %2$@.", mainBundleName, hostName]; } NSString *mainBundleIdentifier;