Index: trunk/phase3/includes/specials/SpecialCategories.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | |
44 | 44 | $this->getOutput()->addHTML( |
45 | 45 | Html::openElement( 'div', array( 'class' => 'mw-spcontent' ) ) . |
46 | | - wfMsgExt( 'categoriespagetext', array( 'parse' ), $cap->getNumRows() ) . |
| 46 | + $this->msg( 'categoriespagetext', $cap->getNumRows() )->parseAsBlock() . |
47 | 47 | $cap->getStartForm( $from ) . |
48 | 48 | $cap->getNavigationBar() . |
49 | 49 | '<ul>' . $cap->getBody() . '</ul>' . |
— | — | @@ -114,10 +114,8 @@ |
115 | 115 | function formatRow($result) { |
116 | 116 | $title = Title::makeTitle( NS_CATEGORY, $result->cat_title ); |
117 | 117 | $titleText = Linker::link( $title, htmlspecialchars( $title->getText() ) ); |
118 | | - $lang = $this->getLang(); |
119 | | - $count = wfMsgExt( 'nmembers', array( 'parsemag', 'escape' ), |
120 | | - $lang->formatNum( $result->cat_pages ) ); |
121 | | - return Xml::tags('li', null, $lang->specialList( $titleText, $count ) ) . "\n"; |
| 118 | + $count = $this->msg( 'nmembers' )->numParams( $result->cat_pages )->escaped(); |
| 119 | + return Xml::tags( 'li', null, $this->getLang()->specialList( $titleText, $count ) ) . "\n"; |
122 | 120 | } |
123 | 121 | |
124 | 122 | public function getStartForm( $from ) { |
— | — | @@ -126,10 +124,10 @@ |
127 | 125 | return |
128 | 126 | Xml::tags( 'form', array( 'method' => 'get', 'action' => $wgScript ), |
129 | 127 | Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
130 | | - Xml::fieldset( wfMsg( 'categories' ), |
131 | | - Xml::inputLabel( wfMsg( 'categoriesfrom' ), |
| 128 | + Xml::fieldset( $this->msg( 'categories' )->text(), |
| 129 | + Xml::inputLabel( $this->msg( 'categoriesfrom' )->text(), |
132 | 130 | 'from', 'from', 20, $from ) . |
133 | 131 | ' ' . |
134 | | - Xml::submitButton( wfMsg( 'allpagessubmit' ) ) ) ); |
| 132 | + Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) ) ); |
135 | 133 | } |
136 | 134 | } |