r70568 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70567‎ | r70568 | r70569 >
Date:13:57, 6 August 2010
Author:catrope
Status:deferred
Tags:
Comment:
DontSwitchMeOver: Add preference. Location and wording may change
Modified paths:
  • /trunk/extensions/UsabilityInitiative/DontSwitchMeOver/DontSwitchMeOver.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/DontSwitchMeOver/DontSwitchMeOver.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/DontSwitchMeOver/DontSwitchMeOver.i18n.php
@@ -13,6 +13,7 @@
1414 */
1515 $messages['en'] = array(
1616 'dontswitchmeover-desc' => 'Preference for users to specify whether they want to preserve their skin setting when the default skin is changed.',
 17+ 'dontswitchmeover-pref' => 'Do not allow my skin to be changed when the default skin changes',
1718 );
1819
1920 /** Message documentation
@@ -20,4 +21,5 @@
2122 */
2223 $messages['qqq'] = array(
2324 'dontswitchmeover-desc' => '{{desc}}',
 25+ 'dontswitchmeover-pref' => 'The wording of this message may change',
2426 );
Index: trunk/extensions/UsabilityInitiative/DontSwitchMeOver/DontSwitchMeOver.hooks.php
@@ -8,10 +8,12 @@
99 */
1010
1111 class DontSwitchMeOverHooks {
12 -
1312 public static function addPreferences( $user, &$defaultPreferences ) {
14 - // TODO
 13+ $defaultPreferences['dontswitchmeover'] = array(
 14+ 'type' => 'toggle',
 15+ 'label-message' => 'dontswitchmeover-pref',
 16+ 'section' => 'rendering/skin', // May move after discussion
 17+ );
1518 return true;
1619 }
17 -
18 -}
\ No newline at end of file
 20+}

Status & tagging log