MediaWiki REL1_35
MediaWiki\Languages\Hook\Language__getMessagesFileNameHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Languages\Hook\Language__getMessagesFileNameHook:

Public Member Functions

 onLanguage__getMessagesFileName ( $code, &$file)
 Use this hook to change the path of a localisation file.
 

Detailed Description

Stable to implement.

Definition at line 10 of file Language__getMessagesFileNameHook.php.

Member Function Documentation

◆ onLanguage__getMessagesFileName()

MediaWiki\Languages\Hook\Language__getMessagesFileNameHook::onLanguage__getMessagesFileName (   $code,
$file 
)

Use this hook to change the path of a localisation file.

Since
1.35
Parameters
string$codeLanguage code or the language we're looking for a messages file for
string&$fileMessages file path. You can override this to change the location.
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: