diff options
author | Saturneric <[email protected]> | 2021-12-01 17:25:46 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-01 17:53:09 +0000 |
commit | 1ae8663decb3163b92d32b80cefb46eb678a5af6 (patch) | |
tree | 8e8cb58cacfe12827438b0524917cb0926f926cb /src/gpg/result_analyse/EncryptResultAnalyse.cpp | |
parent | Add & Modified (diff) | |
download | GpgFrontend-1ae8663decb3163b92d32b80cefb46eb678a5af6.tar.gz GpgFrontend-1ae8663decb3163b92d32b80cefb46eb678a5af6.zip |
Add i18n Support
1. Remove Qt Linguist.
2. Add GNU gettext libraries.
3. Modified source codes to meet with i18n support.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/result_analyse/EncryptResultAnalyse.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gpg/result_analyse/EncryptResultAnalyse.cpp b/src/gpg/result_analyse/EncryptResultAnalyse.cpp index 6659f1df..df240a1d 100644 --- a/src/gpg/result_analyse/EncryptResultAnalyse.cpp +++ b/src/gpg/result_analyse/EncryptResultAnalyse.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. @@ -29,25 +29,26 @@ GpgFrontend::EncryptResultAnalyse::EncryptResultAnalyse(GpgError error, : error(error), result(std::move(result)) {} void GpgFrontend::EncryptResultAnalyse::do_analyse() { - LOG(INFO) << "Start Encrypt Result Analyse"; + LOG(INFO) << _("Start Encrypt Result Analyse"); - stream << "[#] Encrypt Operation "; + stream << "[#] " << _("Encrypt Operation") << " "; if (gpgme_err_code(error) == GPG_ERR_NO_ERROR) - stream << "[Success]" << std::endl; + stream << "[" << _("Success") << "]" << std::endl; else { - stream << "[Failed] " << gpgme_strerror(error) << std::endl; + stream << "[" << _("Failed") << "] " << gpgme_strerror(error) << std::endl; setStatus(-1); } if (!~status) { stream << "------------>" << std::endl; if (result != nullptr) { - stream << "Invalid Recipients: " << std::endl; + stream << _("Invalid Recipients") << ": " << std::endl; auto inv_reci = result->invalid_recipients; while (inv_reci != nullptr) { - stream << "Fingerprint: " << inv_reci->fpr << std::endl; - stream << "Reason: " << gpgme_strerror(inv_reci->reason) << std::endl; + stream << _("Fingerprint") << ": " << inv_reci->fpr << std::endl; + stream << _("Reason") << ": " << gpgme_strerror(inv_reci->reason) + << std::endl; stream << std::endl; inv_reci = inv_reci->next; |