Last modified: 2011-03-13 18:05:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28138, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26138 - Replace {{SITENAME}} with $1 and appropriate call to $wgSiteName
Replace {{SITENAME}} with $1 and appropriate call to $wgSiteName
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-27 08:35 UTC by The Evil IP address
Modified: 2011-03-13 18:05 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description The Evil IP address 2010-11-27 08:35:50 UTC
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).
Comment 1 Niklas Laxström 2010-11-27 08:38:48 UTC
I wouldn't bother. It is only very few wikis where it makes any difference.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links