mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Revisions for style as requested.
This commit is contained in:
1 parent
831e8fda9f
commit
0418566e4c
2 files changed
+11
-11
No files matched your search
Vendored
+1
-1
@@ -57,7 +57,7 @@
|
||||
|
||||
- (BOOL)isInformationOnlyUpdate
|
||||
{
|
||||
return (([self infoURL] != nil) && ([self fileURL] == nil));
|
||||
return self.infoURL && !self.fileURL;
|
||||
}
|
||||
|
||||
- (instancetype)initWithDictionary:(NSDictionary *)dict
|
||||
|
||||
Vendored
+10
-10
@@ -232,17 +232,17 @@
|
||||
[self.versionDisplayer formatVersion:&updateItemVersion andVersion:&hostVersion];
|
||||
}
|
||||
|
||||
// We display a slightly different summary depending on if it's an "info-only" item or not
|
||||
NSString* actionSentence = nil;
|
||||
// We display a slightly different summary depending on if it's an "info-only" item or not
|
||||
NSString *actionSentence = nil;
|
||||
|
||||
if ([self.updateItem isInformationOnlyUpdate])
|
||||
{
|
||||
actionSentence = SULocalizedString(@"Would you like to learn more about this update on the web?", @"Final portion of descriptionText when the update informational with no download.");
|
||||
}
|
||||
else
|
||||
{
|
||||
actionSentence = SULocalizedString(@"Would you like to download it now?", @"Final portion of descriptionText when the update is downloadable.");
|
||||
}
|
||||
if (self.updateItem.isInformationOnlyUpdate)
|
||||
{
|
||||
actionSentence = SULocalizedString(@"Would you like to learn more about this update on the web?", @"Final portion of descriptionText when the update informational with no download.");
|
||||
}
|
||||
else
|
||||
{
|
||||
actionSentence = SULocalizedString(@"Would you like to download it now?", @"Final portion of descriptionText when the update is downloadable.");
|
||||
}
|
||||
|
||||
return [NSString stringWithFormat:SULocalizedString(@"%@ %@ is now available--you have %@. %@", @"Description text for SUUpdateAlert. The final placeholder %4$@ will be substituted with one of the two strings below, depending on whether it's an informational or download update."), [self.host name], updateItemVersion, hostVersion, actionSentence];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user