[wp-trac] [WordPress Trac] #21724: Bug: Invalid language subtag in Danish locale

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 29 11:26:12 UTC 2012


#21724: Bug: Invalid language subtag in Danish locale
-------------------------------+------------------------------
 Reporter:  shitface           |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Validation         |     Version:  3.4.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => reporter-feedback


Comment:

 Related/duplicate: #20291

 With Danish package (or just having `WPLANG` set to `da_DK`), I get `lang`
 attribute with a hyphen, not with an underscore, in both admin and
 frontend:
 {{{
 <html dir="ltr" lang="da-DK">
 }}}
 Per W3C, this is correct:
 http://www.w3.org/TR/html4/struct/dirlang.html#langcodes

 1. Where exactly do you see the attribute with an underscore?
 2. Have you tried disabling all plugins and switching to the default theme
 (Twenty Eleven)?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21724#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list