Extension:Translate/Hooks/TranslateGetBoxes

TranslateGetBoxes
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.

DetailsEdit

  • 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')