mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Do not say no valid update could be found if there were no items
There may not be any applicable items due to sparkle:channels now.
This commit is contained in:
1 parent
5fba1fe046
commit
267f2b82b1
3 files changed
+6
-12
No files matched your search
Vendored
-3
@@ -14,9 +14,6 @@
|
||||
|
||||
"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ is currently the newest version available.\n(You are currently running version %3$@.)";
|
||||
|
||||
/* An appcast feed error when checking for updates and no appcast items are retrieved */
|
||||
"No valid update information could be loaded." = "No valid update information could be loaded.";
|
||||
|
||||
"An error occurred while running the updater. Please try again later." = "An error occurred while running the updater. Please try again later.";
|
||||
|
||||
"An error occurred while starting the installer. Please try again later." = "An error occurred while starting the installer. Please try again later.";
|
||||
|
||||
Vendored
+6
-6
@@ -203,17 +203,17 @@
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
recoveryOption = @"OK";
|
||||
} else {
|
||||
// When no updates are found in the appcast, or latest appcast item info
|
||||
// was not provided (i.e, for a background update check)
|
||||
// In the case no info was provided for a background check, the error isn't shown anywhere
|
||||
localizedDescription = SULocalizedString(@"Update Error!", nil);
|
||||
recoverySuggestion = SULocalizedString(@"No valid update information could be loaded.", nil);
|
||||
recoveryOption = SULocalizedString(@"Cancel Update", nil);
|
||||
// We will need to assume the user is up to date if the feed doen't have any applicable update items
|
||||
// There could be update items on channels the updater is not subscribed to for example. But we can't tell the user about them.
|
||||
localizedDescription = SULocalizedString(@"You're up-to-date!", "Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates.");
|
||||
recoverySuggestion = [NSString stringWithFormat:SULocalizedString(@"%@ %@ is currently the newest version available.", nil), [self.host name], [self.host displayVersion]];
|
||||
}
|
||||
|
||||
recoveryOption = SULocalizedString(@"OK", nil);
|
||||
|
||||
NSError *notFoundError =
|
||||
[NSError
|
||||
errorWithDomain:SUSparkleErrorDomain
|
||||
|
||||
Vendored
-3
@@ -14,9 +14,6 @@
|
||||
|
||||
"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@は現在入手できる最新バージョンです。\n(現在使用中のバージョンは%3$@です。)";
|
||||
|
||||
/* An appcast feed error when checking for updates and no appcast items are retrieved */
|
||||
"No valid update information could be loaded." = "有効なアップデート情報が取得できませんでした。";
|
||||
|
||||
"An error occurred while running the updater. Please try again later." = "アップデータを実行中にエラーが発生しました。あとでやり直してください。";
|
||||
|
||||
"An error occurred while starting the installer. Please try again later." = "インストーラを始動中にエラーが発生しました。あとでやり直してください。";
|
||||
|
||||
Reference in new issue
Block a user