r14444 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14443‎ | r14444 | r14445 >
Date:21:45, 28 May 2006
Author:robchurch
Status:old
Tags:
Comment:
Pass a second parameter to "nogomatch" containing the search terms minus the preceding colon, allowing prettied-up messages
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialSearch.php (modified) (history)
  • /trunk/phase3/languages/Messages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialSearch.php
@@ -114,7 +114,7 @@
115115 $editurl = $t->escapeLocalURL( 'action=edit' );
116116 }
117117 }
118 - $wgOut->addWikiText( wfMsg('nogomatch', ":$term" ) );
 118+ $wgOut->addWikiText( wfMsg('nogomatch', ":$term", $term ) );
119119
120120 return $this->showResults( $term );
121121 }
Index: trunk/phase3/RELEASE-NOTES
@@ -365,11 +365,13 @@
366366 * (bug 6117) Use message for history feed description, add German localization
367367 * (bug 1017) fixed thumbnails of animated gifs.
368368 * Add APC as object caching option
 369+* Update to Albanian localization (sq)
 370+* (bug 6099) Introduce {{DIRECTIONMARK}} magic word (with {{DIRMARK}} as an alias)
369371 * Use optimized php5-only microtime()
370372 * Add possibility to store local message cache as PHP executable script
371373 * Fix profiling table definition
372 -* Update to Albanian localization (sq)
373 -* (bug 6099) Introduce {{DIRECTIONMARK}} magic word (with {{DIRMARK}} as an alias)
 374+* Pass a second parameter to "nogomatch" containing the search terms minus the
 375+ preceding colon, allowing prettied-up messages
374376
375377 == Compatibility ==
376378
Index: trunk/phase3/languages/Messages.php
@@ -640,7 +640,7 @@
641641 Please try another query.',
642642 'matchtotals' => "The query \"$1\" matched $2 page titles
643643 and the text of $3 pages.",
644 -'nogomatch' => "'''There is no page titled \"$1\".''' You can [[$1|create this page]].",
 644+'nogomatch' => "'''There is no page titled \"$2\".''' You can [[$1|create this page]].",
645645 'titlematches' => 'Article title matches',
646646 'notitlematches' => 'No page title matches',
647647 'textmatches' => 'Page text matches',

Status & tagging log