Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -399,7 +399,7 @@ |
400 | 400 | array( |
401 | 401 | 'type' => 'radio', |
402 | 402 | 'options' => $settings, |
403 | | - 'section' => 'skin', |
| 403 | + 'section' => 'rendering/skin', |
404 | 404 | 'label-message' => 'qbsettings', |
405 | 405 | ); |
406 | 406 | } |
— | — | @@ -449,7 +449,7 @@ |
450 | 450 | 'type' => 'radio', |
451 | 451 | 'options' => $dateOptions, |
452 | 452 | 'label-message' => 'dateformat', |
453 | | - 'section' => 'datetime', |
| 453 | + 'section' => 'datetime/dateformat', |
454 | 454 | ); |
455 | 455 | } |
456 | 456 | |
— | — | @@ -465,7 +465,7 @@ |
466 | 466 | 'raw' => 1, |
467 | 467 | 'label-message' => 'servertime', |
468 | 468 | 'default' => $nowserver, |
469 | | - 'section' => 'datetime', |
| 469 | + 'section' => 'datetime/timeoffset', |
470 | 470 | ); |
471 | 471 | |
472 | 472 | $defaultPreferences['nowlocal'] = |
— | — | @@ -474,7 +474,7 @@ |
475 | 475 | 'raw' => 1, |
476 | 476 | 'label-message' => 'localtime', |
477 | 477 | 'default' => $nowlocal, |
478 | | - 'section' => 'datetime', |
| 478 | + 'section' => 'datetime/timeoffset', |
479 | 479 | ); |
480 | 480 | |
481 | 481 | // Grab existing pref. |
— | — | @@ -493,7 +493,7 @@ |
494 | 494 | 'label-message' => 'timezonelegend', |
495 | 495 | 'options' => self::getTimezoneOptions(), |
496 | 496 | 'default' => $tzSetting, |
497 | | - 'section' => 'datetime', |
| 497 | + 'section' => 'datetime/timeoffset', |
498 | 498 | ); |
499 | 499 | } |
500 | 500 | |
— | — | @@ -508,7 +508,7 @@ |
509 | 509 | wfMsg( 'underline-default' ) => 2, |
510 | 510 | ), |
511 | 511 | 'label-message' => 'tog-underline', |
512 | | - 'section' => 'rendering', |
| 512 | + 'section' => 'rendering/advanced', |
513 | 513 | ); |
514 | 514 | |
515 | 515 | $stubThresholdValues = array( 0, 50, 100, 500, 1000, 2000, 5000, 10000 ); |
— | — | @@ -520,50 +520,50 @@ |
521 | 521 | $defaultPreferences['stubthreshold'] = |
522 | 522 | array( |
523 | 523 | 'type' => 'selectorother', |
524 | | - 'section' => 'rendering', |
| 524 | + 'section' => 'rendering/advanced', |
525 | 525 | 'options' => $stubThresholdOptions, |
526 | 526 | 'label' => wfMsg('stub-threshold'), // Raw HTML message. Yay? |
527 | 527 | ); |
528 | 528 | $defaultPreferences['highlightbroken'] = |
529 | 529 | array( |
530 | 530 | 'type' => 'toggle', |
531 | | - 'section' => 'rendering', |
| 531 | + 'section' => 'rendering/advanced', |
532 | 532 | 'label' => wfMsg('tog-highlightbroken'), // Raw HTML |
533 | 533 | ); |
534 | 534 | $defaultPreferences['showtoc'] = |
535 | 535 | array( |
536 | 536 | 'type' => 'toggle', |
537 | | - 'section' => 'rendering', |
| 537 | + 'section' => 'rendering/advanced', |
538 | 538 | 'label-message' => 'tog-showtoc', |
539 | 539 | ); |
540 | 540 | $defaultPreferences['nocache'] = |
541 | 541 | array( |
542 | 542 | 'type' => 'toggle', |
543 | 543 | 'label-message' => 'tog-nocache', |
544 | | - 'section' => 'rendering', |
| 544 | + 'section' => 'rendering/advanced', |
545 | 545 | ); |
546 | 546 | $defaultPreferences['showhiddencats'] = |
547 | 547 | array( |
548 | 548 | 'type' => 'toggle', |
549 | | - 'section' => 'rendering', |
| 549 | + 'section' => 'rendering/advanced', |
550 | 550 | 'label-message' => 'tog-showhiddencats' |
551 | 551 | ); |
552 | 552 | $defaultPreferences['showjumplinks'] = |
553 | 553 | array( |
554 | 554 | 'type' => 'toggle', |
555 | | - 'section' => 'rendering', |
| 555 | + 'section' => 'rendering/advanced', |
556 | 556 | 'label-message' => 'tog-showjumplinks', |
557 | 557 | ); |
558 | 558 | $defaultPreferences['justify'] = |
559 | 559 | array( |
560 | 560 | 'type' => 'toggle', |
561 | | - 'section' => 'rendering', |
| 561 | + 'section' => 'rendering/advanced', |
562 | 562 | 'label-message' => 'tog-justify', |
563 | 563 | ); |
564 | 564 | $defaultPreferences['numberheadings'] = |
565 | 565 | array( |
566 | 566 | 'type' => 'toggle', |
567 | | - 'section' => 'rendering', |
| 567 | + 'section' => 'rendering/advanced', |
568 | 568 | 'label-message' => 'tog-numberheadings', |
569 | 569 | ); |
570 | 570 | } |
— | — | @@ -589,73 +589,73 @@ |
590 | 590 | $defaultPreferences['previewontop'] = |
591 | 591 | array( |
592 | 592 | 'type' => 'toggle', |
593 | | - 'section' => 'editing', |
| 593 | + 'section' => 'editing/advanced', |
594 | 594 | 'label-message' => 'tog-previewontop', |
595 | 595 | ); |
596 | 596 | $defaultPreferences['previewonfirst'] = |
597 | 597 | array( |
598 | 598 | 'type' => 'toggle', |
599 | | - 'section' => 'editing', |
| 599 | + 'section' => 'editing/advanced', |
600 | 600 | 'label-message' => 'tog-previewonfirst', |
601 | 601 | ); |
602 | 602 | $defaultPreferences['editsection'] = |
603 | 603 | array( |
604 | 604 | 'type' => 'toggle', |
605 | | - 'section' => 'editing', |
| 605 | + 'section' => 'editing/advanced', |
606 | 606 | 'label-message' => 'tog-editsection', |
607 | 607 | ); |
608 | 608 | $defaultPreferences['editsectiononrightclick'] = |
609 | 609 | array( |
610 | 610 | 'type' => 'toggle', |
611 | | - 'section' => 'editing', |
| 611 | + 'section' => 'editing/advanced', |
612 | 612 | 'label-message' => 'tog-editsectiononrightclick', |
613 | 613 | ); |
614 | 614 | $defaultPreferences['editondblclick'] = |
615 | 615 | array( |
616 | 616 | 'type' => 'toggle', |
617 | | - 'section' => 'editing', |
| 617 | + 'section' => 'editing/advanced', |
618 | 618 | 'label-message' => 'tog-editondblclick', |
619 | 619 | ); |
620 | 620 | $defaultPreferences['editwidth'] = |
621 | 621 | array( |
622 | 622 | 'type' => 'toggle', |
623 | | - 'section' => 'editing', |
| 623 | + 'section' => 'editing/advanced', |
624 | 624 | 'label-message' => 'tog-editwidth', |
625 | 625 | ); |
626 | 626 | $defaultPreferences['showtoolbar'] = |
627 | 627 | array( |
628 | 628 | 'type' => 'toggle', |
629 | | - 'section' => 'editing', |
| 629 | + 'section' => 'editing/advanced', |
630 | 630 | 'label-message' => 'tog-showtoolbar', |
631 | 631 | ); |
632 | 632 | $defaultPreferences['minordefault'] = |
633 | 633 | array( |
634 | 634 | 'type' => 'toggle', |
635 | | - 'section' => 'editing', |
| 635 | + 'section' => 'editing/advanced', |
636 | 636 | 'label-message' => 'tog-minordefault', |
637 | 637 | ); |
638 | 638 | $defaultPreferences['externaleditor'] = |
639 | 639 | array( |
640 | 640 | 'type' => 'toggle', |
641 | | - 'section' => 'editing', |
| 641 | + 'section' => 'editing/advanced', |
642 | 642 | 'label-message' => 'tog-externaleditor', |
643 | 643 | ); |
644 | 644 | $defaultPreferences['externaldiff'] = |
645 | 645 | array( |
646 | 646 | 'type' => 'toggle', |
647 | | - 'section' => 'editing', |
| 647 | + 'section' => 'editing/advanced', |
648 | 648 | 'label-message' => 'tog-externaldiff', |
649 | 649 | ); |
650 | 650 | $defaultPreferences['forceeditsummary'] = |
651 | 651 | array( |
652 | 652 | 'type' => 'toggle', |
653 | | - 'section' => 'editing', |
| 653 | + 'section' => 'editing/advanced', |
654 | 654 | 'label-message' => 'tog-forceeditsummary', |
655 | 655 | ); |
656 | 656 | $defaultPreferences['uselivepreview'] = |
657 | 657 | array( |
658 | 658 | 'type' => 'toggle', |
659 | | - 'section' => 'editing', |
| 659 | + 'section' => 'editing/advanced', |
660 | 660 | 'label-message' => 'tog-uselivepreview', |
661 | 661 | ); |
662 | 662 | } |
— | — | @@ -667,7 +667,7 @@ |
668 | 668 | array( |
669 | 669 | 'type' => 'int', |
670 | 670 | 'label-message' => 'recentchangesdays', |
671 | | - 'section' => 'rc', |
| 671 | + 'section' => 'rc/display', |
672 | 672 | 'min' => 1, |
673 | 673 | 'max' => ceil($wgRCMaxAge / (3600*24)), |
674 | 674 | ); |
— | — | @@ -675,19 +675,20 @@ |
676 | 676 | array( |
677 | 677 | 'type' => 'int', |
678 | 678 | 'label-message' => 'recentchangescount', |
679 | | - 'section' => 'rc', |
| 679 | + 'help-message' => 'prefs-help-recentchangescount', |
| 680 | + 'section' => 'rc/display', |
680 | 681 | ); |
681 | 682 | $defaultPreferences['usenewrc'] = |
682 | 683 | array( |
683 | 684 | 'type' => 'toggle', |
684 | 685 | 'label-message' => 'tog-usenewrc', |
685 | | - 'section' => 'rc', |
| 686 | + 'section' => 'rc/advanced', |
686 | 687 | ); |
687 | 688 | $defaultPreferences['hideminor'] = |
688 | 689 | array( |
689 | 690 | 'type' => 'toggle', |
690 | 691 | 'label-message' => 'tog-hideminor', |
691 | | - 'section' => 'rc', |
| 692 | + 'section' => 'rc/advanced', |
692 | 693 | ); |
693 | 694 | |
694 | 695 | global $wgUseRCPatrol; |
— | — | @@ -695,13 +696,13 @@ |
696 | 697 | $defaultPreferences['hidepatrolled'] = |
697 | 698 | array( |
698 | 699 | 'type' => 'toggle', |
699 | | - 'section' => 'rc', |
| 700 | + 'section' => 'rc/advanced', |
700 | 701 | 'label-message' => 'tog-hidepatrolled', |
701 | 702 | ); |
702 | 703 | $defaultPreferences['newpageshidepatrolled'] = |
703 | 704 | array( |
704 | 705 | 'type' => 'toggle', |
705 | | - 'section' => 'rc', |
| 706 | + 'section' => 'rc/advanced', |
706 | 707 | 'label-message' => 'tog-newpageshidepatrolled', |
707 | 708 | ); |
708 | 709 | } |
— | — | @@ -711,7 +712,7 @@ |
712 | 713 | $defaultPreferences['shownumberswatching'] = |
713 | 714 | array( |
714 | 715 | 'type' => 'toggle', |
715 | | - 'section' => 'rc', |
| 716 | + 'section' => 'rc/advanced', |
716 | 717 | 'label-message' => 'tog-shownumberswatching', |
717 | 718 | ); |
718 | 719 | } |
— | — | @@ -720,56 +721,56 @@ |
721 | 722 | static function watchlistPreferences( $user, &$defaultPreferences ) { |
722 | 723 | global $wgUseRCPatrol; |
723 | 724 | ## Watchlist ##################################### |
724 | | - $defaultPreferences['wllimit'] = |
| 725 | + $defaultPreferences['watchlistdays'] = |
725 | 726 | array( |
726 | 727 | 'type' => 'int', |
727 | 728 | 'min' => 0, |
728 | | - 'max' => 1000, |
729 | | - 'label-message' => 'prefs-watchlist-edits', |
730 | | - 'section' => 'watchlist' |
| 729 | + 'max' => 7, |
| 730 | + 'section' => 'watchlist/display', |
| 731 | + 'label-message' => 'prefs-watchlist-days', |
731 | 732 | ); |
732 | | - $defaultPreferences['watchlistdays'] = |
| 733 | + $defaultPreferences['wllimit'] = |
733 | 734 | array( |
734 | 735 | 'type' => 'int', |
735 | 736 | 'min' => 0, |
736 | | - 'max' => 7, |
737 | | - 'section' => 'watchlist', |
738 | | - 'label-message' => 'prefs-watchlist-days', |
| 737 | + 'max' => 1000, |
| 738 | + 'label-message' => 'prefs-watchlist-edits', |
| 739 | + 'section' => 'watchlist/display' |
739 | 740 | ); |
740 | 741 | $defaultPreferences['extendwatchlist'] = |
741 | 742 | array( |
742 | 743 | 'type' => 'toggle', |
743 | | - 'section' => 'watchlist', |
| 744 | + 'section' => 'watchlist/advanced', |
744 | 745 | 'label-message' => 'tog-extendwatchlist', |
745 | 746 | ); |
746 | 747 | $defaultPreferences['watchlisthideminor'] = |
747 | 748 | array( |
748 | 749 | 'type' => 'toggle', |
749 | | - 'section' => 'watchlist', |
| 750 | + 'section' => 'watchlist/advanced', |
750 | 751 | 'label-message' => 'tog-watchlisthideminor', |
751 | 752 | ); |
752 | 753 | $defaultPreferences['watchlisthidebots'] = |
753 | 754 | array( |
754 | 755 | 'type' => 'toggle', |
755 | | - 'section' => 'watchlist', |
| 756 | + 'section' => 'watchlist/advanced', |
756 | 757 | 'label-message' => 'tog-watchlisthidebots', |
757 | 758 | ); |
758 | 759 | $defaultPreferences['watchlisthideown'] = |
759 | 760 | array( |
760 | 761 | 'type' => 'toggle', |
761 | | - 'section' => 'watchlist', |
| 762 | + 'section' => 'watchlist/advanced', |
762 | 763 | 'label-message' => 'tog-watchlisthideown', |
763 | 764 | ); |
764 | 765 | $defaultPreferences['watchlisthideanons'] = |
765 | 766 | array( |
766 | 767 | 'type' => 'toggle', |
767 | | - 'section' => 'watchlist', |
| 768 | + 'section' => 'watchlist/advanced', |
768 | 769 | 'label-message' => 'tog-watchlisthideanons', |
769 | 770 | ); |
770 | 771 | $defaultPreferences['watchlisthideliu'] = |
771 | 772 | array( |
772 | 773 | 'type' => 'toggle', |
773 | | - 'section' => 'watchlist', |
| 774 | + 'section' => 'watchlist/advanced', |
774 | 775 | 'label-message' => 'tog-watchlisthideliu', |
775 | 776 | ); |
776 | 777 | |
— | — | @@ -777,7 +778,7 @@ |
778 | 779 | $defaultPreferences['watchlisthidepatrolled'] = |
779 | 780 | array( |
780 | 781 | 'type' => 'toggle', |
781 | | - 'section' => 'watchlist', |
| 782 | + 'section' => 'watchlist/advanced', |
782 | 783 | 'label-message' => 'tog-watchlisthidepatrolled', |
783 | 784 | ); |
784 | 785 | } |
— | — | @@ -795,7 +796,7 @@ |
796 | 797 | if ( $user->isAllowed( $action ) ) { |
797 | 798 | $defaultPreferences[$pref] = array( |
798 | 799 | 'type' => 'toggle', |
799 | | - 'section' => 'watchlist', |
| 800 | + 'section' => 'watchlist/advanced', |
800 | 801 | 'label-message' => "tog-$pref", |
801 | 802 | ); |
802 | 803 | } |
— | — | @@ -810,21 +811,21 @@ |
811 | 812 | array( |
812 | 813 | 'type' => 'int', |
813 | 814 | 'label-message' => 'resultsperpage', |
814 | | - 'section' => 'searchoptions', |
| 815 | + 'section' => 'searchoptions/display', |
815 | 816 | 'min' => 0, |
816 | 817 | ); |
817 | 818 | $defaultPreferences['contextlines'] = |
818 | 819 | array( |
819 | 820 | 'type' => 'int', |
820 | 821 | 'label-message' => 'contextlines', |
821 | | - 'section' => 'searchoptions', |
| 822 | + 'section' => 'searchoptions/display', |
822 | 823 | 'min' => 0, |
823 | 824 | ); |
824 | 825 | $defaultPreferences['contextchars'] = |
825 | 826 | array( |
826 | 827 | 'type' => 'int', |
827 | 828 | 'label-message' => 'contextchars', |
828 | | - 'section' => 'searchoptions', |
| 829 | + 'section' => 'searchoptions/display', |
829 | 830 | 'min' => 0, |
830 | 831 | ); |
831 | 832 | global $wgEnableMWSuggest; |
— | — | @@ -833,7 +834,7 @@ |
834 | 835 | array( |
835 | 836 | 'type' => 'toggle', |
836 | 837 | 'label-message' => 'mwsuggest-disable', |
837 | | - 'section' => 'searchoptions', |
| 838 | + 'section' => 'searchoptions/display', |
838 | 839 | ); |
839 | 840 | } |
840 | 841 | |
— | — | @@ -855,7 +856,7 @@ |
856 | 857 | 'type' => 'multiselect', |
857 | 858 | 'label-message' => 'defaultns', |
858 | 859 | 'options' => $nsOptions, |
859 | | - 'section' => 'searchoptions', |
| 860 | + 'section' => 'searchoptions/advanced', |
860 | 861 | 'prefix' => 'searchNs', |
861 | 862 | ); |
862 | 863 | } |
— | — | @@ -865,13 +866,13 @@ |
866 | 867 | $defaultPreferences['diffonly'] = |
867 | 868 | array( |
868 | 869 | 'type' => 'toggle', |
869 | | - 'section' => 'misc', |
| 870 | + 'section' => 'misc/diffs', |
870 | 871 | 'label-message' => 'tog-diffonly', |
871 | 872 | ); |
872 | 873 | $defaultPreferences['norollbackdiff'] = |
873 | 874 | array( |
874 | 875 | 'type' => 'toggle', |
875 | | - 'section' => 'misc', |
| 876 | + 'section' => 'misc/diffs', |
876 | 877 | 'label-message' => 'tog-norollbackdiff', |
877 | 878 | ); |
878 | 879 | } |