Add a MediaWiki preference for enabling ULS IME

Bug: 47240
Change-Id: I957d9f409b0c29f956bcf8a49187cdf27c4f42f8
This commit is contained in:
Amir E. Aharoni
2013-05-01 14:15:57 +03:00
parent 24ebaff9e9
commit 6ae0fe3e44
4 changed files with 63 additions and 6 deletions

View File

@@ -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;
}