Last modified: 2014-11-13 07:27:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74939, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72939 - Use 'de-CH' instead of 'de-ch' for attribute lang in HTML
Use 'de-CH' instead of 'de-ch' for attribute lang in HTML
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Unprioritized minor (vote)
: ---
Assigned To: Fomafix
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-04 08:02 UTC by Fomafix
Modified: 2014-11-13 07:27 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Fomafix 2014-11-04 08:02:32 UTC
* 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)".

[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Controlling_spell_checking_in_HTML_formsControlling_spell_checking_in_HTML_forms
Comment 1 Gerrit Notification Bot 2014-11-04 08:19:52 UTC
Change 170890 had a related patch set uploaded by Nikerabbit:
Apply wfBCP47 to language attribute on edit page

https://gerrit.wikimedia.org/r/170890
Comment 2 Gerrit Notification Bot 2014-11-06 15:01:22 UTC
Change 170890 merged by jenkins-bot:
Use getHtmlCode() instead of getCode() to set the lang attribute

https://gerrit.wikimedia.org/r/170890

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links