Extension:Translate/Hooks/TranslateSupportedLanguages

TranslateSupportedLanguages
Available from version ??? (Gerrit change 37630)
Allows removing languages from language selectors. For adding $wgExtraLanguage names is recommended.
Define function:
public static function onTranslateSupportedLanguages( &$list, $language ) { ... }
Attach hook:
$wgHooks['TranslateSupportedLanguages'][] = 'MyExtensionHooks::onTranslateSupportedLanguages';
Called from:File(s): Translate / TranslateUtils.php
Function(s): getLanguageNames

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

Details

edit
  • array &$list: List of languages indexed by language code
  • string $language: Language code of the language of which language names are in