r64949 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64948‎ | r64949 | r64950 >
Date:22:57, 11 April 2010
Author:svemir
Status:deferred
Tags:
Comment:
Moved the * to sphinxSearchStats and ''s to sphinxSearchStatsInfo messages
Modified paths:
  • /trunk/extensions/SphinxSearch/SphinxSearch.i18n.php (modified) (history)
  • /trunk/extensions/SphinxSearch/SphinxSearch_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SphinxSearch/SphinxSearch_body.php
@@ -442,7 +442,7 @@
443443 if ( is_array( $res["words"] ) ) {
444444 $warn = false;
445445 foreach ( $res["words"] as $word => $info ) {
446 - $wgOut->addWikiText( '* ' .
 446+ $wgOut->addWikiText(
447447 wfMsg( 'sphinxSearchStats', $word, $info['hits'], $info['docs'] )
448448 );
449449 if ( ( $info['docs'] < $wgSphinxSearch_maxmatches ) && ( $info['docs'] > $res['total'] ) ) {
@@ -450,7 +450,7 @@
451451 }
452452 }
453453 if ( $warn ) {
454 - $wgOut->addWikiText( "''" . wfMsg( 'sphinxSearchStatsInfo' ) . "''" );
 454+ $wgOut->addWikiText( wfMsg( 'sphinxSearchStatsInfo' ) );
455455 } else {
456456 $wgOut->addWikiText( "\n" );
457457 }
Index: trunk/extensions/SphinxSearch/SphinxSearch.i18n.php
@@ -13,8 +13,8 @@
1414 'sphinxPreviousPage' => 'Previous',
1515 'sphinxNextPage' => 'Next',
1616 'sphinxSearchPreamble' => 'Displaying $1—$2 of $3 matches for query "<nowiki>$4</nowiki>" retrieved in $5 sec with these stats:',
17 - 'sphinxSearchStats' => '"$1" found $2 times in $3 documents',
18 - 'sphinxSearchStatsInfo' => 'Above numbers may include documents not listed due to search options.',
 17+ 'sphinxSearchStats' => '* "$1" found $2 times in $3 documents',
 18+ 'sphinxSearchStatsInfo' => "''Above numbers may include documents not listed due to search options.''",
1919 'sphinxSearchButton' => 'Search',
2020 'sphinxSearchEpilogue' => 'Additional database time was $1 sec.',
2121 'sphinxSearchDidYouMean' => 'Did you mean:',

Status & tagging log