with interwiki prefixes, otherwise do what Title::makeTitleSafe() does.
* (bug 6516) Update to Russian translation
* New 'allpagesbadtitle' message for Special:Allpages, based on 'badtitletext'.
+* Rename "searchquery" to "searchsubtitle" and support wiki text in it
== Compatibility ==
function wfSajaxSearch( $term ) {
- global $wgContLang, $wgAjaxCachePolicy;
+ global $wgContLang, $wgAjaxCachePolicy, $wgOut;
$limit = 16;
$l = new Linker;
return '<div style="float:right; border:solid 1px black;background:gainsboro;padding:2px;"><a onclick="Searching_Hide_Results();">'
. wfMsg( 'hideresults' ) . '</a></div>'
. '<h1 class="firstHeading">'.wfMsg('search')
- . '</h1><div id="contentSub">'.wfMsg('searchquery', $term) . '</div><ul><li>'
+ . '</h1><div id="contentSub">'. $wgOut->parse( wfMsg( 'searchsubtitle', $term ) ) . '</div><ul><li>'
. $l->makeKnownLink( $wgContLang->specialPage( 'Search' ),
wfMsg( 'searchcontaining', $term ),
"search=$term&fulltext=Search" )
function setupPage( $term ) {
global $wgOut;
$wgOut->setPageTitle( wfMsg( 'searchresults' ) );
- $wgOut->setSubtitle( htmlspecialchars( wfMsg( 'searchquery', $term ) ) );
+ $wgOut->setSubtitle( $wgOut->parse( wfMsg( 'searchsubtitle', $term ) ) );
$wgOut->setArticleRelated( false );
$wgOut->setRobotpolicy( 'noindex,nofollow' );
}
#
'searchresults' => 'Search results',
'searchresulttext' => "For more information about searching {{SITENAME}}, see [[{{ns:project}}:Searching|Searching {{SITENAME}}]].",
-'searchquery' => "For query \"$1\"",
+'searchsubtitle' => "You searched for '''[[$1]]'''",
'badquery' => 'Badly formed search query',
'badquerytext' => 'We could not process your query.
This is probably because you have attempted to search for a
'viewprevnext' => "View ($1) ($2) ($3).",
'showingresults' => "Showing below up to <b>$1</b> results starting with #<b>$2</b>.",
'showingresultsnum' => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
-'nonefound' => "'''Note''': unsuccessful searches are
+'nonefound' => "'''Note''': Unsuccessful searches are
often caused by searching for common words like \"have\" and \"from\",
which are not indexed, or by specifying more than one search term (only pages
containing all of the search terms will appear in the result).",
#
"searchresults" => "Suchergebnisse",
'searchresulttext' => 'Für mehr Informationen zur Suche siehe „[[{{ns:project}}:Suche|{{SITENAME}} durchsuchen]]“.',
-'searchquery' => 'Für die Suchanfrage „$1“',
+'searchsubtitle' => 'Für die Suchanfrage „[[$1]]“',
"badquery" => "Falsche Suchanfrage",
'badquerytext' => 'Wir konnten Ihre Suchanfrage nicht verarbeiten.
Vermutlich haben Sie versucht, ein Wort zu suchen, das kürzer als vier Buchstaben ist.
#
'searchresults' => 'Résultat de la recherche',
'searchresulttext' => 'Pour plus d\'informations sur la recherche dans {{SITENAME}}, voir [[Aide:Recherche|Chercher dans {{SITENAME}}]].',
-'searchquery' => 'Pour la requête « $1 »',
+'searchsubtitle' => 'Pour la requête « [[$1]] »',
'badquery' => 'Requête mal formulée',
'badquerytext' => 'Nous n\'avons pas pu traiter votre requête. Vous avez probablement recherché un mot d\'une longueur inférieure à trois lettres, ce qui n\'est pas encore possible. Vous avez aussi pu faire une erreur de syntaxe, telle que « poisson et et écailles ». Veuillez essayer une autre requête.',
'matchtotals' => 'La requête « $1 » correspond à $2 titre(s) d\'article et au texte de $3 article(s).',