Changeset 3652

Show
Ignore:
Timestamp:
05/21/07 23:43:44 (1 year ago)
Author:
rinoa
Message:

Now whenever someone mentions you or a highlight, the full message is displayed. #490

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Panels/JVDirectChatPanel.m

    r3650 r3652  
    847847                _newHighlightMessageCount++; 
    848848                NSMutableDictionary *context = [NSMutableDictionary dictionary]; 
    849                 [context setObject:NSLocalizedString( @"You Were Mentioned", "mentioned bubble title" ) forKey:@"title"]; 
    850                 if( [self isMemberOfClass:[JVChatRoomPanel class]] ) [context setObject:[NSString stringWithFormat:NSLocalizedString( @"One of your highlight words was mentioned in %@.", "chat room mentioned bubble text" ), [self title]] forKey:@"description"]; 
    851                 else [context setObject:[NSString stringWithFormat:NSLocalizedString( @"One of your highlight words was mentioned by %@.", "private chat mentioned bubble text" ), [self title]] forKey:@"description"]; 
     849                [context setObject:[NSString stringWithFormat:NSLocalizedString( @"One of your highlight words mentioned by %@", "mention bubble title" ), [user displayName]] forKey:@"title"]; 
     850                [context setObject:messageString forKey:@"description"]; 
    852851                [context setObject:[NSImage imageNamed:@"activityNewImportant"] forKey:@"image"]; 
    853                 [context setObject:[[self windowTitle] stringByAppendingString:@"JVChatMentioned"] forKey:@"coalesceKey"]; 
    854                 [context setObject:self forKey:@"target"]; 
    855                 [context setObject:NSStringFromSelector( @selector( activate: ) ) forKey:@"action"]; 
    856852                [self performNotification:@"JVChatMentioned" withContextInfo:context]; 
    857         } 
    858  
     853        }       
     854         
    859855        if( [cmessage ignoreStatus] != JVNotIgnored ) { 
    860856                NSMutableDictionary *context = [NSMutableDictionary dictionary]; 
  • trunk/Resources/notifications.plist

    r3612 r3652  
    173173                <string>JVChatMentioned</string> 
    174174                <key>title</key> 
    175                 <string>Someone Mentioned You</string> 
     175                <string>Highlight Word Was Mentioned</string> 
    176176        </dict> 
    177177        <dict>