diff --git a/Nostalgy4MailApp/PrivateMailHeaders.h b/Nostalgy4MailApp/PrivateMailHeaders.h index 4c7edf5..1b5f7ac 100644 --- a/Nostalgy4MailApp/PrivateMailHeaders.h +++ b/Nostalgy4MailApp/PrivateMailHeaders.h @@ -42,8 +42,19 @@ @property(retain, nonatomic) TableViewManager *tableViewManager; @end +@interface ConversationSet : NSObject +@property(nonatomic) unsigned long long unreadMessageCount; // @synthesize unreadMessageCount=_unreadMessageCount; +@property(nonatomic) unsigned long long totalMessageCount; // @synthesize totalMessageCount=_totalMessageCount; +@property(readonly, nonatomic) unsigned long long count; +@end + +@interface MessageSelection : NSObject +@property(readonly, copy, nonatomic) ConversationSet *conversations; +@end + @interface MessageViewer : NSResponder @property(readonly, nonatomic) TableViewManager *tableManager; +@property(readonly, nonatomic) MessageSelection *messageSelection; - (void)copyMessagesToMailbox:(id)arg1; - (void)moveMessagesToMailbox:(id)arg1; - (void)archiveMessages:(id)arg1; diff --git a/Nostalgy4MailApp/SearchManager.m b/Nostalgy4MailApp/SearchManager.m index e73bd05..2621c16 100644 --- a/Nostalgy4MailApp/SearchManager.m +++ b/Nostalgy4MailApp/SearchManager.m @@ -89,7 +89,11 @@ - (IBAction)moveToFolder:(id)sender { MessageViewer *viewer = [self frontmostMessageViewer]; if (viewer != nil) { id delegate = [[[MoveMessageDelegate alloc] initForMessageViewer:viewer] autorelease]; - [[SearchPopup popupWithDelegate:delegate] showWithSender:sender andTitle:@"Move to folder"]; + [[SearchPopup popupWithDelegate:delegate] + showWithSender:sender + andTitle:[NSString + stringWithFormat:NSLocalizedString(@"Move %d conversation", @"Move %d conversations"), + viewer.messageSelection.conversations.count]]; } } @@ -97,7 +101,11 @@ - (IBAction)copyToFolder:(id)sender { MessageViewer *viewer = [self frontmostMessageViewer]; if (viewer != nil) { id delegate = [[[CopyMessageDelegate alloc] initForMessageViewer:viewer] autorelease]; - [[SearchPopup popupWithDelegate:delegate] showWithSender:sender andTitle:@"Copy to folder"]; + [[SearchPopup popupWithDelegate:delegate] + showWithSender:sender + andTitle:[NSString + stringWithFormat:NSLocalizedString(@"Copy %d conversation", @"Copy %d conversations"), + viewer.messageSelection.conversations.count]]; } }