Commit ad4e7c75 authored by Allen Winter's avatar Allen Winter

fix some i18n problems

parent e47b5c83
......@@ -151,7 +151,7 @@ private:
}
}
if (!cardFound) {
error(i18n("Failed to find the card with the serial number: %1").arg(mSerial.c_str()));
error(i18n("Failed to find the card with the serial number: %1", mSerial.c_str()));
finished();
return;
}
......
......@@ -686,8 +686,7 @@ void Command::Private::run()
Q_FOREACH (const QString &sender, in.senders)
if ((err = send_sender(ctx, sender, in.areSendersInformative))) {
out.errorString = i18n("Failed to send sender %1: %2")
.arg(sender, to_error_string(err));
out.errorString = i18n("Failed to send sender %1: %2", sender, to_error_string(err));
goto leave;
}
......
......@@ -249,14 +249,14 @@ void CertificateRequester::Private::slotButtonClicked()
void CertificateRequester::Private::slotCommandFinished()
{
if (command->wasCanceled())
if (command->wasCanceled()) {
/* do nothing */;
else if (command->error())
} else if (command->error()) {
QMessageBox::information(q,
i18n("Kleopatra Error"),
i18n("There was an error while connecting to Kleopatra: %1")
.arg(command->errorString()));
else {
i18n("There was an error while connecting to Kleopatra: %1",
command->errorString()));
} else {
q->setSelectedCertificates(command->selectedCertificates());
}
ui.button.setEnabled(true);
......
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