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();
}
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;
}