Page MenuHomePhabricator

Use 'de-CH' instead of 'de-ch' for attribute lang in HTML
Closed, ResolvedPublic


  • With [[Special:PageLanguage]] it is possible to set the page content language per page. In the MediaWiki namespace there also exists several page content languages.
  • On action edit the language code gets filled into <textarea lang="...">.
  • Firefox supports an automatic selection of the spell checker language based on the lang attribute of the textarea element. [1]
  • But Firefox set the spell checker language to "Deutsch (Schweiz)" only when the lang attribute contains exactly 'de-CH'. 'de-ch' set the spell checker language to "Deutsch (Deutschland)".


Version: unspecified
Severity: minor
See Also:



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:44 AM
bzimport set Reference to bz72939.

Change 170890 had a related patch set uploaded by Nikerabbit:
Apply wfBCP47 to language attribute on edit page

Change 170890 merged by jenkins-bot:
Use getHtmlCode() instead of getCode() to set the lang attribute