diff --git a/administrator/components/com_finder/src/Service/HTML/Query.php b/administrator/components/com_finder/src/Service/HTML/Query.php index 94ba6cd4b5..efa9e2a7a3 100644 --- a/administrator/components/com_finder/src/Service/HTML/Query.php +++ b/administrator/components/com_finder/src/Service/HTML/Query.php @@ -116,7 +116,7 @@ public static function explained(IndexerQuery $query) } // Build the interpreted query. - return count($parts) ? Text::sprintf('COM_FINDER_QUERY_TOKEN_INTERPRETED', implode(Text::_('COM_FINDER_QUERY_TOKEN_GLUE'), $parts)) : null; + return count($parts) ? implode(Text::_('COM_FINDER_QUERY_TOKEN_GLUE'), $parts) : null; } /** diff --git a/components/com_finder/tmpl/search/default_results.php b/components/com_finder/tmpl/search/default_results.php index cc17d9dfba..dc393329ff 100644 --- a/components/com_finder/tmpl/search/default_results.php +++ b/components/com_finder/tmpl/search/default_results.php @@ -30,7 +30,7 @@ explained && $this->params->get('show_explained_query', 1)) : ?> - explained; ?> + explained, Text::plural('COM_FINDER_QUERY_RESULTS', $this->total)); ?> @@ -50,7 +50,7 @@
-
+
baseUrl = Uri::getInstance()->toString(array('scheme', 'host', 'port')); ?> results as $i => $result) : ?> result = &$result; ?> diff --git a/language/en-GB/com_finder.ini b/language/en-GB/com_finder.ini index 3987c0162f..3fa15a3120 100644 --- a/language/en-GB/com_finder.ini +++ b/language/en-GB/com_finder.ini @@ -32,11 +32,14 @@ COM_FINDER_QUERY_FILTER_BRANCH_VENUE="venue" COM_FINDER_QUERY_OPERATOR_AND="and" COM_FINDER_QUERY_OPERATOR_NOT="not" COM_FINDER_QUERY_OPERATOR_OR="or" +COM_FINDER_QUERY_RESULTS="the following %s results were found." +COM_FINDER_QUERY_RESULTS_0="no results were found. Search again." +COM_FINDER_QUERY_RESULTS_1="the following %s result was found." COM_FINDER_QUERY_START_DATE="beginning date %s %s" COM_FINDER_QUERY_TAXONOMY_NODE="with %s as %s " COM_FINDER_QUERY_TOKEN_EXCLUDED="%s should be excluded" COM_FINDER_QUERY_TOKEN_GLUE=", and " -COM_FINDER_QUERY_TOKEN_INTERPRETED="Assuming %s, the following results were found." +COM_FINDER_QUERY_TOKEN_INTERPRETED="Assuming %s, %s" COM_FINDER_QUERY_TOKEN_OPTIONAL="%s is optional" COM_FINDER_QUERY_TOKEN_REQUIRED="%s is required" COM_FINDER_SEARCH_NO_RESULTS_BODY="No search results could be found for query: %s."