[wp-trac] [WordPress Trac] #33511: Bad value for attribute lang on element html

WordPress Trac noreply at wordpress.org
Wed Mar 2 16:10:03 UTC 2016


#33511: Bad value for attribute lang on element html
------------------------------+----------------------------
 Reporter:  Chouby            |       Owner:  ocean90
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.5
Component:  I18N              |     Version:  4.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  accessibility
------------------------------+----------------------------
Changes (by ocean90):

 * owner:   => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36802"]:
 {{{
 #!CommitTicketReference repository="" revision="36802"
 I18N: Don't use the locale for the HTML language attribute.

 Locales are codes to identify a language in WordPress which can be
 different from the specification for language tags, see
 https://www.w3.org/International/articles/language-tags/.
 An example is `de_DE_formal` or `nl_NL_formal` where the subtag `formal`
 isn't officially supported.

 To give translators the possibility to specify the language tag of their
 language introduce a string `html_lang_attribute` which can be translated
 into the language tag which conforms to the specification.

 Props SergeyBiryukov.
 Fixes #33511.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33511#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list