wfMsg()
From MediaWiki.org
wfMsg() is a MediaWiki internationalization (i18n) function.
[edit] Example
$wgOut->addWikiText( wfMsg( 'flubbersuccess' ) );
wfMsg() looks up the system message called flubbersuccess, and then returns it. The actual text of the message can come from a variety of places. You can also replace numbered parameters ($1, $2) with values by passing them to wfMsg() after the message string. Find out more about how to tell MediaWiki what to output in $wgMessageCache.
[edit] See also
- wfMsgForContent() - this uses the system message in the content language, not the user language. This is useful for links.

