Skip to content

Commit

Permalink
Reflinks.php: The edit summary should be in wiki's language
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaofengli committed Dec 4, 2015
1 parent f561ce1 commit 95bdc3e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Reflinks/Reflinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,12 @@ public function getResult() {
$counterskipped = count( $result['log']['skipped'] );
if ( !isset( $config['summary'] ) ) { //Use the I18N engine
$toollink = $I18N->msg( "toollink" );
$result['summary'] = $I18N->msg( "summary", array( "variables" => array(
$counter, $counterskipped, $toollink
) ) );
$result['summary'] = $I18N->msg( "summary", array(
"lang" => $this->wiki->language,
"variables" => array(
$counter, $counterskipped, $toollink
),
) );
} else { // Use the one supplied by the local config
$result['summary'] = str_replace( "%numfixed%", $counter, $config['summary'] );
$result['summary'] = str_replace( "%numskipped%", $counterskipped, $result['summary'] );
Expand Down

0 comments on commit 95bdc3e

Please sign in to comment.