diff options
author | saturneric <[email protected]> | 2024-01-16 13:35:59 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-16 13:35:59 +0000 |
commit | 620ae9e7c1a8b2db2515c080416cb592066e5fec (patch) | |
tree | 900f3e55118aa2a5049d99dd743d3e595016fc7b /src/ui/thread/KeyServerImportTask.cpp | |
parent | fix: make task and threading system safer (diff) | |
download | GpgFrontend-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.cpp | 11 |
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); |