Extension:Translate/Hooks/TranslateTranslationAids

Category:Extension hooks#TranslateTranslationAids
TranslateTranslationAids
Available from version ??? (Gerrit change 56622)
Make new translation aids available to any message group (which must choose an implementation in its getTranslationAids() method).
Define function:
public static function onTranslateTranslationAids( &$types ) { ... }
Attach hook:
$wgHooks['TranslateTranslationAids'][] = 'MyExtensionHooks::onTranslateTranslationAids';
Called from:File(s): Category:Extension hooks provided by TranslateTranslate / api/ApiQueryTranslationAids.php
Function(s): getAllowedParams

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

Details

  • array &$types: List of translation aid identifiers, numerically indexed
Category:Extension hooks Category:Extension hooks provided by Translate