Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9e9e7853 authored by Laurent Montel's avatar Laurent Montel 😁

Make sure to translate it and avoid that translator breaks filters as I saw for kmail

parent 53c47d2d
......@@ -127,7 +127,7 @@ void GenRevokeCommand::doStart()
while (mOutputFileName.isEmpty()) {
mOutputFileName = QFileDialog::getSaveFileName(d->parentWidgetOrView(), i18n("Generate revocation certificate"),
QString(),
QStringLiteral("Revocation Certificates (*.rev)"));
QStringLiteral("%1 (*.rev)").arg(i18n("Revocation Certificates ")));
if (mOutputFileName.isEmpty()) {
d->finished();
return;
......
......@@ -72,7 +72,7 @@ private:
{
// loadcrl can only work with DER encoded files
// (verified with dirmngr 1.0.3)
const QString filter = i18n("Certificate Revocation Lists, DER encoded (*.crl *.arl *-crl.der *-arl.der)");
const QString filter = QStringLiteral("%1 (*.crl *.arl *-crl.der *-arl.der)").arg(i18n("Certificate Revocation Lists, DER encoded"));
return QFileDialog::getOpenFileNames(parentWidgetOrView(), i18n("Select CRL File to Import"),
QString(), filter);
}
......
......@@ -187,7 +187,7 @@ void ImportPaperKeyCommand::doStart()
mFileName = QFileDialog::getOpenFileName(d->parentWidgetOrView(), i18n("Select input file"),
QString(),
i18n("Paper backup (*.txt)")
QStringLiteral("%1 (*.txt)").arg(i18n("Paper backup"))
#ifdef Q_OS_WIN
/* For whatever reason at least with Qt 5.6.1 the native file dialog crashes in
* my (aheinecke) Windows 10 environment when invoked here.
......
......@@ -280,7 +280,7 @@ void PGPCardWidget::genKeyDone(const GpgME::Error &err, const std::string &backu
QFileInfo fi(bkpFile);
const auto target = QFileDialog::getSaveFileName(this, i18n("Save backup of encryption key"),
fi.fileName(),
QStringLiteral("Backup Key (*.gpg)"));
QStringLiteral("%1 (*.gpg)").arg(i18n("Backup Key")));
if (!target.isEmpty() && !QFile::copy(bkpFile, target)) {
KMessageBox::error(this, i18nc("@info",
"Failed to move backup. The backup key is still stored under: %1", bkpFile),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment