aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/thread/KeyServerImportTask.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-16 13:35:59 +0000
committersaturneric <[email protected]>2024-01-16 13:35:59 +0000
commit620ae9e7c1a8b2db2515c080416cb592066e5fec (patch)
tree900f3e55118aa2a5049d99dd743d3e595016fc7b /src/ui/thread/KeyServerImportTask.cpp
parentfix: make task and threading system safer (diff)
downloadGpgFrontend-620ae9e7c1a8b2db2515c080416cb592066e5fec.tar.gz
GpgFrontend-620ae9e7c1a8b2db2515c080416cb592066e5fec.zip
refactor: remove libgettext from project
Diffstat (limited to 'src/ui/thread/KeyServerImportTask.cpp')
-rw-r--r--src/ui/thread/KeyServerImportTask.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ui/thread/KeyServerImportTask.cpp b/src/ui/thread/KeyServerImportTask.cpp
index 89f0f45a..63cabbcd 100644
--- a/src/ui/thread/KeyServerImportTask.cpp
+++ b/src/ui/thread/KeyServerImportTask.cpp
@@ -71,23 +71,22 @@ void GpgFrontend::UI::KeyServerImportTask::dealing_reply_from_server() {
QString err_msg;
switch (network_reply) {
case QNetworkReply::ContentNotFoundError:
- err_msg = QString(_("Key not found in the Keyserver."));
+ err_msg = tr("Key not found in the Keyserver.");
break;
case QNetworkReply::TimeoutError:
- err_msg = QString(_("Network connection timeout."));
+ err_msg = tr("Network connection timeout.");
break;
case QNetworkReply::HostNotFoundError:
- err_msg =
- QString(_("Cannot resolve the address of target key server."));
+ err_msg = tr("Cannot resolve the address of target key server.");
break;
default:
- err_msg = QString(_("General connection error occurred."));
+ err_msg = tr("General connection error occurred.");
}
emit SignalKeyServerImportResult(false, err_msg, buffer, nullptr);
}
auto info = GpgKeyImportExporter::GetInstance().ImportKey(GFBuffer(buffer));
- emit SignalKeyServerImportResult(true, _("Success"), buffer, info);
+ emit SignalKeyServerImportResult(true, tr("Success"), buffer, info);
if (static_cast<size_t>(result_count_++) == keyids_.size() - 1) {
emit SignalTaskShouldEnd(0);