summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-05-13 20:17:44 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-01-02 14:54:04 +0100
commit500972477422461dccb27d1992ac57a8d9b14200 (patch)
tree797ae1bef19572b43c871d23c4da4c10365991b9 /perl-install
parent496968486b724e7f510f6cc3acfd195148265d14 (diff)
downloaddrakx-500972477422461dccb27d1992ac57a8d9b14200.tar
drakx-500972477422461dccb27d1992ac57a8d9b14200.tar.gz
drakx-500972477422461dccb27d1992ac57a8d9b14200.tar.bz2
drakx-500972477422461dccb27d1992ac57a8d9b14200.tar.xz
drakx-500972477422461dccb27d1992ac57a8d9b14200.zip
enable translators to better format remaining time
thus fixing mga#12490
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/common.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index f6d9c5d9d..49e045db1 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -283,7 +283,9 @@ sub formatXiB {
sub formatTime {
my ($s, $m, $h) = gmtime($_[0]);
if ($h) {
- sprintf "%02d:%02d", $h, $m;
+ sprintf
+ #-PO: here, "2:30" is remaining installation time (eg: "2:30" == 2 hour & 30 minutes)
+ N("%02d:%02d", $h, $m);
} elsif ($m > 1) {
N("%d minutes", $m);
} elsif ($m == 1) {