aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-07-01 15:52:03 +0000
committerThierry Vignaud <tv@mandriva.org>2008-07-01 15:52:03 +0000
commit768ff840572f91e36312a45a38f8ff24ee7de4cd (patch)
tree365d8ec369922397f141617ab26db5ba251ffcf7
parent558cd6bb9d0c2c513e5ab8682cba5e5f55c2561b (diff)
downloadrpmdrake-768ff840572f91e36312a45a38f8ff24ee7de4cd.tar
rpmdrake-768ff840572f91e36312a45a38f8ff24ee7de4cd.tar.gz
rpmdrake-768ff840572f91e36312a45a38f8ff24ee7de4cd.tar.bz2
rpmdrake-768ff840572f91e36312a45a38f8ff24ee7de4cd.tar.xz
rpmdrake-768ff840572f91e36312a45a38f8ff24ee7de4cd.zip
(do_search) factorize a string (needed for next commits)
-rwxr-xr-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 4807dba9..44144145 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -64,7 +64,7 @@ sub do_search($$$$$$$) {
$entry =~ s/^\s*$//;
}
my $entry_rx = eval { qr/$entry/i } or return;
- my $results_ok = N("Search results");
+ my ($results_ok, $results_none) = (N("Search results"), N("Search results (none)"));
$options->{delete_category}->($results_ok);
$options->{state}{flat} and $options->{delete_all}->();
$tree->collapse_all;
@@ -198,6 +198,7 @@ sub do_search($$$$$$$) {
}
} else {
statusbar_msg(N("Search results (none)"), 1);
+ statusbar_msg($results_none, 1);
gtkset_mousecursor_normal($::w->{rwindow}->window);
}
}