Manual:Hooks/LocalisationIgnoredOptionalMessages
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.35.0</tvar>.</translate> |
LocalisationIgnoredOptionalMessages | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 133122)</tvar></translate> <translate> Removed in <tvar name=1><translate> version <tvar (Gerrit change 585482)</tvar></translate> | |
<translate> Define function:</translate> | public static function onLocalisationIgnoredOptionalMessages( array &$ignoredMessageKeys, array &$optionalMessageKeys ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"LocalisationIgnoredOptionalMessages": "MediaWiki\\Extension\\MyExtension\\Hooks::onLocalisationIgnoredOptionalMessages"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> <translate> Function(s):</translate> __construct |
<translate> Interface:</translate> | LocalisationIgnoredOptionalMessagesHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:LocalisationIgnoredOptionalMessages extensions</tvar>.</translate>
Details
&$ignoredMessageKeys
: Array of ignored message keys&$optionalMessageKeys
: Array of optional message keys