]> cloud.milkyroute.net Git - dolphin.git/commitdiff
use KIO::itemsSummaryString() instead of reinventing the wheel
authorPeter Penz <peter.penz19@gmail.com>
Mon, 12 Feb 2007 15:32:28 +0000 (15:32 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Mon, 12 Feb 2007 15:32:28 +0000 (15:32 +0000)
svn path=/trunk/playground/utils/dolphin/; revision=632870

src/dolphinview.cpp

index 00c97477b963009b75a3a5e578a8fe5a7e4d1f71..9a516af2d1428574f94d9010bcb57434fa363a68 100644 (file)
@@ -747,16 +747,10 @@ void DolphinView::startDirLister(const KUrl& url, bool reload)
 
 QString DolphinView::defaultStatusBarText() const
 {
-    const int itemCount = m_folderCount + m_fileCount;
-
-    QString text = i18np("1 Item", "%n Items", itemCount);
-    text += " (";
-    text += i18np("1 Folder", "%n Folders", m_folderCount);
-    text += ", ";
-    text += i18np("1 File", "%n Files", m_fileCount);
-    text += ")";
-
-    return text;
+    return KIO::itemsSummaryString(m_fileCount + m_folderCount,
+                                   m_fileCount,
+                                   m_folderCount,
+                                   0, false);
 }
 
 QString DolphinView::selectionStatusBarText() const