diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2007-02-21 11:15:28 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2007-02-21 11:15:28 +0000 |
commit | fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a (patch) | |
tree | 48546d61820be40a6d7a8da9aa79a8ffb38bd6f6 | |
parent | 1da4d3d0f59f23c26e24c5e282c7cb869675a6fe (diff) | |
download | urpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.tar urpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.tar.gz urpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.tar.bz2 urpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.tar.xz urpmi-fa79312b2c92cc9b6ee3663fe8effb8508e4ad0a.zip |
fixed ngettext use
-rwxr-xr-x | urpmq | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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)); } } } |