Commit 5c23b609 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Make creation date and expiration date easier to understand

Pass strings more suitable for screen readers to the date fields.

GnuPG-bug-id: 5843
parent db2ed3c9
......@@ -34,7 +34,7 @@ set(KF5_MIN_VERSION "5.95.0")
set(KIDENTITYMANAGEMENT_VERSION "5.20.40")
set(KMAILTRANSPORT_VERSION "5.20.40")
set(KMIME_VERSION "5.20.40")
set(LIBKLEO_VERSION "5.20.45")
set(LIBKLEO_VERSION "5.20.46")
set(QT_REQUIRED_VERSION "5.15.2")
set(GPGME_REQUIRED_VERSION "1.16.0")
......
......@@ -454,9 +454,9 @@ void CertificateDetailsWidget::Private::setupCommonProperties()
ui.addUserIDBtn->setVisible(hasSecret && isOpenPGP);
ui.webOfTrustBtn->setVisible(isOpenPGP);
ui.validFromField->setValue(Kleo::Formatting::creationDateString(key));
const QString expiry = Kleo::Formatting::expirationDateString(key);
ui.expiresField->setValue(expiry.isEmpty() ? i18nc("Expires", "never") : expiry);
ui.validFromField->setValue(Formatting::creationDateString(key), Formatting::accessibleCreationDate(key));
ui.expiresField->setValue(Formatting::expirationDateString(key, i18nc("Expires", "never")),
Formatting::accessibleExpirationDate(key, i18nc("Expires", "never")));
ui.typeField->setValue(Kleo::Formatting::type(key));
ui.fingerprintField->setValue(Formatting::prettyID(key.primaryFingerprint()));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment