X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=lib%2FPackages%2FDoSearch.pm;h=69765addad76f239c4d78294c0fb4b08177202f3;hb=0d5547e211c0c21886db6f4f9a7b4ac70848408a;hp=776b288fd9745169e84582b15fa3a2db85c1ec6d;hpb=0d490872a700100862918335263f1a22db1a032c;p=deb%2Fpackages.git
diff --git a/lib/Packages/DoSearch.pm b/lib/Packages/DoSearch.pm
index 776b288..69765ad 100644
--- a/lib/Packages/DoSearch.pm
+++ b/lib/Packages/DoSearch.pm
@@ -86,19 +86,24 @@ sub do_search {
my $std = timediff($st1, $st0);
debug( "Search took ".timestr($std) ) if DEBUG;
- my $suite_wording = $suites_enc eq "all" ? "all suites"
- : "suite(s) $suites_enc";
- my $section_wording = $sections_enc eq 'all' ? "all sections"
- : "section(s) $sections_enc";
- my $arch_wording = $archs_enc eq 'any' ? "all architectures"
- : "architecture(s) $archs_enc";
+ my $suite_wording = $suites_enc eq "all" ? _g("all suites")
+ : sprintf(_g("suite(s) %s", $suites_enc) );
+ my $section_wording = $sections_enc eq 'all' ? _g("all sections")
+ : sprintf(_g("section(s) %s", $sections_enc) );
+ my $arch_wording = $archs_enc eq 'any' ? _g("all architectures")
+ : sprintf(_g("architecture(s) %s", $archs_enc) );
if ($searchon eq "names") {
- my $source_wording = $opts->{source} ? "source " : "";
- my $exact_wording = $opts->{exact} ? "named" : "that names contain";
- msg( "You have searched for ${source_wording}packages $exact_wording $keyword_enc in $suite_wording, $section_wording, and $arch_wording." );
+ my $source_wording = $opts->{source} ? _g("source packages") : _g("packages");
+ # sorry to all translators for that one... (patches welcome)
+ msg( sprintf( _g( "You have searched for %s that names contain % in %s, %s, and %s." ),
+ $source_wording, $keyword_enc,
+ $suite_wording, $section_wording, $arch_wording ) );
} else {
- my $exact_wording = $opts->{exact} ? "" : " (including subword matching)";
- msg( "You have searched for $keyword_enc in packages names and descriptions in $suite_wording, $section_wording, and $arch_wording$exact_wording." );
+ my $exact_wording = $opts->{exact} ? "" : _g(" (including subword matching)");
+ msg( sprintf( _g( "You have searched for %s in packages names and descriptions in %s, %s, and %s%s." ),
+ $keyword_enc,
+ $suite_wording, $section_wording, $arch_wording,
+ $exact_wording ) );
}
if ($Packages::Search::too_many_hits) {