#44955 closed enhancement (fixed)
Add lang attribute to readme.html
Reported by: | audrasjb | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Help/About | Keywords: | has-patch has-dev-note |
Focuses: | accessibility | Cc: |
Description
Consider to add lang
attribute to the <html>
tag in readme.html
. Indeed, this is useful for assistive technologies users. It helps to indicate the primary language of the document.
"Language of HTML documents is indicated using a lang attribute (on the HTML element itself), to indicate the primary language of the document, and on individual elements, to indicate a change in language. It provides an explicit indication to user agents about the language of content, so an appropriate language dictionary can be used and, in the case of screen readers and similar assistive technologies with voice output, the content is pronounced using the correct voice / language library."
Source: https://www.w3.org/TR/2017/REC-html51-20171003/dom.html#the-lang-and-xmllang-attributes
Attachments (1)
Change History (16)
This ticket was mentioned in Slack in #polyglots by johnbillion. View the logs.
6 years ago
#3
@
6 years ago
- Type changed from defect (bug) to enhancement
- Version trunk deleted
Locales support a custom (ie. translated) readme.html file via the dist
directory in i18n.svn.wordpress.org .
There's not much documentation for this apart from https://make.wordpress.org/polyglots/handbook/translating/packaging-localized-wordpress/automated-release-packages/, but this documentation at least will need to be updated to remind translators to change the lang
attribute too. There might be some docs elsewhere but I've yet to find it.
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
6 years ago
#5
@
6 years ago
- Milestone changed from Awaiting Review to 4.9.9
- Owner set to audrasjb
- Status changed from new to assigned
#9
@
6 years ago
- Milestone changed from 5.0.3 to 5.1
Hello,
5.0.3 is going to be released in a couple of weeks.
It doesn't appear this ticket can be handled in the next couple of weeks (see comment:3). Let's address it in 5.1 which is coming in February. Feel free to ask for changing the milestone if you think this issue can be quickly resolved.
Cheers,
Jb
#11
follow-up:
↓ 12
@
6 years ago
@audrasjb: Could you please check in with the polyglots team, and see what needs to be done to ensure localised packages are aware of this change?
This ticket was mentioned in Slack in #polyglots by audrasjb. View the logs.
6 years ago
#15
@
6 years ago
- Keywords has-dev-note added; needs-dev-note removed
Polyglots dev note has been published: https://make.wordpress.org/polyglots/2019/01/23/wordpress-5-1-string-changes-in-html-php-files/
Adds lang attribute to readme.html