Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Utilities\SupportedLanguagesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md in core. More...

Inheritance diagram for MediaWiki\Extension\Translate\Utilities\SupportedLanguagesHook:
MediaWiki\Extension\Translate\HookRunner

Public Member Functions

 onTranslateSupportedLanguages (array &$list, ?string $language)
 Allows removing languages from language selectors.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md in core.

Use the hook name "TranslateSupportedLanguages" to register handlers implementing this interface.

@stable to implement

Definition at line 13 of file SupportedLanguagesHook.php.

Member Function Documentation

◆ onTranslateSupportedLanguages()

MediaWiki\Extension\Translate\Utilities\SupportedLanguagesHook::onTranslateSupportedLanguages ( array & $list,
?string $language )

Allows removing languages from language selectors.

For adding $wgExtraLanguage names is recommended.

Parameters
string[]&$listList of languages indexed by language code
string | null$languageLanguage code of the language of which language names are in
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Extension\Translate\HookRunner.


The documentation for this interface was generated from the following file: