User "SPQRobin" posted a comment on MediaWiki.r90858. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90858#c18841 Commit summary:
Make parser->getFunctionLang be dependent on title->getPageLanguage() instead of $wgContLang, i.e. the page content language instead of the wiki content language. This sets the right language on page view + edit for all pages, instead of only edit preview on MediaWiki namespace pages (as in EditPage.php). Comment: It's a temporary fix/improvement, because as I said in an earlier commit, there should probably be a better way but I don't know enough about MediaWiki core (and certainly not the parser) to find the best way. See also [[bugzilla:6100#c49]]. Move the code from getPageLanguage to getFunctionLang? Move getPageLanguage to OutputPage? Something else? It should at least be easy to define the page content language in extensions. Also, what do you mean with "that requires a much bigger knowledge at the parser side"? _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
