Changeset 274

Show
Ignore:
Timestamp:
17-04-2008 18:56:56 (5 years ago)
Author:
jppavao
Message:

Added account information to the presence subscription alert windows. Closes #233.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lilypad/Sources/LPUIController.m

    r268 r274  
    15741574                         
    15751575                        [authAlert setMessageText:[NSString stringWithFormat: 
    1576                                 NSLocalizedString(@"Authorize %@ to see your online status?", @"presence subscription alert"), 
    1577                                 contactReference ]]; 
     1576                                NSLocalizedString(@"Authorize %@ to see your online status on account \"%@\"?", @"presence subscription alert"), 
     1577                                contactReference, [entry account]]]; 
    15781578                         
    15791579                        [authAlert setInformativeText:[NSString stringWithFormat: 
    15801580                                NSLocalizedString(@"The contact %@ has added your address to their contact list and wants to ask " 
    1581                                                                   @"for your authorization to see when you are online.\n\n" 
     1581                                                                  @"for your authorization to see when you are online on account \"%@\".\n\n" 
    15821582                                                                  @"%@" 
    15831583                                                                  @"Do you want to allow this person to see your " 
    15841584                                                                  @"online status?", @"presence subscription alert"), 
    15851585                                contactReference, 
     1586                                [entry account], 
    15861587                                ( [reason length] > 0 ? 
    15871588                                  [NSString stringWithFormat: 
     
    16131614                         
    16141615                        [authAlert setMessageText:[NSString stringWithFormat: 
    1615                                 NSLocalizedString(@"Authorization to see the online status of %@ was denied!", @"presence subscription alert"), 
    1616                                 contactReference]]; 
     1616                                NSLocalizedString(@"Authorization to see the online status of %@ on account \"%@\" was denied!", @"presence subscription alert"), 
     1617                                contactReference, [entry account]]]; 
    16171618                         
    16181619                        if ([humanReadableJID isEqualToString:[[entry contact] name]]) { 
    16191620                                [authAlert setInformativeText:[NSString stringWithFormat: 
    1620                                         NSLocalizedString(@"Your authorization to see the online status of the address \"%@\" has been denied. " 
     1621                                        NSLocalizedString(@"Your authorization to see the online status of the address \"%@\" on account \"%@\" has been denied. " 
    16211622                                                                          @"You may either remove this address from your contact list or try to renew the authorization.", @"presence subscription alert"), 
    1622                                         humanReadableJID]]; 
     1623                                        humanReadableJID, [entry account]]]; 
    16231624                        } 
    16241625                        else { 
    16251626                                [authAlert setInformativeText:[NSString stringWithFormat: 
    1626                                         NSLocalizedString(@"The contact \"%@\" has denied your authorization to see the online status of the address \"%@\". " 
     1627                                        NSLocalizedString(@"The contact \"%@\" has denied your authorization to see the online status of the address \"%@\" on account \"%@\". " 
    16271628                                                                          @"You may either remove this address from your contact list or try to renew the authorization.", @"presence subscription alert"), 
    16281629                                        [[entry contact] name], 
    1629                                         [entry humanReadableAddress]]]; 
     1630                                        [entry humanReadableAddress], 
     1631                                        [entry account]]]; 
    16301632                        } 
    16311633                        [authAlert setFirstButtonTitle:NSLocalizedString(@"Remove Address", @"presence subscription alert")];