From: rakekniven <2069590+rakekniven@users.noreply.github.com> Date: Mon, 20 Sep 2021 09:39:51 +0000 (+0200) Subject: Fixed placeholder numbering X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~18^2~219^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=af49a7993a159a7bf0cbbe4aace0e249875ad5a6;p=nextcloud-desktop.git Fixed placeholder numbering Fix for #3812 Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> --- diff --git a/src/common/filesystembase.cpp b/src/common/filesystembase.cpp index 57e67ffcd..3f54a6880 100644 --- a/src/common/filesystembase.cpp +++ b/src/common/filesystembase.cpp @@ -395,13 +395,13 @@ bool FileSystem::moveToTrash(const QString &fileName, QString *errorString) suffix_number++; } if (!file.rename(f.absoluteFilePath(), path + QString::number(suffix_number))) { // rename(file old path, file trash path) - *errorString = QCoreApplication::translate("FileSystem", R"(Could not move "%1" to "%1")") + *errorString = QCoreApplication::translate("FileSystem", R"(Could not move "%1" to "%2")") .arg(f.absoluteFilePath(), path + QString::number(suffix_number)); return false; } } else { if (!file.rename(f.absoluteFilePath(), trashFilePath + f.fileName())) { // rename(file old path, file trash path) - *errorString = QCoreApplication::translate("FileSystem", R"(Could not move "%1" to "%1")") + *errorString = QCoreApplication::translate("FileSystem", R"(Could not move "%1" to "%2")") .arg(f.absoluteFilePath(), trashFilePath + f.fileName()); return false; }