Extension:Translate/Hooks/TranslateFormatMessageBeforeTable

TranslateFormatMessageBeforeTable
Available from version ??? (Gerrit change 20901)
Removed in version gerrit:372434
Provides an opportunity to manipulate the display of translation strings (messages) in the main table
Define function:
public static function onTranslateFormatMessageBeforeTable( &$message, $m, $group, $targetLanguage, &$extraAttribs ) { ... }
Attach hook:
$wgHooks['TranslateFormatMessageBeforeTable'][] = 'MyExtensionHooks::onTranslateFormatMessageBeforeTable';
Called from:File(s): Translate / utils/MessageTable.php
Function(s): contents

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

Details

edit
  • string &$message: The message that will be displayed
  • TMessage $m: Object representing the source object, useful for $m->original() and $m->translation()
  • MessageGroup $group: The source message group
  • string $targetLanguage: The language for which translations are being shown
  • array &$extraAttribs: An array of attributes that will be added to the table row