Index: trunk/extensions/SphinxSearch/SphinxSearch_body.php |
— | — | @@ -435,7 +435,7 @@ |
436 | 436 | $this->page * $wgSphinxSearch_matches, |
437 | 437 | $res['total'] |
438 | 438 | ); |
439 | | - $wgOut->addWikiText( wfMsg( 'sphinxSearchPreamble', |
| 439 | + $wgOut->addWikiText( wfMsgExt( 'sphinxSearchPreamble', 'parsemag', |
440 | 440 | $from, $to, $res['total'], $term, $res['time'] ) |
441 | 441 | ); |
442 | 442 | |
— | — | @@ -443,7 +443,7 @@ |
444 | 444 | $warn = false; |
445 | 445 | foreach ( $res["words"] as $word => $info ) { |
446 | 446 | $wgOut->addWikiText( |
447 | | - wfMsg( 'sphinxSearchStats', $word, $info['hits'], $info['docs'] ) |
| 447 | + wfMsgExt( 'sphinxSearchStats', 'parsemag', $word, $info['hits'], $info['docs'] ) |
448 | 448 | ); |
449 | 449 | if ( ( $info['docs'] < $wgSphinxSearch_maxmatches ) && ( $info['docs'] > $res['total'] ) ) { |
450 | 450 | $warn = true; |
— | — | @@ -811,7 +811,7 @@ |
812 | 812 | } |
813 | 813 | } |
814 | 814 | } |
815 | | - |
| 815 | + |
816 | 816 | return ( $suggestion_needed ? join( ' ', $word_suggestions ) : '' ); |
817 | 817 | } |
818 | 818 | |
Index: trunk/extensions/SphinxSearch/SphinxSearch.i18n.php |
— | — | @@ -12,8 +12,8 @@ |
13 | 13 | 'sphinxResultPage' => 'Result page:', |
14 | 14 | 'sphinxPreviousPage' => 'Previous', |
15 | 15 | 'sphinxNextPage' => 'Next', |
16 | | - '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', |
| 16 | + 'sphinxSearchPreamble' => 'Displaying $1—$2 of $3 {{PLURAL:$3|match|matches}} for query "<nowiki>$4</nowiki>" retrieved in $5 sec with these stats:', |
| 17 | + 'sphinxSearchStats' => '* "$1" found $2 {{PLURAL:$2|time|times}} in $3 {{PLURAL:$3|documents}}', |
18 | 18 | 'sphinxSearchStatsInfo' => "''Above numbers may include documents not listed due to search options.''", |
19 | 19 | 'sphinxSearchButton' => 'Search', |
20 | 20 | 'sphinxSearchEpilogue' => 'Additional database time was $1 sec.', |