Extension:Translate/Hooks/TranslateTranslationAids

From mediawiki.org
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): Translate / 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[edit]

  • array &$types: List of translation aid identifiers, numerically indexed