https://bugzilla.wikimedia.org/show_bug.cgi?id=27634
Summary: TOC title appears in wrong language
Product: MediaWiki
Version: 1.18-svn
Platform: All
URL: http://fr.wikipedia.org/wiki/Edward_Westermarck
OS/Version: All
Status: NEW
Severity: normal
Priority: Normal
Component: Page rendering
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 8192
--> https://bugzilla.wikimedia.org/attachment.cgi?id=8192
Proposed patch: Pass mParserOptions->getUserLang() to Linker::tocList()
Steps to reproduce:
* Log in
* Set your user language to sth. different than the content language.
* Make an edit to an article.
* Log out
* Note, that the toc title is shown in the language you have chosen above.
The parser cache gets corrupted, because Linker::tocList() uses wfMsgHtml for
the toc title rather than using the language from ParserOptions.
The attached patch will fix the issue by adding a $lang parameter to
Linker::tocList and using it from Parser::formatHeadings(). Note, that for
trunk this will reintroduce the parser cache fragmentation, that has been tried
to avoid by r79520 and follow-ups.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l