media.cgi: Use language string keys already defined
authorAlf Høgemark <alf@i100.no>
Sun, 9 Feb 2014 10:03:04 +0000 (11:03 +0100)
committerAlf Høgemark <alf@i100.no>
Sat, 15 Feb 2014 14:23:46 +0000 (15:23 +0100)
html/cgi-bin/media.cgi

index 52d9337eb857caf8482e39bc52df64593e6977ba..6dc2b9c85d9a5fdc98af4e3df2c5f9f01befd733 100644 (file)
@@ -152,7 +152,7 @@ END
 
        for(my $i = 1; $i <= $#iostat1; $i++){
                if ( $i eq '1' ){
-                       print "<tr><td align='center' class='boldbase'><b>Device</b></td><td align='center' class='boldbase'><b>MB read</b></td><td align='center' class='boldbase'><b>MB writen</b></td></tr>";
+                       print "<tr><td align='center' class='boldbase'><b>$Lang::tr{'device'}</b></td><td align='center' class='boldbase'><b>MB read</b></td><td align='center' class='boldbase'><b>MB writen</b></td></tr>";
                }else{
                        print "<tr><td align='center'>$iostat1[$i]</td><td align='center'>$iostat2[$i]</td><td align='center'>$iostat3[$i]</td></tr>";
                }
@@ -206,7 +206,7 @@ sub diskbox {
 
                if ( $status[1]=~/standby/){
                        my $ftime = localtime((stat("/var/run/hddshutdown-$disk"))[9]);
-                       print"<B>Disk $disk status:<font color=#FF0000>".$status[1]."</font></B> (since $ftime)";
+                       print"<B>Disk $disk status:<font color=#FF0000>".$status[1]."</font></B> ($Lang::tr{'since'} $ftime)";
                }else{
                        print"<B>Disk $disk status:<font color=#00FF00>".$status[1]."</font></B>";
                }