-
- if (folderCount > 0) {
- text = hasSelection() ?
- i18ncp("@info:status", "1 Folder selected", "%1 Folders selected", folderCount) :
- i18ncp("@info:status", "1 Folder", "%1 Folders", folderCount);
- if (fileCount > 0) {
- text += i18nc("@info:status separator between 2 status infos", ", ");
- }
- }
-
- if (fileCount > 0) {
- const QString sizeText = KIO::convertSize(totalFileSize);
- text += hasSelection() ?
- i18ncp("@info:status", "1 File selected (%2)", "%1 Files selected (%2)", fileCount, sizeText) :
- i18ncp("@info:status", "1 File (%2)", "%1 Files (%2)", fileCount, sizeText);
- }