[wp-trac] [WordPress Trac] #33513: Add support for the 'lang' attribute in admin bar menu items.
WordPress Trac
noreply at wordpress.org
Wed Aug 26 13:01:39 UTC 2015
#33513: Add support for the 'lang' attribute in admin bar menu items.
-------------------------+------------------------------
Reporter: Chouby | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch | Focuses: accessibility
-------------------------+------------------------------
Comment (by Chouby):
As far as I understood, the `lang` and `dir` attributes are global and can
be applied to `a`. That's not for the linked document but for the label of
the link.
I wrote a [https://wordpress.org/plugins/polylang/ multilingual plugin]
and would like to improve its accessibility. I am just starting in that
domain so I have a lot to learn! In this plugin, I add the list of all
languages in the admin bar and I use the native name. I understood that I
should add the `lang` attribute for the language name beeing correctly
pronounced.
Here is a piece of html code that I found easily on internet:
{{{
<a lang="ar" hreflang="ar" title="arabe"
href="//ar.wikipedia.org/wiki/">العربية</a>
}}}
For my own usage, I don't need the `hreflang` attribute because the menu
does not switch the admin language but activates a language filter (for
the list of posts for example). But it could make sense to add more
attributes such as `hreflang` or `dir` to the white list for other usages.
>This is only used for more than 2 words, because the switching of a voice
will take some time and that's irritating for small pieces of text.
I didn't know this rule, so in my case, that may be not useful. What do
you think of the long list of available languages on all Wikipedia pages?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33513#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list