From 1f9d76bc13eb482a85feee4115ae81719d4f9bcb Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 9 May 2021 23:16:01 -0700 Subject: [PATCH] Retitle install button to "Install Upgrade" for major updates --- Sparkle/Base.lproj/Sparkle.strings | 3 +++ Sparkle/SUUpdateAlert.m | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Sparkle/Base.lproj/Sparkle.strings b/Sparkle/Base.lproj/Sparkle.strings index 4acaed45..2eed321e 100644 --- a/Sparkle/Base.lproj/Sparkle.strings +++ b/Sparkle/Base.lproj/Sparkle.strings @@ -101,6 +101,9 @@ /* When the update to download or install is a major (usually paid) one */ "Skip Major Upgrade" = "Skip Major Upgrade"; +/* When the update to download or install is a major (usually paid) one */ +"Install Upgrade" = "Install Upgrade"; + /* the unit for megabytes */ "MB" = "MB"; diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index 1d94d12b..6edcf976 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -368,6 +368,9 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE // We should be explicit that the update will be installed on quit self.laterButton.title = SULocalizedString(@"Install on Quit", @"Alternate title for 'Remind Me Later' button when downloaded updates can be resumed"); + } else if (self.state.majorUpgrade) { + // Use "upgrade" instead of "update" to signify a major change + self.installButton.title = SULocalizedString(@"Install Upgrade", nil); } if (self.state.majorUpgrade) {