Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -648,7 +648,7 @@ |
649 | 649 | $hasLeftColumn = true; |
650 | 650 | } elseif ( is_array( $value ) ) { |
651 | 651 | $section = $this->displaySection( $value, $key ); |
652 | | - $legend = wfMsg( "{$this->mMessagePrefix}-$key" ); |
| 652 | + $legend = $this->getLegend( $key ); |
653 | 653 | if ( isset( $this->mSectionHeaders[$key] ) ) { |
654 | 654 | $section = $this->mSectionHeaders[$key] . $section; |
655 | 655 | } |
— | — | @@ -725,6 +725,16 @@ |
726 | 726 | function filterDataForSubmit( $data ) { |
727 | 727 | return $data; |
728 | 728 | } |
| 729 | + |
| 730 | + /** |
| 731 | + * Get a string to go in the <legend> of a section fieldset. Override this if you |
| 732 | + * want something more complicated |
| 733 | + * @param $key String |
| 734 | + * @return String |
| 735 | + */ |
| 736 | + public function getLegend( $key ) { |
| 737 | + return wfMsg( "{$this->mMessagePrefix}-$key" ); |
| 738 | + } |
729 | 739 | } |
730 | 740 | |
731 | 741 | /** |