- my $suite_wording = $suites_enc eq "all" ? "all suites"
- : "suite(s) <em>$suites_enc</em>";
- my $section_wording = $sections_enc eq 'all' ? "all sections"
- : "section(s) <em>$sections_enc</em>";
- my $arch_wording = $archs_enc eq 'any' ? "all architectures"
- : "architecture(s) <em>$archs_enc</em>";
- my $wording = $opts->{exact} ? "exact filenames" : "filenames that contain";
- $wording = "paths that end with" if $searchon eq "contents";
- msg( "You have searched for ${wording} <em>$keyword_enc</em> in $suite_wording, $section_wording, and $arch_wording." );
+ my $suite_wording = sprintf(_g("suite <em>%s</em>"), $suites_enc );
+ my $section_wording = $sections_enc eq 'all' ? _g("all sections")
+ : sprintf(_g("section(s) <em>%s</em>"), $sections_enc );
+ my $arch_wording = $archs_enc eq 'any' ? _g("all architectures")
+ : sprintf(_g("architecture(s) <em>%s</em>"), $archs_enc );
+ my $wording = _g("paths that end with");
+ if ($mode eq 'filename') {
+ $wording = _g("files named");
+ } elsif ($mode eq 'exactfilename') {
+ $wording = _g("filenames that contain");
+ }
+ msg( sprintf( _g("You have searched for %s <em>%s</em> in %s, %s, and %s." ),
+ $wording, $keyword_enc,
+ $suite_wording, $section_wording, $arch_wording ) );
+
+ if ($mode ne 'filename') {
+ msg( '<a href="'.make_search_url('',"keywords=$keyword_esc",{mode=>'filename'}).
+ "\">"._g("Search within filenames")."</a>");
+ }
+ if ($mode ne 'exactfilename') {
+ msg( '<a href="'.make_search_url('',"keywords=$keyword_esc",{mode=>'exactfilename'}).
+ "\">"._g("Search exact filename")."</a>");
+ }
+ if ($mode eq 'exactfilename' || $mode eq 'filename') {
+ msg( '<a href="'.make_search_url('',"keywords=$keyword_esc",{mode=>undef}).
+ "\">"._g("Search for paths ending with")."</a>");
+ }
+
+ msg( _g("Search in other suite:")." ".
+ join( ' ', map { '[<a href="'.make_search_url('',"keywords=$keyword_esc",{suite=>$_}).
+ "\">$_</a>]" } @SUITES ) );