r51031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51030‎ | r51031 | r51032 >
Date:19:58, 26 May 2009
Author:yaron
Status:deferred
Tags:
Comment:
Message-value calls changed to reflect newly-generalized message values
Modified paths:
  • /trunk/extensions/DataTransfer/specials/DT_ImportXML.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DataTransfer/specials/DT_ImportXML.php
@@ -30,11 +30,11 @@
3131 }
3232
3333 if ($wgRequest->getCheck('import_file')) {
34 - $text = "<p>" . wfMsg('dt_importxml_importing') . "</p>\n";
 34+ $text = "<p>" . wfMsg('dt_import_importing') . "</p>\n";
3535 $source = ImportStreamSource::newFromUpload( "xml_file" );
3636 $text .= self::modifyPages($source);
3737 } else {
38 - $select_file_label = wfMsg('dt_importxml_selectfile');
 38+ $select_file_label = wfMsg('dt_import_selectfile', 'XML');
3939 $import_button = wfMsg('import-interwiki-submit');
4040 $text =<<<END
4141 <p>$select_file_label</p>
@@ -57,7 +57,7 @@
5858 $job_params = array();
5959 global $wgUser;
6060 $job_params['user_id'] = $wgUser->getId();
61 - $job_params['edit_summary'] = wfMsgForContent('dt_importxml_editsummary');
 61+ $job_params['edit_summary'] = wfMsgForContent('dt_import_editsummary', 'XML');
6262
6363 foreach ($xml_parser->mPages as $page) {
6464 $title = Title::newFromText($page->getName());
@@ -68,7 +68,7 @@
6969 }
7070 Job::batchInsert( $jobs );
7171 global $wgLang;
72 - $text .= wfMsgExt( 'dt_importxml_success', $wgLang->formatNum( count( $jobs ) ) );
 72+ $text .= wfMsgExt( 'dt_import_success', $wgLang->formatNum( count( $jobs ) ), 'XML' );
7373 return $text;
7474 }
7575 }

Status & tagging log