summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2007-02-21 11:15:28 +0000
committerPablo Saratxaga <pablo@mandriva.com>2007-02-21 11:15:28 +0000
commitfa79312b2c92cc9b6ee3663fe8effb8508e4ad0a (patch)
tree48546d61820be40a6d7a8da9aa79a8ffb38bd6f6
parent1da4d3d0f59f23c26e24c5e282c7cb869675a6fe (diff)
downloadurpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.tar
urpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.tar.gz
urpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.tar.bz2
urpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.tar.xz
urpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.zip
fixed ngettext use
-rwxr-xr-xurpmq10
1 files changed, 6 insertions, 4 deletions
diff --git a/urpmq b/urpmq
index b853f579..ab3f458e 100755
--- a/urpmq
+++ b/urpmq
@@ -356,11 +356,13 @@ if ($urpm::args::options{list_aliases}) {
} else {
my $pkgs_text = join(' ', map { $_->name } @pkgs);
if ($urpm::args::options{info}) {
- $urpm->{info}(P("no hdlist for medium \"%s\", only partial result for package %s",
- "no hdlist for medium \"%s\", only partial result for packages %s", int(@pkgs), $medium->{name}, $pkgs_text));
+ $urpm->{info}((int(@pkgs) == 1) ?
+ N("no hdlist for medium \"%s\", only partial result for package %s", $medium->{name}, $pkgs_text)
+ : N("no hdlist for medium \"%s\", only partial result for packages %s", $medium->{name}, $pkgs_text));
} else {
- $urpm->{error}(P("no hdlist for medium \"%s\", unable to return any result for package %s",
- "no hdlist for medium \"%s\", unable to return any result for packages %s", int(@pkgs), $medium->{name}, $pkgs_text));
+ $urpm->{error}((int(@pkgs) == 1) ?
+ N("no hdlist for medium \"%s\", unable to return any result for package %s",$medium->{name}, $pkgs_text)
+ : N("no hdlist for medium \"%s\", unable to return any result for packages %s", $medium->{name}, $pkgs_text));
}
}
}