Problem/Motivation
There is an invalid HTML in the image captcha preview:
ImageCaptchaSettingsForm.php, line 378
$available_fonts['BUILTIN'] = $this->t('PHP built-in font: <img src="@font_preview_url" alt="@title" title="@title"', [
'@font_preview_url' => Url::fromRoute('image_captcha.font_preview', ['token' => 'BUILTIN'])
->toString(),
'@title' => $title,
])->__toString();
This translatable string is missing the closing > . While most browsers will fix this by themselves, it still is invalid code and it causes errors in UI translation, when a foreign language tries to import a PO translation file of that invalid string.
Comments
Comment #2
hudriComment #3
victoria-marina commentedI'll work on this.
Comment #4
victoria-marina commentedHere is a patch. Hope it fits!
Comment #5
Guilherme Rabelo commentedI will review this.
Comment #6
Guilherme Rabelo commentedThe patch in comment #4 fixed the issue and everything seems to work weel.
Moving to RTBC!
Comment #8
japerry