Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -885,6 +885,20 @@ |
886 | 886 | 'section' => 'misc/diffs', |
887 | 887 | 'label-message' => 'tog-norollbackdiff', |
888 | 888 | ); |
| 889 | + |
| 890 | + // Stuff from Language::getExtraUserToggles() |
| 891 | + global $wgContLang; |
| 892 | + |
| 893 | + $toggles = $wgContLang->getExtraUserToggles(); |
| 894 | + |
| 895 | + foreach( $toggles as $toggle ) { |
| 896 | + $defaultPreferences[$toggle] = |
| 897 | + array( |
| 898 | + 'type' => 'toggle', |
| 899 | + 'section' => 'personal/i18n', |
| 900 | + 'label-message' => "tog-$toggle", |
| 901 | + ); |
| 902 | + } |
889 | 903 | } |
890 | 904 | |
891 | 905 | static function generateSkinOptions( $user ) { |