From 1da4d3d0f59f23c26e24c5e282c7cb869675a6fe Mon Sep 17 00:00:00 2001 From: Pablo Saratxaga Date: Wed, 21 Feb 2007 11:12:47 +0000 Subject: fixed some ngettext use --- gurpmi2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gurpmi2') diff --git a/gurpmi2 b/gurpmi2 index 4bb0d4da..6ca2cf31 100755 --- a/gurpmi2 +++ b/gurpmi2 @@ -211,10 +211,12 @@ sub do_install_2 () { } $urpm->{nb_install} = @to_install; @to_install > 1 && !$gurpmi::options{auto} - ? ask_continue(P("To satisfy dependencies, the following package is going to be installed:", - "To satisfy dependencies, the following packages are going to be installed:", - scalar(@to_install), - ) . join("\n", '', @to_install, '') . N("(%d packages, %d MB)", scalar(@to_install), toMb($sum)), + ? ask_continue( + ( (scalar(@to_install) == 1) ? + N("To satisfy dependencies, the following package is going to be installed:") + : N("To satisfy dependencies, the following packages are going to be installed:") ) + . join("\n", '', @to_install, '') + . P("(%d package, %d MB)", "(%d packages, %d MB)", scalar(@to_install), toMb($sum)), , \&do_install_3) : goto \&do_install_3; } -- cgit v1.2.1