https://bugzilla.wikimedia.org/show_bug.cgi?id=69279
Bug ID: 69279
Summary: Sitenotices are not language-converted for every
variant due to caching
Product: MediaWiki
Version: 1.24-git
Hardware: All
URL: https://zh.wikivoyage.org/
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Skin and page rendering
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
As reported at
https://zh.wikivoyage.org/wiki/Wikivoyage:%E4%BA%92%E5%8A%A9%E5%AE%A2%E6%A0%88#.E4.B8.8A.E9.9D.A2.E7.9A.84.E5.91.8A.E7.A4.BA.E6.B2.92.E6.9C.89.E8.BD.89.E6.8F.9B.E6.AD.A3.E3.80.81.E7.B0.A1.E9.AB.94.E4.B8.AD.E6.96.87
, even if the user language and user language variant are changed, sitenotice
still appears to be the same:
* https://zh.wikivoyage.org/zh-hans/Special:Blankpage?zh-hans
* https://zh.wikivoyage.org/zh-hant/Special:Blankpage?zh-hant
After some research, I've found out that in
https://github.com/wikimedia/mediawiki-core/blob/6f022809880ed9ae330045b76723f9d14601916e/includes/Skin.php#L1552
, $needParse partly depends on whether [[MediaWiki:Sitenotice]] was actually
changed. However, language converter works within the parser, which means that
even if the wikitext was the same, after parsing, the text could actually
change. It is recently that the variant of the cached version changed from zh
to zh-tw, and some non-hant users have found that the sitenotice became
unreadable for them.
As shown in
https://github.com/wikimedia/mediawiki-core/blob/6f022809880ed9ae330045b76723f9d14601916e/includes/Skin.php#L1549
, a change to $wgRenderHashAppend (which defaults to '') could re-parse the
page.
And due to above issues, I propose to append the variant name
$wgRenderHashAppend while processing sitenotice.
--
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