summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-29 11:48:19 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-29 11:48:19 +0000
commit43e65932595a8b5cea9915b34d528492a8bf9919 (patch)
tree8e6df80f9819e075aec9c47c56bfcce8e37f0681
parenta55d10bd9f560e41821931cf6031280d64283d32 (diff)
downloadurpmi-43e65932595a8b5cea9915b34d528492a8bf9919.tar
urpmi-43e65932595a8b5cea9915b34d528492a8bf9919.tar.gz
urpmi-43e65932595a8b5cea9915b34d528492a8bf9919.tar.bz2
urpmi-43e65932595a8b5cea9915b34d528492a8bf9919.tar.xz
urpmi-43e65932595a8b5cea9915b34d528492a8bf9919.zip
(ask_choice) enable translator to control what is displayed
-rwxr-xr-xurpmi7
1 files changed, 4 insertions, 3 deletions
diff --git a/urpmi b/urpmi
index 421cc72d..445821b4 100755
--- a/urpmi
+++ b/urpmi
@@ -431,9 +431,10 @@ sub ask_choice {
my ($urpm, $_db, $_state, $choices) = @_;
my $n = 1; #- default value.
my (@l) = map {
- join(': ', scalar($_->fullname), ($_->summary || ()))
- . ($_->flag_installed ? ' (to upgrade)' : '')
- . ($_->flag_upgrade ? ' (to install)' : '');
+ my ($name, $summary) = (scalar($_->fullname), $_->summary);
+ #-PO: here format is "<package_name>: <summary> (to upgrade)"
+ $_->flag_installed ? ($_->summary ? N("%s: %s (to upgrade)", $name, $summary) : N("%s (to upgrade)", $name)) :
+ $_->flag_upgrade ? ($_->summary ? N("%s: %s (to install)", $name, $summary) : N("%s (to install)", $name)) : $name;
} @$choices;
if (@l > 1 && !$urpm->{options}{auto}) {