+
+[%# @translators: I'm really sorry :/ %]
+[% suite_wording = suite_enc.match("^(default|all)$") ? g("all suites") : g("suite(s) <em>$suite_enc</em>");
+ section_wording = (section_enc == 'all') ? g("all sections") : g("section(s) <em>$section_enc</em>");
+ arch_wording = (architectures_enc == 'any') ? g("all architectures") : g("architecture(s) <em>$architectures_enc</em>");
+ IF opts.searchon == "names";
+ source_wording = opts.source ? g("source packages") : g("packages");
+ msg = g("You have searched for %s that names contain <em>%s</em> in %s, %s, and %s.",
+ source_wording, keyword_enc, suite_wording, section_wording, arch_wording);
+ ELSE;
+ exact_wording = opts.exact ? "" : g(" (including subword matching)");
+ msg = g("You have searched for <em>%s</em> in packages names and descriptions in %s, %s, and %s%s.",
+ keyword_enc, suite_wording, section_wording, arch_wording, exact_wording);
+ END %]
+<p>[% msg %]
+
+[% IF results %]
+[% g('Found <strong>%u</strong> matching packages.', results) %]</p>
+[% END %]
+
+[% IF too_many_hits %]
+[% IF opts.searchon != "names" %]
+<p id="psearchtoomanyhits">[% g("Note that this only shows the best matches, sorted by relevance. If the first few packages don't match what you searched for, try using more keywords or alternative keywords.") %]</p>
+[% ELSE %]
+<p id="psearchtoomanyhits">[% g('Your search was too wide so we will only display exact matches. At least <em>%u</em> results have been omitted and will not be displayed. Please consider using a longer keyword or more keywords.',
+ too_many_hits) %]</p>
+[% END; END %]
+
+[% UNLESS results %]
+<p id="psearchnoresult">[% g('Sorry, your search gave no results') %]</p>
+[% END %]
+