aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2007-02-23 12:31:56 +0000
committerPablo Saratxaga <pablo@mandriva.com>2007-02-23 12:31:56 +0000
commiteb364060f409f1d207c1b57d6b451a037495992a (patch)
treeeba5db006394c0dfd5374818d3892a2ba664a23b /Rpmdrake/gui.pm
parenteef9fb212f2cb7b670ed708013666dda7cf77911 (diff)
downloadrpmdrake-eb364060f409f1d207c1b57d6b451a037495992a.tar
rpmdrake-eb364060f409f1d207c1b57d6b451a037495992a.tar.gz
rpmdrake-eb364060f409f1d207c1b57d6b451a037495992a.tar.bz2
rpmdrake-eb364060f409f1d207c1b57d6b451a037495992a.tar.xz
rpmdrake-eb364060f409f1d207c1b57d6b451a037495992a.zip
ngettext fixes
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 309b1a42..4aef115a 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -452,7 +452,8 @@ sub callback_choices {
}
my $callback = sub { interactive_msg(N("More information on package..."), get_info($_[0]), scroll => 1) };
$choices = [ sort { $a->name cmp $b->name } @$choices ];
- my @choices = interactive_list_(N("Please choose"), P("The following package is needed:", "One of the following packages is needed:", scalar(@$choices)),
+ my @choices = interactive_list_(N("Please choose"), scalar(@$choices)==1 ?
+ N("The following package is needed:") : N("One of the following packages is needed:"),
[ map { urpm_name($_) } @$choices ], $callback);
$choices->[$choices[0]];
}
@@ -569,8 +570,12 @@ sub toggle_nodes {
} @cant;
my $count = @reasons;
interactive_msg(
- P("One package cannot be installed", "Some packages can't be installed", $count),
- P("Sorry, the following package cannot be selected:\n\n%s", "Sorry, the following packages can't be selected:\n\n%s", $count, join("\n", @reasons)),
+ $count==1 ?
+ N("One package cannot be installed")
+ : N("Some packages can't be installed"),
+ $count==1 ?
+ N("Sorry, the following package cannot be selected:\n\n%s",join("\n", @reasons))
+ : N("Sorry, the following packages can't be selected:\n\n%s", join("\n", @reasons)),
scroll => 1,
);
foreach (@cant) {