summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2007-02-23 19:56:16 +0000
committerPablo Saratxaga <pablo@mandriva.com>2007-02-23 19:56:16 +0000
commitc3e4bafe0c0ac1fa41cfeb2629b5354d148b8e17 (patch)
treef3e092bbe52248b5148b52db19ba08a5373bc913 /urpmi
parent6f636062e0cfbc382c9918cbe1cc4e547acd6473 (diff)
downloadurpmi-c3e4bafe0c0ac1fa41cfeb2629b5354d148b8e17.tar
urpmi-c3e4bafe0c0ac1fa41cfeb2629b5354d148b8e17.tar.gz
urpmi-c3e4bafe0c0ac1fa41cfeb2629b5354d148b8e17.tar.bz2
urpmi-c3e4bafe0c0ac1fa41cfeb2629b5354d148b8e17.tar.xz
urpmi-c3e4bafe0c0ac1fa41cfeb2629b5354d148b8e17.zip
more ngettext
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi11
1 files changed, 6 insertions, 5 deletions
diff --git a/urpmi b/urpmi
index 4f46280a..2a12ed4e 100755
--- a/urpmi
+++ b/urpmi
@@ -594,10 +594,10 @@ if (@root_only) {
if ($test) {
$msg = "$msg\n" . N("(test only, installation will not be actually done)");
}
- my $msg2 = ($urpm->{nb_install} == 1) ?
- N("Proceed with the installation of 1 package? (%d MB)",toMb($sum))
- : P("Proceed with the installation of the %d package? (%d MB)",
- "Proceed with the installation of the %d packages? (%d MB)", $urpm->{nb_install}, $urpm->{nb_install}, toMb($sum));
+ my $msg2 = P("Proceed with the installation of one package?",
+ "Proceed with the installation of the %d packages?",
+ $urpm->{nb_install}, $urpm->{nb_install})
+ . N(" (%d MB)", toMb($sum));
my $p = join "\n", @to_install;
my $noexpr = N("Nn");
my $yesexpr = N("Yy");
@@ -822,7 +822,8 @@ if (values %error_sources) {
$exit_code = 10;
}
if ($nok) {
- $nok > 1 and print N("%d installation transactions failed", $nok) . (@errors && ":\n" . join("\n", map { "\t$_" } @errors)), "\n";
+ $nok > 1 and print P("%d installation transaction failed",
+ "%d installation transactions failed", $nok, $nok) . (@errors && ":\n" . join("\n", map { "\t$_" } @errors)), "\n";
if ($exit_code) {
$exit_code = $ok ? 13 : 14;
} else {