Browse files

Made OPEN_BOOK_MESSAGE text easier to modify.

Closes #456.
  • Loading branch information...
1 parent ca5ec93 commit b16b7e91ee00f24bbfd8b3224ff165009c7178a8 @Simbul committed Aug 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Baker/BakerViewController.m
View
4 Baker/BakerViewController.m
@@ -40,7 +40,7 @@
// ALERT LABELS
-#define OPEN_BOOK_MESSAGE @"Do you want to download "
+#define OPEN_BOOK_MESSAGE @"Do you want to download %@?"
#define OPEN_BOOK_CONFIRM @"Open book"
#define CLOSE_BOOK_MESSAGE @"Do you want to close this book?"
@@ -1771,7 +1771,7 @@ - (void)downloadBook:(NSNotification *)notification {
NSLog(@"• Download file %@", URLDownload);
feedbackAlert = [[UIAlertView alloc] initWithTitle:@""
- message:[OPEN_BOOK_MESSAGE stringByAppendingFormat:@"%@?", URLDownload]
+ message:[NSString stringWithFormat:OPEN_BOOK_MESSAGE, URLDownload]
delegate:self
cancelButtonTitle:ALERT_FEEDBACK_CANCEL
otherButtonTitles:OPEN_BOOK_CONFIRM, nil];

0 comments on commit b16b7e9

Please sign in to comment.