wfMsgForContent()
From MediaWiki.org
wfMsgForContent() is a MediaWiki function used for system messages in the content language, not in the user interface language.
It is used by e.g. log messages or links to content pages.
[edit] Example
For example, the destination of the links in the sidebar uses wfMsgForContent(), while the visible text of the links uses wfMsg().
You can compare it with [[wfMsgForContent('mainpage')|wfMsg('mainpage')]] (normal wiki markup + php function).
[edit] Changing wfMsgForContent() to wfMsg()
If you are running a multilingual site, you can change the messages using wfMsgForContent() with Manual:$wgForceUIMsgAsContentMsg. For example if you have translations of the main page and you want the link to go to the translated main page, instead of the default main page in the content language.
The comparison in the example above would be now [[wfMsg('mainpage')|wfMsg('mainpage')]]
[edit] See also
- wfMsg() - the MediaWiki internationalization (i18n) function.

