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

WordPress Trac noreply at wordpress.org
Sat Aug 22 14:11:57 UTC 2015


#33511: Bad value for attribute lang on element html
--------------------------+-----------------------------
 Reporter:  Chouby        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  4.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 >An [https://tools.ietf.org/html/rfc5646 RFC 5646] language tag consists
 of hyphen-separated ASCII-alphanumeric subtags. There is a primary tag
 identifying a natural language by its shortest ISO 639 language code (e.g.
 en for English) and zero or more additional subtags adding precision. The
 most common additional subtag type is a region subtag which most commonly
 is a two-letter ISO 3166 country code (e.g. GB for the United Kingdom).
 IANA maintains a [http://www.iana.org/assignments/language-subtag-registry
 /language-subtag-registry registry of permissible subtags]

 WP 4.3 introduced two new languages packs with locales which do not
 validate at https://validator.w3.org/:
 'de-DE-formal' and 'oci'.

 I have no idea for de-DE-formal, but we should use the ISO 639-1 language
 code 'oc' instead of 'oci'.

 Then I reviewed all locales at https://translate.wordpress.org/ using a
 ISO 639-2 code. Several of them do not validate because an ISO 639-1 code
 is avalaible:

 bel -> be
 bre -> br
 dzo -> dz
 ido -> io
 kin -> rw
 mri -> mi
 roh -> rm
 srd -> sc
 tuk -> tk

 Finally 'bal' is totally misused as the code is for the
 [https://en.wikipedia.org/wiki/Balochi_language Balochi] language and not
 for Catalan (Balear).

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


More information about the wp-trac mailing list