[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/runtime/kioslave/trash
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2009-02-13 23:20:23
Message-ID: 1234567223.273259.19390.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 925714 by sreich:

Made ::percentChanged() translate the unit size (kbytes, bytes, mbytes, etc.) \
properly. It was using QString::number(). This was bad for translations.

 M  +4 -1      kcmtrash.cpp  


--- trunk/KDE/kdebase/runtime/kioslave/trash/kcmtrash.cpp #925713:925714
@@ -134,7 +134,10 @@
         size = size/1024.0;
     }
 
-    mSizeLabel->setText( i18n( "(%1 %2)", QString::number( size, 'f', 2 ), unit ) );
+    mSizeLabel->setText( 
+    ki18nc( "%1 is amount of disk space, %2 the unit, KBytes, MBytes, GBytes, \
TBytes, etc.", "(%1 %2)" ) +    .subs( size, -1, 'f', 2 ).subs( unit ).toString() 
+    );
 }
 
 void TrashConfigModule::trashChanged( QListWidgetItem *item )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic