Use translations instead of fixed strings
authorJamie Cameron <jcameron@webmin.com>
Sun, 16 Nov 2008 03:33:51 +0000 (03:33 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 16 Nov 2008 03:33:51 +0000 (03:33 +0000)
blue-theme/right.cgi

index a239851..c2b489f 100755 (executable)
@@ -90,8 +90,10 @@ if ($level == 0) {
                        @m = &proc::get_memory_info();
                        if (@m && $m[0]) {
                                print "<tr> <td><b>$text{'right_real'}</b></td>\n";
-                               print "<td>",&nice_size($m[0]*1024)." total, ".
-                                           &nice_size(($m[0]-$m[1])*1024)." used</td> </tr>\n";
+                               print "<td>",&text('right_used',
+                                       &nice_size($m[0]*1024),
+                                       &nice_size(($m[0]-$m[1])*1024)),
+                                     "</td> </tr>\n";
                                print "<tr> <td></td>\n";
                                print "<td>",&bar_chart($m[0], $m[0]-$m[1], 1),
                                      "</td> </tr>\n";
@@ -99,8 +101,10 @@ if ($level == 0) {
 
                        if (@m && $m[2]) {
                                print "<tr> <td><b>$text{'right_virt'}</b></td>\n";
-                               print "<td>",&nice_size($m[2]*1024)." total, ".
-                                           &nice_size(($m[2]-$m[3])*1024)." used</td> </tr>\n";
+                               print "<td>",&text('right_used',
+                                       &nice_size($m[2]*1024),
+                                       &nice_size(($m[2]-$m[3])*1024)),
+                                     "</td> </tr>\n";
                                print "<tr> <td></td>\n";
                                print "<td>",&bar_chart($m[2], $m[2]-$m[3], 1),
                                      "</td> </tr>\n";