diff options
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index f735ce8..abbd826 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -85,11 +85,11 @@ $curcfg = $config['system']['firmware']; <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="system information"> <tbody> <tr> - <td width="25%" class="vncellt">Name</td> + <td width="25%" class="vncellt"><?=gettext("Name");?></td> <td width="75%" class="listr"><?php echo $config['system']['hostname'] . "." . $config['system']['domain']; ?></td> </tr> <tr> - <td width="25%" valign="top" class="vncellt">Version</td> + <td width="25%" valign="top" class="vncellt"><?=gettext("Version");?></td> <td width="75%" class="listr"> <strong><?php readfile("/etc/version"); ?></strong> (<?php echo php_uname("m"); ?>) @@ -106,7 +106,7 @@ $curcfg = $config['system']['firmware']; </tr> <?php if(!$g['hideplatform']): ?> <tr> - <td width="25%" class="vncellt">Platform</td> + <td width="25%" class="vncellt"><?=gettext("Platform");?></td> <td width="75%" class="listr"> <?=htmlspecialchars($g['platform']);?> <?php if (($g['platform'] == "nanobsd") && (file_exists("/etc/nanosize.txt"))) { @@ -124,7 +124,7 @@ $curcfg = $config['system']['firmware']; $rw = is_writable("/") ? "(rw)" : "(ro)"; ?> <tr> - <td width="25%" class="vncellt">NanoBSD Boot Slice</td> + <td width="25%" class="vncellt"><?=gettext("NanoBSD Boot Slice");?></td> <td width="75%" class="listr"> <?=htmlspecialchars(nanobsd_friendly_slice_name($BOOT_DEVICE));?> / <?=htmlspecialchars($BOOTFLASH);?> <?php echo $rw; ?> <?php if ($BOOTFLASH != $ACTIVE_SLICE): ?> @@ -135,7 +135,7 @@ $curcfg = $config['system']['firmware']; </tr> <?php endif; ?> <tr> - <td width="25%" class="vncellt">CPU Type</td> + <td width="25%" class="vncellt"><?=gettext("CPU Type");?></td> <td width="75%" class="listr"> <?php $cpumodel = ""; @@ -148,12 +148,12 @@ $curcfg = $config['system']['firmware']; </tr> <?php if ($hwcrypto): ?> <tr> - <td width="25%" class="vncellt">Hardware crypto</td> + <td width="25%" class="vncellt"><?=gettext("Hardware crypto");?></td> <td width="75%" class="listr"><?=htmlspecialchars($hwcrypto);?></td> </tr> <?php endif; ?> <tr> - <td width="25%" class="vncellt">Uptime</td> + <td width="25%" class="vncellt"><?=gettext("Uptime");?></td> <td width="75%" class="listr" id="uptime"><?= htmlspecialchars(get_uptime()); ?></td> </tr> <tr> @@ -163,7 +163,7 @@ $curcfg = $config['system']['firmware']; </td> </tr> <tr> - <td width="30%" class="vncellt">DNS server(s)</td> + <td width="30%" class="vncellt"><?=gettext("DNS server(s)");?></td> <td width="70%" class="listr"> <?php $dns_servers = get_dns_servers(); @@ -175,20 +175,20 @@ $curcfg = $config['system']['firmware']; </tr> <?php if ($config['revision']): ?> <tr> - <td width="25%" class="vncellt">Last config change</td> + <td width="25%" class="vncellt"><?=gettext("Last config change");?></td> <td width="75%" class="listr"><?= htmlspecialchars(date("D M j G:i:s T Y", intval($config['revision']['time'])));?></td> </tr> <?php endif; ?> <tr> - <td width="25%" class="vncellt">State table size</td> + <td width="25%" class="vncellt"><?=gettext("State table size");?></td> <td width="75%" class="listr"> <span id="pfstate"><?= htmlspecialchars(get_pfstate()); ?></span> <br /> - <a href="diag_dump_states.php">Show states</a> + <a href="diag_dump_states.php"><?=gettext("Show states");?></a> </td> </tr> <tr> - <td width="25%" class="vncellt">MBUF Usage</td> + <td width="25%" class="vncellt"><?=gettext("MBUF Usage");?></td> <td width="75%" class="listr"> <?php $mbufs_output=`netstat -mb | grep "mbuf clusters in use" | awk '{ print $1 }'`; @@ -199,7 +199,7 @@ $curcfg = $config['system']['firmware']; </tr> <?php if (get_temp() != ""): ?> <tr> - <td width="25%" class="vncellt">Temperature</td> + <td width="25%" class="vncellt"><?=gettext("Temperature");?></td> <td width="75%" class="listr"> <?php $TempMeter = $temp = get_temp(); ?> <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="tempwidtha" id="tempwidtha" width="<?= round($TempMeter); ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="tempwidthb" id="tempwidthb" width="<?= (100 - $TempMeter); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> @@ -209,13 +209,13 @@ $curcfg = $config['system']['firmware']; </tr> <?php endif; ?> <tr> - <td width="25%" class="vncellt">Load average</td> + <td width="25%" class="vncellt"><?=gettext("Load average");?></td> <td width="75%" class="listr"> <div id="load_average" title="Last 1, 5 and 15 minutes"><?= get_load_average(); ?></div> </td> </tr> <tr> - <td width="25%" class="vncellt">CPU usage</td> + <td width="25%" class="vncellt"><?=gettext("CPU usage");?></td> <td width="75%" class="listr"> <?php $cpuUsage = "0"; ?> <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="cpuwidtha" id="cpuwidtha" width="<?= $cpuUsage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="cpuwidthb" id="cpuwidthb" width="<?= (100 - $cpuUsage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> @@ -224,7 +224,7 @@ $curcfg = $config['system']['firmware']; </td> </tr> <tr> - <td width="25%" class="vncellt">Memory usage</td> + <td width="25%" class="vncellt"><?=gettext("Memory usage");?></td> <td width="75%" class="listr"> <?php $memUsage = mem_usage(); ?> <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" name="memwidtha" id="memwidtha" width="<?= $memUsage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" name="memwidthb" id="memwidthb" width="<?= (100 - $memUsage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> @@ -234,7 +234,7 @@ $curcfg = $config['system']['firmware']; </tr> <?php if($showswap == true): ?> <tr> - <td width="25%" class="vncellt">SWAP usage</td> + <td width="25%" class="vncellt"><?=gettext("SWAP usage");?></td> <td width="75%" class="listr"> <?php $swapusage = swap_usage(); ?> <img src="./themes/<?= $g['theme']; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_blue.gif" height="15" width="<?= $swapusage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_gray.gif" height="15" width="<?= (100 - $swapusage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g['theme']; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> @@ -244,7 +244,7 @@ $curcfg = $config['system']['firmware']; </tr> <?php endif; ?> <tr> - <td width="25%" class="vncellt">Disk usage</td> + <td width="25%" class="vncellt"><?=gettext("Disk usage");?></td> <td width="75%" class="listr"> <?php $diskusage = disk_usage(); ?> <img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_blue.gif" height="15" width="<?= $diskusage; ?>" border="0" align="middle" alt="red bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_gray.gif" height="15" width="<?= (100 - $diskusage); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" /> |