From d8583d2e2d38dc5e05f6faacba7472875a7debf0 Mon Sep 17 00:00:00 2001 From: Pablo Saratxaga Date: Fri, 23 Feb 2007 14:11:04 +0000 Subject: simplified use of ngettext --- Rpmdrake/pkg.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Rpmdrake/pkg.pm') diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 84153091..fb72b2a8 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -480,10 +480,8 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( my $install_count = int(@pkgs); my $to_install = $install_count == 0 ? '' : - $install_count == 1 ? - N("To satisfy dependencies, the following package is going to be installed:\n%s\n", formatlistpkg(map { s!.*/!!; $_ } @pkgs)) - : P("To satisfy dependencies, the following %d package is going to be installed:\n%s\n", "To satisfy dependencies, the following %d packages are going to be installed:\n%s\n", $install_count, $install_count, - formatlistpkg(map { s!.*/!!; $_ } @pkgs)); + ( P("To satisfy dependencies, the following package is going to be installed:", "To satisfy dependencies, the following %d packages are going to be installed:", $install_count, $install_count) + . "\n" . formatlistpkg(map { s!.*/!!; $_ } @pkgs) . "\n"); my $remove_count = scalar(@to_remove); interactive_msg(($to_install ? N("Confirmation") : N("Some packages need to be removed")), ($r ? -- cgit v1.2.1