From 687b531d2813371ec3e61ee79bac618294f6b31d Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 10 Sep 2014 15:27:37 -0700 Subject: [PATCH] Remove term from search results info In surveying other search engines, nobody returns this extra information and clutters their search results. The information is already available in the box as well as various context clues (like your actual results). Change-Id: Iea21a203731331ca31ced786fb7c0011bd4932eb --- includes/specials/SpecialSearch.php | 3 +-- languages/i18n/en.json | 2 +- languages/i18n/qqq.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 3407476494..191ec93c3a 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -1095,9 +1095,8 @@ class SpecialSearch extends SpecialPage { // Results-info if ( $totalNum > 0 && $this->offset < $totalNum ) { - $top = $this->msg( 'showingresultsheader' ) + $top = $this->msg( 'search-showingresults' ) ->numParams( $this->offset + 1, $this->offset + $resultsShown, $totalNum ) - ->params( wfEscapeWikiText( $term ) ) ->numParams( $resultsShown ) ->parse(); $out .= Xml::tags( 'div', array( 'class' => 'results-info' ), $top ) . diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 86b9ed74ed..6fe2ee2308 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -898,7 +898,7 @@ "searchall": "all", "showingresults": "Showing below up to {{PLURAL:$1|1 result|$1 results}} starting with #$2.", "showingresultsinrange": "Showing below up to {{PLURAL:$1|1 result|$1 results}} in range #$2 to #$3.", - "showingresultsheader": "{{PLURAL:$5|Result $1 of $3|Results $1 - $2 of $3}} for $4", + "search-showingresults": "{{PLURAL:$4|Result $1 of $3|Results $1 - $2 of $3}}", "search-nonefound": "There were no results matching the query.", "powersearch-legend": "Advanced search", "powersearch-ns": "Search in namespaces:", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 797333963a..63bd617714 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1060,7 +1060,7 @@ "searchall": "{{Identical|All}}", "showingresults": "This message is used on some special pages such as [[Special:WantedCategories]]. Parameters:\n* $1 - the total number of results in the batch shown\n* $2 - the number of the first item listed\nSee also:\n* {{msg-mw|Showingresultsnum}}", "showingresultsinrange": "Used in pagination of [[Special:MostLinkedCategories]]. Parameters:\n* $1 - the total number of results in the batch shown\n* $2 - the number of the first item listed\n* $3 - the number of last item in the batch shown\n\nSee also {{msg-mw|Showingresults}}", - "showingresultsheader": "Used in search results of [[Special:Search]]. Parameters:\n* $1 - minimum offset\n* $2 - maximum offset\n* $3 - total number of results\n* $4 - the search term\n* $5 - number of results", + "search-showingresults": "Used in search results of [[Special:Search]]. Parameters:\n* $1 - minimum offset\n* $2 - maximum offset\n* $3 - total number of results\n* $4 - number of results", "search-nonefound": "Message shown when a search returned no results (when using the default MediaWiki search engine).", "powersearch-legend": "Advanced search\n\n{{Identical|Advanced search}}", "powersearch-ns": "Used in the extended search form at [[Special:Search]]", -- 2.20.1