Jump to content

Extension:Translate/Hooks/TranslateEventMessageGroupStateChange

From mediawiki.org
TranslateEventMessageGroupStateChange
Available from version ??? (Gerrit change 26602)
Event triggered when a message group workflow state is changed in a language
Define function:
public static function onTranslateEventMessageGroupStateChange( $group, $code, $oldState, $newState ) { ... }
Attach hook:
$wgHooks['TranslateEventMessageGroupStateChange'][] = 'MyExtensionHooks::onTranslateEventMessageGroupStateChange';
Called from:File(s): Translate / api/ApiGroupReview.php
Function(s): changeState

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

Details

[edit]
  • MessageGroup $group: Message group instance
  • string $code: Language code
  • string $oldState
  • string $newState