Page MenuHomePhabricator

Make "sitenotice" compatible with $wgForceUIMsgAsContentMsg
Closed, ResolvedPublic

Description

Author: brianna.laugher

Description:
Please see the URL. MediaWiki:Sitenotice/ar is defined, but when using the
Arabic language setting, it still shows the message from MediaWiki:Sitenotice.
Instead it should show MediaWiki:Sitenotice/ar.


Version: unspecified
Severity: enhancement
URL: http://commons.wikimedia.org/w/index.php?title=MediaWiki:Sitenotice/ar&uselang=ar

Details

Reference
bz8280

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:31 PM
bzimport set Reference to bz8280.
bzimport added a subscriber: Unknown Object (MLST).

Note that this would not work as expected without further development work,
due to aggressive caching of the rendered sitenotice.

jeluf wrote:

Changed request from "shell" to a feature request.

Jdlrobson claimed this task.
Jdlrobson subscribed.

This seems to work for me. When I enable $wgForceUIMsgAsContentMsg = true; The site notice is rendered from SiteNotice/ar (tested in local environment)

http://localhost:8888/w/index.php/Selenium_category_test

Screen Shot 2021-01-13 at 3.38.53 PM.png (902×2 px, 209 KB)

http://localhost:8888/w/index.php/Selenium_category_test?uselang=ar

Screen Shot 2021-01-13 at 3.39.06 PM.png (904×2 px, 230 KB)