A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

Magic word translation without $wgExtensionMessagesFiles

samwilson

Is $wgExtensionMessagesFiles also going to be deprecated for listing files that define $magicWords? Is there some way to include magic words in the message json files or elsewhere?

I’ve just added a note (repeating info that was further down the page) to $wgExtensionMessagesFiles, but I’m not really sure what the status is.

Nikerabbit

$wgExtensionMessagesFiles is not currently deprecated for magic word nor special page aliases nor namespace names. There are plans to move also these files into a JSON format (and re-enable them at translatewiki.net).

There are ways to add magic word with hooks, but that has a caching issue and hence it is not recommended.

samwilson

Thanks! I’ve tried to update the documentation to be more explicit.