message=[NSStringstringWithFormat:AILocalizedString(@"This will remove the group \"%@\" from the contact lists of your online accounts. The %lu contacts within this group will also be removed.\n\nThis action can not be undone.",nil),
message=[NSStringstringWithFormat:AILocalizedString(@"This will remove %@ from the contact lists of your online accounts.",nil),listObject.displayName];
}else{
message=[NSStringstringWithFormat:AILocalizedString(@"This will remove %@ from the group \"%@\" of your online accounts.",nil),
message=[NSStringstringWithFormat:AILocalizedString(@"This will remove %lu items from the contact lists of your online accounts. Contacts in any deleted groups will also be removed.\n\nThis action can not be undone.",nil),array.count];
}else{
message=[NSStringstringWithFormat:AILocalizedString(@"This will remove %lu contacts from the contact lists of your online accounts.\n\nThis action cannot be undone.",nil),array.count];
}
}
//Make sure we're in the front so our prompt is visible
[NSAppactivateIgnoringOtherApps:YES];
//Guard deletion with a warning prompt
NSIntegerresult=NSRunAlertPanel(AILocalizedString(@"Remove from list?",nil),
AILocalizedString(@"Removing any contacts from their last group will permanently remove them from your contact list.\n\n%@",nil),