From 526ce56f7e6ae3c8a2aa1c96f4e87af9eaa305e1 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 21 Jul 2011 11:42:25 +0200 Subject: Use KLocale::formatByteSize instead of a i18n call Pino suggested me it is better. And it seems so, Thanks :) CCBUG: 278170 --- src/protocolhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp index 4212955e..93f7bc37 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -311,7 +311,7 @@ QString ProtocolHandler::dirHandling(const KFileItemList &list) msg += ""; if(item.isFile()) { - msg += i18n("%1 KB", QString::number(item.size() / 1024) ); + msg += KGlobal::locale()->formatByteSize(item.size(), 1); } msg += ""; -- cgit v1.2.1