Opened 14 years ago
Closed 14 years ago
#21724 closed defect (bug) (worksforme)
Bug: Invalid language subtag in Danish locale
| Reported by: | shitface | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Validation | Version: | 3.4.1 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
Description
In the Danish locale of WordPress 3.4.1 the language subtag is invalid, according to RFC 5646. This makes the HTML invalid.
The W3C HTML Validator will give you an error similar to this:
Line 6, Column 29: Bad value da_DK for attribute lang on element html: The language subtag da_dk is not a valid language subtag. <html dir="ltr" lang="da_DK">
Bloginfo -> 'language' is set to 'da_DK', but should be 'da', as of 2005.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related/duplicate: #20291
With Danish package (or just having
WPLANGset toda_DK), I getlangattribute with a hyphen, not with an underscore, in both admin and frontend:Per W3C, this is the correct region notation:
http://www.w3.org/International/articles/language-tags/#region
http://www.w3.org/TR/html4/struct/dirlang.html#langcodes