┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-02-11 20:23:50 +0000
committerPeter Penz <[email protected]>2007-02-11 20:23:50 +0000
commit814a7c7f77f4470e3250d09397832f4f512b8e02 (patch)
tree96d554d9d7712efb603089c04fc866eb92103f8b /src/dolphinview.cpp
parentdc3e19744dedef4b185eb0becb00a28c74381c4c (diff)
fixed i18n issue when showing how many files are selected
svn path=/trunk/playground/utils/dolphin/; revision=632641
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index eddd220d3..4d830e2c7 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -789,8 +789,8 @@ QString DolphinView::selectionStatusBarText() const
QString text;
const KFileItemList list = selectedItems();
if (list.isEmpty()) {
- // TODO: assert(!list.isEmpty()) should be used, as this method is only invoked if
- // DolphinView::hasSelection() is true. Inconsistent behavior?
+ // when an item is triggered, it is temporary selected but selectedItems()
+ // will return an empty list
return QString();
}
@@ -815,7 +815,7 @@ QString DolphinView::selectionStatusBarText() const
text = i18n("1 Folder selected");
}
else if (folderCount > 1) {
- text = i18n("%1 Folders selected",folderCount);
+ text = i18n("%1 Folders selected", folderCount);
}
if ((fileCount > 0) && (folderCount > 0)) {
@@ -824,10 +824,10 @@ QString DolphinView::selectionStatusBarText() const
const QString sizeText(KIO::convertSize(byteSize));
if (fileCount == 1) {
- text += i18n("1 File selected (%1)",sizeText);
+ text += i18n("1 File selected (%1)", sizeText);
}
else if (fileCount > 1) {
- text += i18n("%1 Files selected (%1)",fileCount,sizeText);
+ text += i18n("%1 Files selected (%2)", fileCount, sizeText);
}
return text;