[pim/libkleo] /: Improve wording of a new message
Ingo Klöcker <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 552d5414042f13719fead553c200f0d480845639 by Ingo Klöcker, on behalf of Ingo Klöcker.
Committed on 03/08/2026 at 08:39.
Pushed by kloecker into branch 'master'.
Improve wording of a new message
GnuPG-bug-id: 7786
M +1 -1 autotests/formattingtest.cpp
M +2 -1 src/utils/formatting.cpp
https://invent.kde.org/pim/libkleo/-/commit/552d5414042f13719fead553c200f0d480845639
diff --git a/autotests/formattingtest.cpp b/autotests/formattingtest.cpp
index 2c8d5e4f..9d3d3636 100644
--- a/autotests/formattingtest.cpp
+++ b/autotests/formattingtest.cpp
@@ -465,7 +465,7 @@ private Q_SLOTS:
QTest::newRow("signature-bad")
<< Signature::Summary::Red << GPG_ERR_BAD_SIGNATURE << Signature::Validity::Unknown
<< u"The data cannot be trusted. Reason: Data and signature do not match.<br/>"
- "The signature claims to be from <a href=\"key:117C22E18017CB18A67FC3D699954415471E4A5F\">Second UID <[email protected]> (DATE)</a> and dated DATETIME."_s;
+ "The signature claims to be from <a href=\"key:117C22E18017CB18A67FC3D699954415471E4A5F\">Second UID <[email protected]> (DATE)</a> and is dated DATETIME."_s;
} else
#endif
{
diff --git a/src/utils/formatting.cpp b/src/utils/formatting.cpp
index 0af5fa20..dc6b191c 100644
--- a/src/utils/formatting.cpp
+++ b/src/utils/formatting.cpp
@@ -1807,7 +1807,8 @@ QString Kleo::Formatting::prettyDataSignature(const GpgME::Signature &sig, const
: i18nc("@info", "The signing certificate must not be trusted."); // happens with TOFU trust model and with failed S/MIME certificate chain auditing
QString text = i18nc("@info", "The data cannot be trusted. Reason: %1", reason) + "<br/>"_L1;
if (sigCreationTime.isValid()) {
- text += i18nc("@info", "The signature claims to be from %1 and dated %2.", renderKeyV2(key, userID), renderSignatureCreationTime(sigCreationTime));
+ text +=
+ i18nc("@info", "The signature claims to be from %1 and is dated %2.", renderKeyV2(key, userID), renderSignatureCreationTime(sigCreationTime));
} else {
text += i18nc("@info", "The signature claims to be from %1.", renderKeyV2(key, userID));
}