Skip to content

Commit 212fb14

Browse files
committed
[TASK] Modify translate function call arguments
1 parent 044d249 commit 212fb14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Validation/RecaptchaValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function isValid(mixed $value): void
3434
{
3535
$status = $this->captchaService->validateReCaptcha((string)$value);
3636
if ($status['error'] !== '') {
37-
$errorText = LocalizationUtility::translate('recaptcha.messages:error_recaptcha_' . $status['error']);
37+
$errorText = LocalizationUtility::translate('error_recaptcha_' . $status['error'], 'recaptcha');
3838

3939
if (empty($errorText)) {
4040
$errorText = htmlspecialchars($status['error']);

0 commit comments

Comments
 (0)