[wp-trac] [WordPress Trac] #63620: Remove translator comments when hidden text matches visible text
WordPress Trac
noreply at wordpress.org
Tue Jul 29 15:20:53 UTC 2025
#63620: Remove translator comments when hidden text matches visible text
-------------------------------------------------+-------------------------
Reporter: sabernhardt | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: I18N | Version: 6.2
Severity: normal | Resolution:
Keywords: has-patch changes-requested 2nd- | Focuses:
opinion | accessibility
-------------------------------------------------+-------------------------
Comment (by joedolson):
@swissspidy I'm not referring to complicating translations; I mean
complicating the codebase and maintenance of duplicate strings.
The purpose of the screen reader hidden text in a legend is to provide
grouping context for grouped controls. This text should match the visual
text. This is all a hack for the fact that the Settings API is inadequate
for accessibility.
Screen reader users should get the same group name that sighted users get,
so in every case where it doesn't match, I would consider that an error.
There is no reason to know it's screen reader text if it's always going to
match the visible text, and if these were assigned to a variable then we'd
be more sure that future edits to the text are consistent between both
uses.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63620#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list