[wp-trac] [WordPress Trac] #55718: Make sure the aria-label for the "Logged in as" link in comment form is containing the same string as the visible text
WordPress Trac
noreply at wordpress.org
Thu May 12 15:53:11 UTC 2022
#55718: Make sure the aria-label for the "Logged in as" link in comment form is
containing the same string as the visible text
---------------------------+-----------------------------
Reporter: juliemoynat | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 5.9.3
Severity: normal | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
Hi,
In the comment template, for the "Logged in as" link, there is an
accessibility problem for speech-input users (WCAG failure to
[https://www.w3.org/WAI/WCAG21/Understanding/label-in-name.html "Label in
name"] criterion).
Actually, in English, we have two strings:
- Logged in as %s. Edit your profile.
- {{{<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a
href="%4$s">Log out?</a>}}}
But, in the French translation (and I think the error may be present in
other translations too), we have this:
{{{
<a href="/wp-admin/profile.php" aria-label="Connexion en tant que pseudo.
Modifier votre profil.">Connecté en tant que pseudo</a>
}}}
The aria-label is different from the visible text and is using different
translations for "Logged in" ("Connexion" and "Connecté") while it
**must** be the same.
I think it's not really a translation problem. I think that, by
development, we should take the visible text string and put it into the
aria-label string to translate it only once and prevent errors.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55718>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list