From b18f63a1463172fbbcc42ed0219fcb8307be5d33 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Tue, 20 Jul 2021 03:05:27 +0800 Subject: Add simplified Chinese translation. Repair and adjustment. --- src/ui/KeyServerImportDialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ui/KeyServerImportDialog.cpp') diff --git a/src/ui/KeyServerImportDialog.cpp b/src/ui/KeyServerImportDialog.cpp index ec740691..a1355120 100644 --- a/src/ui/KeyServerImportDialog.cpp +++ b/src/ui/KeyServerImportDialog.cpp @@ -176,7 +176,7 @@ void KeyServerImportDialog::setMessage(const QString &text, bool error) { void KeyServerImportDialog::slotSearch() { if (searchLineEdit->text().isEmpty()) { - setMessage(tr("

Text is empty.

"), false); + setMessage("

" + tr("Text is empty.") + "

", false); return; } @@ -227,23 +227,23 @@ void KeyServerImportDialog::slotSearchFinished() { if (firstLine.contains("Error")) { QString text = QString(reply->readLine(1024)); if (text.contains("Too many responses")) { - setMessage(tr("

CToo many responses from keyserver!

"), true); + setMessage("

" +tr("Too many responses from keyserver!") + "

", true); return; } else if (text.contains("No keys found")) { // if string looks like hex string, search again with 0x prepended QRegExp rx("[0-9A-Fa-f]*"); QString query = searchLineEdit->text(); if (rx.exactMatch(query)) { - setMessage(tr("

No keys found, input may be kexId, retrying search with 0x.

"), true); + setMessage("

" + tr("No keys found, input may be kexId, retrying search with 0x.") + "

", true); searchLineEdit->setText(query.prepend("0x")); this->slotSearch(); return; } else { - setMessage(tr("

No keys found containing the search string!

"), true); + setMessage("

" +tr("No keys found containing the search string!") + "

", true); return; } } else if (text.contains("Insufficiently specific words")) { - setMessage(tr("

Insufficiently specific search string!

"), true); + setMessage("

" + tr("Insufficiently specific search string!") + "

", true); return; } else { setMessage(text, true); -- cgit v1.2.3