Index: trunk/phase3/includes/specials/SpecialExport.php |
— | — | @@ -181,17 +181,17 @@ |
182 | 182 | |
183 | 183 | $form = Xml::openElement( 'form', array( 'method' => 'post', |
184 | 184 | 'action' => $this->getTitle()->getLocalUrl( 'action=submit' ) ) ); |
185 | | - $form .= Xml::inputLabel( wfMsg( 'export-addcattext' ) , 'catname', 'catname', 40 ) . ' '; |
186 | | - $form .= Xml::submitButton( wfMsg( 'export-addcat' ), array( 'name' => 'addcat' ) ) . '<br />'; |
| 185 | + $form .= Xml::inputLabel( $this->msg( 'export-addcattext' )->text(), 'catname', 'catname', 40 ) . ' '; |
| 186 | + $form .= Xml::submitButton( $this->msg( 'export-addcat' )->text(), array( 'name' => 'addcat' ) ) . '<br />'; |
187 | 187 | |
188 | 188 | if ( $wgExportFromNamespaces ) { |
189 | | - $form .= Xml::namespaceSelector( $nsindex, null, 'nsindex', wfMsg( 'export-addnstext' ) ) . ' '; |
190 | | - $form .= Xml::submitButton( wfMsg( 'export-addns' ), array( 'name' => 'addns' ) ) . '<br />'; |
| 189 | + $form .= Xml::namespaceSelector( $nsindex, null, 'nsindex', $this->msg( 'export-addnstext' )->text() ) . ' '; |
| 190 | + $form .= Xml::submitButton( $this->msg( 'export-addns' )->text(), array( 'name' => 'addns' ) ) . '<br />'; |
191 | 191 | } |
192 | 192 | |
193 | 193 | if ( $wgExportAllowAll ) { |
194 | 194 | $form .= Xml::checkLabel( |
195 | | - wfMsg( 'exportall' ), |
| 195 | + $this->msg( 'exportall' )->text(), |
196 | 196 | 'exportall', |
197 | 197 | 'exportall', |
198 | 198 | $request->wasPosted() ? $request->getCheck( 'exportall' ) : false |
— | — | @@ -203,29 +203,29 @@ |
204 | 204 | |
205 | 205 | if( $wgExportAllowHistory ) { |
206 | 206 | $form .= Xml::checkLabel( |
207 | | - wfMsg( 'exportcuronly' ), |
| 207 | + $this->msg( 'exportcuronly' )->text(), |
208 | 208 | 'curonly', |
209 | 209 | 'curonly', |
210 | 210 | $request->wasPosted() ? $request->getCheck( 'curonly' ) : true |
211 | 211 | ) . '<br />'; |
212 | 212 | } else { |
213 | | - $out->addHTML( wfMsgExt( 'exportnohistory', 'parse' ) ); |
| 213 | + $out->addWikiMsg( 'exportnohistory' ); |
214 | 214 | } |
215 | 215 | |
216 | 216 | $form .= Xml::checkLabel( |
217 | | - wfMsg( 'export-templates' ), |
| 217 | + $this->msg( 'export-templates' )->text(), |
218 | 218 | 'templates', |
219 | 219 | 'wpExportTemplates', |
220 | 220 | $request->wasPosted() ? $request->getCheck( 'templates' ) : false |
221 | 221 | ) . '<br />'; |
222 | 222 | |
223 | 223 | if( $wgExportMaxLinkDepth || $this->userCanOverrideExportDepth() ) { |
224 | | - $form .= Xml::inputLabel( wfMsg( 'export-pagelinks' ), 'pagelink-depth', 'pagelink-depth', 20, 0 ) . '<br />'; |
| 224 | + $form .= Xml::inputLabel( $this->msg( 'export-pagelinks' )->text(), 'pagelink-depth', 'pagelink-depth', 20, 0 ) . '<br />'; |
225 | 225 | } |
226 | 226 | // Enable this when we can do something useful exporting/importing image information. :) |
227 | | - //$form .= Xml::checkLabel( wfMsg( 'export-images' ), 'images', 'wpExportImages', false ) . '<br />'; |
| 227 | + //$form .= Xml::checkLabel( $this->msg( 'export-images' )->text(), 'images', 'wpExportImages', false ) . '<br />'; |
228 | 228 | $form .= Xml::checkLabel( |
229 | | - wfMsg( 'export-download' ), |
| 229 | + $this->msg( 'export-download' )->text(), |
230 | 230 | 'wpDownload', |
231 | 231 | 'wpDownload', |
232 | 232 | $request->wasPosted() ? $request->getCheck( 'wpDownload' ) : true |
— | — | @@ -233,14 +233,14 @@ |
234 | 234 | |
235 | 235 | if ( $wgExportAllowListContributors ) { |
236 | 236 | $form .= Xml::checkLabel( |
237 | | - wfMsg( 'exportlistauthors' ), |
| 237 | + $this->msg( 'exportlistauthors' )->text(), |
238 | 238 | 'listauthors', |
239 | 239 | 'listauthors', |
240 | 240 | $request->wasPosted() ? $request->getCheck( 'listauthors' ) : false |
241 | 241 | ) . '<br />'; |
242 | 242 | } |
243 | 243 | |
244 | | - $form .= Xml::submitButton( wfMsg( 'export-submit' ), Linker::tooltipAndAccesskeyAttribs( 'export' ) ); |
| 244 | + $form .= Xml::submitButton( $this->msg( 'export-submit' )->text(), Linker::tooltipAndAccesskeyAttribs( 'export' ) ); |
245 | 245 | $form .= Xml::closeElement( 'form' ); |
246 | 246 | |
247 | 247 | $out->addHTML( $form ); |