Skip to content

Commit 149b01a

Browse files
docs: add TRANSLATORS comments for CRL validation error messages
- Document context for i18n translators on each CRL status error message - Clarify technical meaning: inaccessible URLs, validation errors, missing CRL - Helps translators understand certificate revocation domain terminology Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 49c510c commit 149b01a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/Service/IdentifyMethod/SignatureMethod/Password.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,15 @@ private function logRevocationBlockedSigning(CrlValidationStatus $status): void
7272

7373
private function getRevocationErrorMessage(CrlValidationStatus $status): string {
7474
return match ($status) {
75+
// TRANSLATORS Error when the CRL distribution points (URLs) cannot be reached to check if certificate is revoked
7576
CrlValidationStatus::URLS_INACCESSIBLE => $this->identifyService->getL10n()->t('Cannot reach the certificate revocation service. Signing is not allowed.'),
77+
// TRANSLATORS Error when an error occurs during certificate revocation status validation
7678
CrlValidationStatus::VALIDATION_ERROR => $this->identifyService->getL10n()->t('An error occurred during certificate validation. Signing is not allowed.'),
79+
// TRANSLATORS Error when certificate validation completed but could not determine if certificate is revoked
7780
CrlValidationStatus::VALIDATION_FAILED => $this->identifyService->getL10n()->t('Certificate validation failed. Signing is not allowed. Contact your administrator.'),
81+
// TRANSLATORS Error when certificate has no CRL distribution points (URLs to check revocation)
7882
CrlValidationStatus::NO_URLS => $this->identifyService->getL10n()->t('This certificate has no revocation URLs. Signing is not allowed. Contact your administrator.'),
83+
// TRANSLATORS Error when certificate has no revocation information configured
7984
CrlValidationStatus::MISSING => $this->identifyService->getL10n()->t('This certificate has no revocation information. Signing is not allowed. Contact your administrator.'),
8085
default => $this->identifyService->getL10n()->t('Certificate validation could not be completed. Signing is not allowed.'),
8186
};

0 commit comments

Comments
 (0)