summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-07 15:15:54 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-05-07 15:15:54 +0000
commit5635dd32308038cc5116b5e0d29a225ed61981f6 (patch)
treeca98ad0eb6e820c15c53574727cc3f81894fbe2d
parentc56f5e62006517f8a710e72fc09b4cd8b6370f8a (diff)
downloadknetload-5635dd32308038cc5116b5e0d29a225ed61981f6.tar.gz
knetload-5635dd32308038cc5116b5e0d29a225ed61981f6.zip
Added localization support to popup display
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knetload@1124041 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--knetload/knetload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/knetload/knetload.cpp b/knetload/knetload.cpp
index f92aac9..84f2627 100644
--- a/knetload/knetload.cpp
+++ b/knetload/knetload.cpp
@@ -328,8 +328,8 @@ void KNetLoad::takeReadingInternal() {
fullReading = i18n(
"Current In: %1 KBit/s, Total In: %2 MB.\n"
"Current Out: %3 KBit/s, Total Out: %4 MB.")
- .arg((int)((bitRateIn + 50) / 100) / 10.0).arg(proc->totalMbIn())
- .arg((int)((bitRateOut + 50) / 100) / 10.0).arg(proc->totalMbOut());
+ .arg(KGlobal::locale()->formatNumber((int)((bitRateIn + 50) / 100) / 10.0)).arg(KGlobal::locale()->formatNumber(proc->totalMbIn()))
+ .arg(KGlobal::locale()->formatNumber((int)((bitRateOut + 50) / 100) / 10.0)).arg(KGlobal::locale()->formatNumber(proc->totalMbOut()));
}
void KNetLoad::updateDeviceMenu(KPopupMenu* menu) {