From 1ae8663decb3163b92d32b80cefb46eb678a5af6 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Thu, 2 Dec 2021 01:25:46 +0800 Subject: Add i18n Support 1. Remove Qt Linguist. 2. Add GNU gettext libraries. 3. Modified source codes to meet with i18n support. --- src/ui/KeyUploadDialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ui/KeyUploadDialog.cpp') diff --git a/src/ui/KeyUploadDialog.cpp b/src/ui/KeyUploadDialog.cpp index da905e8e..e8c37c5b 100644 --- a/src/ui/KeyUploadDialog.cpp +++ b/src/ui/KeyUploadDialog.cpp @@ -1,7 +1,7 @@ /** - * This file is part of GPGFrontend. + * This file is part of GpgFrontend. * - * GPGFrontend is free software: you can redistribute it and/or modify + * GpgFrontend is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. @@ -50,7 +50,7 @@ KeyUploadDialog::KeyUploadDialog(const KeyIdArgsListPtr& keys_ids, this->setLayout(layout); this->setModal(true); - this->setWindowTitle(tr("Uploading Public Key")); + this->setWindowTitle(_("Uploading Public Key")); this->setFixedSize(240, 42); } @@ -116,16 +116,16 @@ void KeyUploadDialog::slotUploadFinished() { QString message; switch (error) { case QNetworkReply::ContentNotFoundError: - message = tr("Key Not Found"); + message = _("Key Not Found"); break; case QNetworkReply::TimeoutError: - message = tr("Timeout"); + message = _("Timeout"); break; case QNetworkReply::HostNotFoundError: - message = tr("Key Server Not Found"); + message = _("Key Server Not Found"); break; default: - message = tr("Connection Error"); + message = _("Connection Error"); } QMessageBox::critical(this, "Upload Failed", message); return; -- cgit v1.2.3