From mediawiki.org
Jump to navigation Jump to search
Available from version ??? (Gerrit change 20709)
Provides an opportunity to add or remove "boxes" (translation helpers) from the translation interface
Define function:
public static function onTranslateGetBoxes( $group, $handle, &$boxes ) { ... }
Attach hook:
$wgHooks['TranslateGetBoxes'][] = 'MyExtensionHooks::onTranslateGetBoxes';
Called from:File(s): Translate / utils/TranslationHelpers.php
Function(s): getBoxes

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


  • MessageGroup $group: The message group being worked on
  • MessageHandle $handle: An object representing the translation page (e.g. 'MediaWiki:Example/qqq')
  • array &$boxes: An associative array to be appended to (format: 'name' => 'some HTML string')