Jump to content

Manual:Hooks/LocalisationIgnoredOptionalMessages

From mediawiki.org
LocalisationIgnoredOptionalMessages
Available from version 1.24.0 (Gerrit change 133122)
Removed in version 1.35.0 (Gerrit change 585482)

Define function:
public static function onLocalisationIgnoredOptionalMessages( array &$ignoredMessageKeys, array &$optionalMessageKeys ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"LocalisationIgnoredOptionalMessages": "MediaWiki\\Extension\\MyExtension\\Hooks::onLocalisationIgnoredOptionalMessages"
	}
}
Called from: File(s):
Function(s): __construct
Interface: LocalisationIgnoredOptionalMessagesHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:LocalisationIgnoredOptionalMessages extensions.


Details

[edit]
  • &$ignoredMessageKeys: Array of ignored message keys
  • &$optionalMessageKeys: Array of optional message keys