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

List:       kde-commits
Subject:    kdebase/kicker/applets/trash
From:       Eugene Onischenko <oneugene () ukr ! net>
Date:       2005-01-06 21:35:49
Message-ID: 20050106213549.4FCB61BBB7 () office ! kde ! org
[Download RAW message or body]

CVS commit by oneugene: 

handle plural via appropriate i18n() call


  M +1 -8      trashbutton.cpp   1.4


--- kdebase/kicker/applets/trash/trashbutton.cpp  #1.3:1.4
@@ -72,12 +72,5 @@ void TrashButton::setItemCount(int count
         {
                 setIcon( "trashcan_full" );
-                if (count>1)
-                {
-                        setTip(i18n("%1 items").arg(count));
-                }
-                else
-                {
-                        setTip(i18n("One item"));
-                }
+                setTip(i18n("One item", "%n items", count));
         }
 }


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

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