< Extension:Translate < Hooks
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
- array &$list: List of languages indexed by language code
- string $language: Language code of the language of which language names are in
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.