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
v3.5.13-sru
tpearson 14 years ago
parent c56f5e6200
commit 5635dd3230

@ -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) {

Loading…
Cancel
Save