Extension:Translate/Hooks/Translate:newTranslation
Appearance
(Redirected from Manual:Hooks/Translate:newTranslation)
Translate:newTranslation | |
---|---|
Available from version ??? Event triggered when non-fuzzy translation has been made |
|
Define function: | public static function onTranslate_newTranslation( $handle, $revisionId, $text, $user ) { ... }
|
Attach hook: | $wgHooks['Translate:newTranslation'][] = 'MyExtensionHooks::onTranslate_newTranslation';
|
Called from: | File(s): Translate / TranslateEditAddons.php Function(s): onSave |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:Translate:newTranslation extensions.
Details
[edit]- MessageHandle $handle
- int $revisionId
- string $text: Content of the new translation
- User $user: User who created or changed the translation