Fixed placeholder numbering
authorrakekniven <2069590+rakekniven@users.noreply.github.com>
Mon, 20 Sep 2021 09:39:51 +0000 (11:39 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Sep 2021 09:39:51 +0000 (11:39 +0200)
Fix for #3812

Reported at Transifex.

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
src/common/filesystembase.cpp

index 57e67ffcd1f81ea93619310b4af6e41e2b963580..3f54a6880df61b2cfe77f5b05f3c2f59c3cce418 100644 (file)
@@ -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;
         }