$wgMessageCache->addMessages() Replacement

Jump to: navigation, search

Hi IAlex, I see you removed the addMessages() function here: Special:Code/MediaWiki/76110. Is there another way to add dynamic messages to the wiki? I have an extension that adds a message per namespace in the wiki where the name of the message is based on the name of the namespace. The namespace configuration is stored in the database and changes on occasion so there's no way to create a static message file. Any ideas? --Cneubauer 15:09, 19 January 2012 (UTC)

Cneubauer15:09, 19 January 2012

You can try the MessagesPreLoad hook.

iAlex16:14, 19 January 2012

Hello. I'm trying to resolve this in some extensions.... but...

I think that the MessagesPreLoad hook is not called in the sequence of wfMsg function...

I'm in the wright way?????

Another function must be used instead of wfMsg?

Fdo.

Fernando Carpani (talk)19:44, 12 March 2012
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox