Add a MediaWiki preference for enabling ULS IME
Bug: 47240 Change-Id: I957d9f409b0c29f956bcf8a49187cdf27c4f42f8
This commit is contained in:
@@ -295,10 +295,20 @@ class UniversalLanguageSelectorHooks {
|
||||
}
|
||||
|
||||
public static function onGetPreferences( $user, &$preferences ) {
|
||||
// The detailed preferences for different layouts.
|
||||
// Saved as JSON and modifiable through the ULS screens.
|
||||
$preferences['uls-preferences'] = array(
|
||||
'type' => 'api',
|
||||
);
|
||||
|
||||
// A checkbox in the general MediaWiki preferences screen
|
||||
// to enable or disable IME in ULS
|
||||
$preferences['uls-ime-enable'] = array(
|
||||
'type' => 'toggle',
|
||||
'label-message' => 'uls-ime-enable-preferences-label',
|
||||
'section' => 'editing/advancedediting', // under 'Advanced options' section of 'Editing' tab
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user