Skip to content

Commit 2228c4c

Browse files
Merge pull request #62 from ysoxima/development
fix: add a11y text in alt-tag
2 parents 4108c1a + 65acaba commit 2228c4c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Resources/Private/Frontend/Partials/Captcha.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
66
<div class="captcha">
77
<img src="{f:uri.page(pageType:3413)}"
8-
alt="Captcha image"
8+
alt="{f:translate(extensionName:'bw_captcha',key:'partial.image.alt')}"
99
aria-live="polite"
1010
loading="lazy"
1111
onload="this.parentElement.classList.remove('captcha--reloading'); return false;"/>

Resources/Private/Language/de.locallang.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<source>Read</source>
2929
<target>Vorlesen</target>
3030
</trans-unit>
31+
<trans-unit id="partial.image.alt">
32+
<source>Enter the character string shown in the picture</source>
33+
<target>Geben sie die im Bild dargestellte Zeichenfolge ein</target>
34+
</trans-unit>
3135
</body>
3236
</file>
3337
</xliff>

Resources/Private/Language/locallang.xlf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<trans-unit id="partial.audio.label">
2323
<source>Read</source>
2424
</trans-unit>
25+
<trans-unit id="partial.image.alt">
26+
<source>Enter the character string shown in the picture</source>
27+
</trans-unit>
2528
</body>
2629
</file>
2730
</xliff>

0 commit comments

Comments
 (0)