Manual:Hooks/MessageNotInMwNs

From MediaWiki.org
Jump to: navigation, search
MessageNotInMwNs
Available from version 1.16.0
Removed in version 1.16.0
When trying to get a message that isn't found in the MediaWiki namespace (but before checking the message files)

*Define function:
function fnMyHook( &$message, $lckey, $langcode, $isFullKey ) { ... }

*Attach hook:
$wgHooks['MessageNotInMwNs'][] = 'MyExtensionHooks::someExample';
Called from: MessageCache.php

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


Warning Warning: This hook has been removed in 1.16, and may never be in a released version

[edit] Details

  • &$message: message's content; can be changed
  • $lckey: message's name
  • $langcode: language code
  • $isFullKey: specifies whether $lckey is a two part key "msg/lang"
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox