Commit 1abf7a15 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Improve job description when processing a single file

Don't require having a file name, instead using "1 file" as a placeholder.
parent 0b6197d2
......@@ -165,12 +165,19 @@ QString JobPrivate::text() const
} else if (m_processedFiles > 0) {
return i18ncp("Copying n files", "%1 file", "%1 files", m_processedFiles);
}
} else if (m_totalFiles == 1 && !currentFileName.isEmpty()) {
} else if (m_totalFiles == 1) {
if (!destUrlString.isEmpty()) {
if (!currentFileName.isEmpty()) {
return i18nc("Copying file to location", "%1 to %2", currentFileName, destUrlString);
} else {
return i18ncp("Copying n files to location", "%1 file to %2", "%1 files to %2",
m_totalFiles, destUrlString);
}
} else if (!currentFileName.isEmpty()) {
return currentFileName;
} else {
return i18ncp("Copying n files", "%1 file", "%1 files", m_totalFiles);
}
} else if (m_totalFiles > 1) {
if (!destUrlString.isEmpty()) {
if (m_processedFiles > 0 && m_processedFiles <= m_totalFiles) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment