[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/dolphin/src
From: Peter Penz <peter.penz () gmx ! at>
Date: 2007-02-11 20:23:51
Message-ID: 1171225431.706952.3381.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 632641 by ppenz:
fixed i18n issue when showing how many files are selected
M +5 -5 dolphinview.cpp
--- trunk/playground/utils/dolphin/src/dolphinview.cpp #632640:632641
@@ -789,8 +789,8 @@
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 @@
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 @@
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic