Mark user strings for translation
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 30 Jun 2020 09:05:12 +0000 (11:05 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 30 Jun 2020 09:29:08 +0000 (11:29 +0200)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/accountsettings.cpp

index 59452288529e3877a5d5e5862d8da34264b8bb9d..9a6cb511e2fcb0a55bdcb8cdef0fa1eaccd59bb2 100644 (file)
@@ -229,7 +229,7 @@ void AccountSettings::slotEncryptFolderFinished(int status)
     auto job = qobject_cast<EncryptFolderJob*>(sender());
     Q_ASSERT(job);
     if (!job->errorString().isEmpty()) {
-        QMessageBox::warning(nullptr, "Warning", job->errorString());
+        QMessageBox::warning(nullptr, tr("Warning"), job->errorString());
     }
     job->deleteLater();
 }
@@ -286,8 +286,8 @@ bool AccountSettings::canEncryptOrDecrypt (const FolderStatusModel::SubFolderInf
 
     if (folderPath.count() != 0) {
         QMessageBox msgBox;
-        msgBox.setText("You cannot encrypt a folder with contents, please remove the files \n"
-                       "Wait for the new sync, then encrypt it.");
+        msgBox.setText(tr("You cannot encrypt a folder with contents, please remove the files \n"
+                       "Wait for the new sync, then encrypt it."));
         msgBox.exec();
         return false;
     }