* Called by either ESFileTransferRequestPromptController or self, this method is the last step in accepting or
* refusing a request to be sent a file.
*
* @param fileTransfer The file transfer in question
* @param localFilename Full path at which to save the file. If anything exists at this path it will be overwritten without further confirmation. Pass nil to deny the transfer.
format=AILocalizedString(@"%@ requests to send you %@","A person is wanting to send you a file. The first %@ is a name; the second %@ is the filename of the file being sent.");
format=AILocalizedString(@"Offering to send %@ to %@","You are offering to send a file to a remote user. The first %@ is the filename of the file being sent; the second %@ is the recipient of the file being sent.");
format=AILocalizedString(@"%@ began sending you %@","A person began sending you a file. The first %@ is a name; the second %@ is the filename of the file being sent.");
}else{
format=AILocalizedString(@"%@ began receiving %@","A person began receiving a file from you. The first %@ is the recipient of the file; the second %@ is the filename of the file being sent.");
format=AILocalizedString(@"%@ cancelled the transfer of %@","The other contact cancelled a file transfer in progress. The first %@ is the recipient of the file; the second %@ is the filename of the file being sent.");
ret=[NSStringstringWithFormat:AILocalizedString(@"%llu of %llu bytes","file sizes both measured in bytes"),inSize,totalSize];
}else{
ret=[NSStringstringWithFormat:AILocalizedString(@"%llu bytes of %@","file size measured in bytes out of some other measurement"),inSize,totalSizeString];
}
}elseif(inSize>=1024.&&inSize<pow(1024.,2.)){
if(totalSize>=1024.&&totalSize<pow(1024.,2.)){
ret=[NSStringstringWithFormat:AILocalizedString(@"%.1f of %.1f KB","file sizes both measured in kilobytes"),(inSize/1024.),(totalSize/1024.)];
}else{
ret=[NSStringstringWithFormat:AILocalizedString(@"%.1f KB of %@","file size measured in kilobytes out of some other measurement"),(inSize/1024.),totalSizeString];
ret=[NSStringstringWithFormat:AILocalizedString(@"%.2f of %.2f MB","file sizes both measured in megabytes"),(inSize/pow(1024.,2.)),(totalSize/pow(1024.,2.))];
}else{
ret=[NSStringstringWithFormat:AILocalizedString(@"%.2f MB of %@","file size measured in megabytes out of some other measurement"),(inSize/pow(1024.,2.)),totalSizeString];
ret=[NSStringstringWithFormat:AILocalizedString(@"%.3f of %.3f GB","file sizes both measured in gigabytes"),(inSize/pow(1024.,3.)),(totalSize/pow(1024.,3.))];
}else{
ret=[NSStringstringWithFormat:AILocalizedString(@"%.3f GB of %@","file size measured in gigabytes out of some other measurement"),(inSize/pow(1024.,3.)),totalSizeString];
}
}
elseif(inSize>=pow(1024.,4.)){
if(totalSize>=pow(1024.,4.)){
ret=[NSStringstringWithFormat:AILocalizedString(@"%.4f of %.4f TB","file sizes both measured in terabytes"),(inSize/pow(1024.,4.)),(totalSize/pow(1024.,4.))];
}else{
ret=[NSStringstringWithFormat:AILocalizedString(@"%.4f TB of %@","file size measured in terabytes out of some other measurement"),(inSize/pow(1024.,4.)),totalSizeString];