Page MenuHomePhabricator

Replace {{SITENAME}} with $1 and appropriate call to $wgSiteName
Closed, DeclinedPublic

Description

Author: theevilipaddress

Description:
In the software, some system messages use the magic word {{SITENAME}}, though in cases of widely used messages, like for example [[MediaWiki:Tagline]] or [[MediaWiki:Tooltip-search]], it is generally recommended to replace the magic word locally with the actual sitename because the parsing is quite difficult.

Now I'm wondering, since {{SITENAME}} generally always displays the value of global $wgSiteName, if it might not be easier to directly give the $wgSiteName variable to the wfMsg() functions in the software, instead of having to get the message through the parser, where the call to $wgSiteName will have to happen anyway. So, for example, a message like "From {{SITENAME}}" would b changed to "From $1", looking in the software like that (correct me if I'm wrong): wfMsgExt( 'tagline', 'parse') -> wfMsg('tagline', $wgSiteName).


Version: unspecified
Severity: enhancement

Details

Reference
bz26138

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:23 PM
bzimport set Reference to bz26138.
bzimport added a subscriber: Unknown Object (MLST).

I wouldn't bother. It is only very few wikis where it makes any difference.