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
On Saturday, October 22, 2016 at 2:12 PM, Aran 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
Is there any reason this needs to be handled by the extension? Can you edit the corresponding MediaWiki-namespace page to change the label?
— James Hare http://harej.co
All the functionality really needs to be packaged into the extension so that there's no code-base files being changed - and also that's only one example, there are other messages changed too that are not namespaces, such as the failed login message.
On 22/10/16 16:15, James Hare wrote:
On Saturday, October 22, 2016 at 2:12 PM, Aran 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
Is there any reason this needs to be handled by the extension? Can you edit the corresponding MediaWiki-namespace page to change the label?
— James Hare http://harej.co
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Oh sorry I mis-read your message, you mean the article not the file.. but still it would be preferable if the functionality could be all packaged into the extension without needing to apply content as well.
On 22/10/16 16:15, James Hare wrote:
On Saturday, October 22, 2016 at 2:12 PM, Aran 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
Is there any reason this needs to be handled by the extension? Can you edit the corresponding MediaWiki-namespace page to change the label?
— James Hare http://harej.co
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
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
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
wikitech-l@lists.wikimedia.org