Last modified: 2009-03-25 11:49:14 UTC
When asking for the revision of an customized system message, the wiki text is returned: http://de.wikipedia.org/w/api.php?action=query&titles=MediaWiki:Coll-helppage&prop=revisions&rvprop=content yields the same content as http://de.wikipedia.org/wiki/MediaWiki:Coll-helppage This should work for system messages with their default value, too: http://de.wikipedia.org/w/api.php?action=query&titles=MediaWiki:Coll-collections&prop=revisions&rvprop=content yields a result with the missing attribute, whereas http://de.wikipedia.org/wiki/MediaWiki:Coll-collections yields the default value. This way, it would be possible to access all system messages via API.
(In reply to comment #0) > This way, it would be possible to access all system messages via API. > This already possible, use meta=allmessages&ammessages=foo|bar|baz
OK, thanks for the pointer! But I think I found some bug here: When requesting some (extension?) messages directly, e.g. via ammessages=coll-license_url, they are returned as missing. But when doing ammessages=* and filtering via amfilter=coll-license_url, the message is returned successfully. The call to $wgMessageCache->loadAllMessages(); might have to be moved outside of the if statement.