summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2007-02-21 11:12:47 +0000
committerPablo Saratxaga <pablo@mandriva.com>2007-02-21 11:12:47 +0000
commit1da4d3d0f59f23c26e24c5e282c7cb869675a6fe (patch)
tree1e649605d64152836106e23fdf0ba888b936cfa5 /gurpmi2
parent5593db89b498f57ecef817e5eeb66e002a7d6aba (diff)
downloadurpmi-1da4d3d0f59f23c26e24c5e282c7cb869675a6fe.tar
urpmi-1da4d3d0f59f23c26e24c5e282c7cb869675a6fe.tar.gz
urpmi-1da4d3d0f59f23c26e24c5e282c7cb869675a6fe.tar.bz2
urpmi-1da4d3d0f59f23c26e24c5e282c7cb869675a6fe.tar.xz
urpmi-1da4d3d0f59f23c26e24c5e282c7cb869675a6fe.zip
fixed some ngettext use
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi210
1 files changed, 6 insertions, 4 deletions
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;
}