Manual:Hooks/LocalisationIgnoredOptionalMessages

From MediaWiki.org
Jump to navigation Jump to search
LocalisationIgnoredOptionalMessages
Available from version 1.24.0 (Gerrit change 133122)

Define function:
public static function onLocalisationIgnoredOptionalMessages( array &$ignoredMessageKeys, array &$optionalMessageKeys ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"LocalisationIgnoredOptionalMessages": "MyExtensionHooks::onLocalisationIgnoredOptionalMessages"
	}
}

For MediaWiki ≤1.25:

$wgHooks['LocalisationIgnoredOptionalMessages'][] = 'MyExtensionHooks::onLocalisationIgnoredOptionalMessages';
Called from:File(s): ../maintenance/language/languages.inc
Function(s): __construct

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