summaryrefslogtreecommitdiffstats
path: root/urpm/sys.pm
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-10-13 16:59:53 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-10-13 16:59:53 +0000
commit83bd67e9ed8ea3aa5c2ecae387e80705a2e8310c (patch)
treeb2f82f4b7557f6dec55b68dbcd7232e7fcc2c609 /urpm/sys.pm
parenta961efea16a43cfead232052cec901ad7a464c6b (diff)
downloadurpmi-83bd67e9ed8ea3aa5c2ecae387e80705a2e8310c.tar
urpmi-83bd67e9ed8ea3aa5c2ecae387e80705a2e8310c.tar.gz
urpmi-83bd67e9ed8ea3aa5c2ecae387e80705a2e8310c.tar.bz2
urpmi-83bd67e9ed8ea3aa5c2ecae387e80705a2e8310c.tar.xz
urpmi-83bd67e9ed8ea3aa5c2ecae387e80705a2e8310c.zip
improve strings used when asking to restart system/session (#53126)
Diffstat (limited to 'urpm/sys.pm')
-rw-r--r--urpm/sys.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/urpm/sys.pm b/urpm/sys.pm
index 66612dd9..248880ce 100644
--- a/urpm/sys.pm
+++ b/urpm/sys.pm
@@ -210,7 +210,14 @@ sub need_restart_formatted {
my $need_restart = need_restart($root) or return;
foreach (keys %$need_restart) {
- $need_restart->{$_} = N("You should restart %s for %s", translate($_), join(', ', sort @{$need_restart->{$_}}));
+ my $packages = join(', ', sort @{$need_restart->{$_}});
+ if ($_ eq 'system') {
+ $need_restart->{$_} = N("You should restart your computer for %s", $packages);
+ } elsif ($_ eq 'session') {
+ $need_restart->{$_} = N("You should restart your session for %s", $packages);
+ } else {
+ $need_restart->{$_} = N("You should restart %s for %s", translate($_), $packages);
+ }
}
$need_restart;
}