"Hashar" posted a comment on MediaWiki.r105812. URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/105812#c27486
Commit summary for MediaWiki.r105812: Introduce a Language::getHtmlLang method which returns the Bcp47 formatted language code and update code around core to output lang tags using this method instead of getCode so that we properly output things like lang="en-CA" instead of lang="en-ca" Hashar's comment: By looking again at the Language code: getCode() is supposed to return a language code according to RFC 3066. That RFC was once BCP47 and got obsoleted with time. So I think we should drop getHtmlCode() and just normalize mCode when it is set(). That would also avoid having two codes looking exactly the same. _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
