Revisions for style as requested.

This commit is contained in:
Daniel Jalkut committed 2015-07-27 17:26:33 -04:00
1 parent 831e8fda9f
commit 0418566e4c
2 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@
- (BOOL)isInformationOnlyUpdate
{
return (([self infoURL] != nil) && ([self fileURL] == nil));
return self.infoURL && !self.fileURL;
}
- (instancetype)initWithDictionary:(NSDictionary *)dict
+10 -10
View File
@@ -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];
}