Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1433047
SupportedLanguagesHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
785 B
Referenced Files
None
Subscribers
None
SupportedLanguagesHook.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\Utilities
;
/**
* 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
* @ingroup Hooks
*/
interface
SupportedLanguagesHook
{
/**
* Allows removing languages from language selectors. For adding $wgExtraLanguage names is recommended.
*
* @param string[] &$list List of languages indexed by language code
* @param string|null $language Language code of the language of which language names are in
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onTranslateSupportedLanguages
(
array
&
$list
,
?
string
$language
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 22:36 (1 h, 47 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e4/29/9e15bf573377619c5a9635b48e49
Default Alt Text
SupportedLanguagesHook.php (785 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment