mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
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.
This commit is contained in:
1 parent
97f15943e4
commit
d91223a5b6
1 file changed
+4
-2
Vendored
+4
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user