Changeset View
Changeset View
Standalone View
Standalone View
libnotificationmanager/job_p.cpp
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 163 | if (!destUrlString.isEmpty()) { | |||
---|---|---|---|---|---|
164 | if (m_processedFiles > 0) { | 164 | if (m_processedFiles > 0) { | ||
165 | return i18ncp("Copying n files to location", "%1 file to %2", "%1 files to %2", | 165 | return i18ncp("Copying n files to location", "%1 file to %2", "%1 files to %2", | ||
166 | m_processedFiles, destUrlString); | 166 | m_processedFiles, destUrlString); | ||
167 | } | 167 | } | ||
168 | return i18nc("Copying unknown amount of files to location", "to %1", destUrlString); | 168 | return i18nc("Copying unknown amount of files to location", "to %1", destUrlString); | ||
169 | } else if (m_processedFiles > 0) { | 169 | } else if (m_processedFiles > 0) { | ||
170 | return i18ncp("Copying n files", "%1 file", "%1 files", m_processedFiles); | 170 | return i18ncp("Copying n files", "%1 file", "%1 files", m_processedFiles); | ||
171 | } | 171 | } | ||
172 | } else if (m_totalFiles == 1 && !currentFileName.isEmpty()) { | 172 | } else if (m_totalFiles == 1) { | ||
173 | if (!destUrlString.isEmpty()) { | 173 | if (!destUrlString.isEmpty()) { | ||
174 | return i18nc("Copying file to location", "%1 to %2", currentFileName, destUrlString); | 174 | if (!currentFileName.isEmpty()) { | ||
175 | return i18nc("Copying single file to location", "%1 to %2", currentFileName, destUrlString); | ||||
175 | } | 176 | } | ||
176 | 177 | return i18nc("Copying single file to location", "to %1", destUrlString); | |||
178 | } else if (!currentFileName.isEmpty()) { | ||||
177 | return currentFileName; | 179 | return currentFileName; | ||
180 | } | ||||
178 | } else if (m_totalFiles > 1) { | 181 | } else if (m_totalFiles > 1) { | ||
179 | if (!destUrlString.isEmpty()) { | 182 | if (!destUrlString.isEmpty()) { | ||
180 | if (m_processedFiles > 0 && m_processedFiles <= m_totalFiles) { | 183 | if (m_processedFiles > 0 && m_processedFiles <= m_totalFiles) { | ||
181 | return i18ncp("Copying n of m files to locaton", "%2 of %1 file to %3", "%2 of %1 files to %3", | 184 | return i18ncp("Copying n of m files to locaton", "%2 of %1 file to %3", "%2 of %1 files to %3", | ||
182 | m_totalFiles, m_processedFiles, destUrlString); | 185 | m_totalFiles, m_processedFiles, destUrlString); | ||
183 | } | 186 | } | ||
184 | return i18ncp("Copying n files to location", "%1 file to %2", "%1 files to %2", | 187 | return i18ncp("Copying n files to location", "%1 file to %2", "%1 files to %2", | ||
185 | m_processedFiles > 0 ? m_processedFiles : m_totalFiles, destUrlString); | 188 | m_processedFiles > 0 ? m_processedFiles : m_totalFiles, destUrlString); | ||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |