From 17cd8e717d853946813deda9cb160832b445dfdd Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 18 May 2010 20:03:06 +0000 Subject: Change filesize units to base 2 rather than base 10. Fixes issue #690. Patch provided by Max Lohrmann, thanks Max!. --- Source/SPAppController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/SPAppController.m') diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 69fcca80..b80e0680 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -224,8 +224,8 @@ [alert addButtonWithTitle:NSLocalizedString(@"Import", @"import button")]; - [alert setInformativeText:[NSString stringWithFormat:NSLocalizedString(@"Do you really want to load a SQL file with %.1f MB of data into the Query Editor?", @"message of panel asking for confirmation for loading large text into the query editor"), - [filesize unsignedLongValue]/1048576.0]]; + [alert setInformativeText:[NSString stringWithFormat:NSLocalizedString(@"Do you really want to load a SQL file with %@ of data into the Query Editor?", @"message of panel asking for confirmation for loading large text into the query editor"), + [NSString stringForByteSize:[filesize longLongValue]]]]; [alert setHelpAnchor:filename]; [alert setMessageText:NSLocalizedString(@"Warning",@"warning")]; [alert setAlertStyle:NSWarningAlertStyle]; -- cgit v1.2.3