summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-09 13:25:24 +0545
committerPhil Davis <phil.davis@inf.org>2017-02-09 13:25:24 +0545
commit7f0d6ccf72fae0f60203f4eb154eee5912796d35 (patch)
treef1bdcd732a924fb4297d7453041c1a3c1aecdfff /src/usr/local/www/status_interfaces.php
parentf0136b178022cf3b04a6c3d577d457cf3bc03418 (diff)
downloadpfsense-7f0d6ccf72fae0f60203f4eb154eee5912796d35.zip
pfsense-7f0d6ccf72fae0f60203f4eb154eee5912796d35.tar.gz
setHelp and getttext format for status*
Diffstat (limited to 'src/usr/local/www/status_interfaces.php')
-rw-r--r--src/usr/local/www/status_interfaces.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/usr/local/www/status_interfaces.php b/src/usr/local/www/status_interfaces.php
index fe15d06..0c53fc4 100644
--- a/src/usr/local/www/status_interfaces.php
+++ b/src/usr/local/www/status_interfaces.php
@@ -119,7 +119,7 @@ foreach ($ifdescrs as $ifdescr => $ifname):
showDefBtn($ifinfo['pptplink'], 'PPTP', $ifinfo['pptplink'], $ifdescr, $ifinfo['pptplink'] == "up" ? gettext("Disconnect") : gettext("Connect"), '');
showDefBtn($ifinfo['l2tplink'], 'L2TP', $ifinfo['l2tplink'], $ifdescr, $ifinfo['l2tplink'] == "up" ? gettext("Disconnect") : gettext("Connect"), '');
showDefBtn($ifinfo['ppplink'], 'PPP', $ifinfo['ppplink'], $ifdescr, ($ifinfo['ppplink'] == "up" && !$ifinfo['nodevice']) ? gettext("Disconnect") : gettext("Connect"), '');
- showDef($ifinfo['ppp_uptime'] || $ifinfo['ppp_uptime_accumulated'], gettext("Uptime") . ' ' . ($ifinfo['ppp_uptime_accumulated'] ? '(historical)':''), $ifinfo['ppp_uptime'] . $ifinfo['ppp_uptime_accumulated']);
+ showDef($ifinfo['ppp_uptime'] || $ifinfo['ppp_uptime_accumulated'], gettext("Uptime") . ' ' . ($ifinfo['ppp_uptime_accumulated'] ? gettext('(historical)'):''), $ifinfo['ppp_uptime'] . $ifinfo['ppp_uptime_accumulated']);
showDef($ifinfo['cell_rssi'], gettext("Cell Signal (RSSI)"), $ifinfo['cell_rssi']);
showDef($ifinfo['cell_mode'], gettext("Cell Mode"), $ifinfo['cell_mode']);
showDef($ifinfo['cell_simstate'], gettext("Cell SIM State"), $ifinfo['cell_simstate']);
@@ -174,7 +174,7 @@ foreach ($ifdescrs as $ifdescr => $ifname):
showDef(isset($ifinfo['collisions']), gettext("Collisions"), $ifinfo['collisions']);
} // e-o-if ($ifinfo['status'] != "down")
- showDef($ifinfo['bridge'], gettext('Bridge (') . $ifinfo['bridgeint'] . ')', $ifinfo['bridge']);
+ showDef($ifinfo['bridge'], sprintf(gettext('Bridge (%1$s)'), $ifinfo['bridgeint']), $ifinfo['bridge']);
if (file_exists("/usr/bin/vmstat")) {
$real_interface = "";
@@ -202,10 +202,10 @@ foreach ($ifdescrs as $ifdescr => $ifname):
<?php
endforeach;
-print_info_box(gettext("Using dial-on-demand will bring the connection up again if any packet ".
- "triggers it. To substantiate this point: disconnecting manually ".
- "will <strong>not</strong> prevent dial-on-demand from making connections ".
- "to the outside! Don't use dial-on-demand if the line ".
- "is to be kept disconnected."), 'warning', false);
+print_info_box(sprintf(gettext('Using dial-on-demand will bring the connection up again if any packet ' .
+ 'triggers it. To substantiate this point: disconnecting manually ' .
+ 'will %1$snot%2$s prevent dial-on-demand from making connections ' .
+ 'to the outside! Don\'t use dial-on-demand if the line ' .
+ 'is to be kept disconnected.'), '<strong>', '</strong>'), 'warning', false);
include("foot.inc");
?>
OpenPOWER on IntegriCloud