MediaWiki REL1_39
MediaWiki\Languages\Hook\LanguageGetTranslatedLanguageNamesHook Interface Reference

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

Inheritance diagram for MediaWiki\Languages\Hook\LanguageGetTranslatedLanguageNamesHook:

Public Member Functions

 onLanguageGetTranslatedLanguageNames (&$names, $code)
 Use this hook to provide translated language names.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 12 of file LanguageGetTranslatedLanguageNamesHook.php.

Member Function Documentation

◆ onLanguageGetTranslatedLanguageNames()

MediaWiki\Languages\Hook\LanguageGetTranslatedLanguageNamesHook::onLanguageGetTranslatedLanguageNames ( & $names,
$code )

Use this hook to provide translated language names.

Since
1.35
Parameters
string[]&$namesArray of language code => language name
string$codeLanguage of the preferred translations
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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