Thanks a lot, that hook did the trick :-)
On 26/10/16 18:53, Krinkle wrote:
If you want this to be part of site configuration or an extension, you can consider using the 'MessageCache::get' hook, which allows you to override which key will be retrieved. (For an individual site, I'd recommend changing the value through the MediaWiki namespace page for that interface message key.)
We use this hook at Wikimedia to change the default for some localisation messages on all Wikimedia wikis at once - while still allowing individual sites to also override themselves via the MediaWiki-namespace.
See the WikimediaMessages extension for an example:
https://www.mediawiki.org/wiki/Manual:Hooks/MessageCache::get
https://github.com/wikimedia/mediawiki-extensions-WikimediaMessages/blob/d74...
This example may be more complicated than what you need, but it's a starting point from which you can simplify. here is a bit more
-- Krinkle
On Sat, Oct 22, 2016 at 7:12 PM, Aran aran@organicdesign.co.nz wrote:
Hi,
I have an extension that change some of the default system messages for example "talk" to "comment", but since upgrading to 1.27 these messages no longer change. I've tried rebuildmessages.php and rebuildLocalisationCache.php but nothing seems to allow me to override these default messages any more. New messages that the extension introduces can be changed no problem.
Does anyone here know the proper procedure for doing this?
Thanks,
Aran
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l