clarify remove warnings for different kind of removes

This commit is contained in:
Mitchell Livingston 2007-08-31 03:04:49 +00:00
parent bcfaf3c56d
commit 1c0d9d461d
1 changed files with 29 additions and 5 deletions

View File

@ -1147,17 +1147,41 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
int selected = [fTableView numberOfSelectedRows];
if (selected == 1)
{
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm Removal of \"%@\"",
"Removal confirm panel -> title"),
[[fDisplayedTorrents objectAtIndex: [fTableView selectedRow]] name]];
NSString * torrentName = [[fDisplayedTorrents objectAtIndex: [fTableView selectedRow]] name];
if (!deleteData && !deleteTorrent)
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm removal of \"%@\" from the transfer list.",
"Removal confirm panel -> title"), torrentName];
else if (deleteData && !deleteTorrent)
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm removal of \"%@\" from the transfer list"
" and trash data file.", "Removal confirm panel -> title"), torrentName];
else if (!deleteData && deleteTorrent)
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm removal of \"%@\" from the transfer list"
" and trash torrent file.", "Removal confirm panel -> title"), torrentName];
else
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm removal of \"%@\" from the transfer list"
" and trash both data and torrent files.", "Removal confirm panel -> title"), torrentName];
message = NSLocalizedString(@"This transfer is active."
" Once removed, continuing the transfer will require the torrent file."
" Do you really want to remove it?", "Removal confirm panel -> message");
}
else
{
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm Removal of %d Transfers",
"Removal confirm panel -> title"), selected];
if (!deleteData && !deleteTorrent)
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm removal of %d transfers"
" from the transfer list.", "Removal confirm panel -> title"), selected];
else if (deleteData && !deleteTorrent)
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm removal of %d transfers"
" from the transfer list and trash data file.", "Removal confirm panel -> title"), selected];
else if (!deleteData && deleteTorrent)
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm removal of %d transfers"
" from the transfer list and trash torrent file.", "Removal confirm panel -> title"), selected];
else
title = [NSString stringWithFormat: NSLocalizedString(@"Confirm removal of %d transfers"
" from the transfer list aand trash both data and torrent files.",
"Removal confirm panel -> title"), selected];
if (selected == active)
message = [NSString stringWithFormat: NSLocalizedString(@"There are %d active transfers.",
"Removal confirm panel -> message part 1"), active];