I am trying to find a function that pulls a message from the file rather than the database; but wfMsgNoDB() and wfMsgNoDBForContent() don't work because they don't parse links and wiki markup within the content. I guess I'm looking for a cross between wfMsgNoDBForContent () and wfMsgWikiHtml() - is there such a thing? I really need this to make it easy to maintain skin messages across some 15 wikis, more coming every week...
On 23/05/06, Elliott F. Cable ecable@avxw.com wrote:
I am trying to find a function that pulls a message from the file rather than the database; but wfMsgNoDB() and wfMsgNoDBForContent() don't work because they don't parse links and wiki markup within the content. I guess I'm looking for a cross between wfMsgNoDBForContent () and wfMsgWikiHtml() - is there such a thing? I really need this to make it easy to maintain skin messages across some 15 wikis, more coming every week...
global $wgOut; return $wgOut->parse( wfMsgNoDB( message, param, param... ) );
Rob Church
If I understand right, "global $function" only needs to be called once from within a function - can I call this once somewhere in the skin file (which is where I'm putting this) and then just use (for instance) "$wgOut->parse( wfMsgNoDB( 'tools' ) );" On May 22, 2006, at 5:03 PM, Rob Church wrote:
On 23/05/06, Elliott F. Cable ecable@avxw.com wrote:
I am trying to find a function that pulls a message from the file rather than the database; but wfMsgNoDB() and wfMsgNoDBForContent() don't work because they don't parse links and wiki markup within the content. I guess I'm looking for a cross between wfMsgNoDBForContent () and wfMsgWikiHtml() - is there such a thing? I really need this to make it easy to maintain skin messages across some 15 wikis, more coming every week...
global $wgOut; return $wgOut->parse( wfMsgNoDB( message, param, param... ) );
Rob Church _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 23/05/06, Elliott F. Cable ecable@avxw.com wrote:
If I understand right, "global $function" only needs to be called once from within a function - can I call this once somewhere in the skin file (which is where I'm putting this) and then just use (for instance) "$wgOut->parse( wfMsgNoDB( 'tools' ) );"
If I read that right, short answer: no. Long explanation at http://uk2.php.net/manual/en/language.variables.scope.php.
Rob Church
mediawiki-l@lists.wikimedia.org