diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-29 11:48:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-29 11:48:19 +0000 |
commit | 43e65932595a8b5cea9915b34d528492a8bf9919 (patch) | |
tree | 8e6df80f9819e075aec9c47c56bfcce8e37f0681 | |
parent | a55d10bd9f560e41821931cf6031280d64283d32 (diff) | |
download | urpmi-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-x | urpmi | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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}) { |