summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-04-26 16:10:53 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-04-26 16:10:53 -0300
commit1eacdc8a8733849da8152eb4ffe54886ed4890d1 (patch)
tree648aa704e0f8c005456b545647662e90de568634 /usr/local
parentca23c2f84438449490589c6c1ea2578f8c62ae29 (diff)
downloadpfsense-1eacdc8a8733849da8152eb4ffe54886ed4890d1.zip
pfsense-1eacdc8a8733849da8152eb4ffe54886ed4890d1.tar.gz
Implement gettext()
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/system_advanced_admin.php77
-rw-r--r--usr/local/www/system_advanced_misc.php76
-rw-r--r--usr/local/www/system_advanced_network.php50
3 files changed, 102 insertions, 101 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php
index 954b625..3800a9e 100644
--- a/usr/local/www/system_advanced_admin.php
+++ b/usr/local/www/system_advanced_admin.php
@@ -76,11 +76,11 @@ if ($_POST) {
/* input validation */
if ($_POST['webguiport'])
if(!is_port($_POST['webguiport']))
- $input_errors[] = "You must specify a valid webConfigurator port number";
+ $input_errors[] = gettext("You must specify a valid webConfigurator port number");
if ($_POST['sshport'])
if(!is_port($_POST['sshport']))
- $input_errors[] = "You must specify a valid port number";
+ $input_errors[] = gettext("You must specify a valid port number");
if($_POST['sshdkeyonly'] == "yes")
$config['system']['ssh']['sshdkeyonly'] = "enabled";
@@ -157,7 +157,8 @@ if ($_POST) {
$savemsg = get_std_save_message($retval);
if ($restart_webgui)
- $savemsg .= "<br />One moment...redirecting to {$url} in 20 seconds.";
+ #$savemsg .= sprintf("<br />" . gettext("One moment...redirecting to %s in 20 seconds."),{$url});
+ $savemsg .= "<br />" . gettext("One moment...redirecting to {$url} in 20 seconds.");
conf_mount_rw();
setup_serial_port();
@@ -212,18 +213,18 @@ function prot_change() {
<div class="tabcont">
<span class="vexpl">
<span class="red">
- <strong>NOTE:&nbsp</strong>
+ <strong><?=gettext("NOTE"); ?>:&nbsp</strong>
</span>
- The options on this page are intended for use by advanced users only.
+ <?=gettext("The options on this page are intended for use by advanced users only."); ?>
<br/>
</span>
<br/>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td colspan="2" valign="top" class="listtopic">webConfigurator</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("webConfigurator"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Protocol</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Protocol"); ?></td>
<td width="78%" class="vtable">
<?php
if ($pconfig['webguiproto'] == "http")
@@ -240,14 +241,14 @@ function prot_change() {
HTTPS
<?php if (!$certs_available): ?>
<br/>
- No Certificates have been defined. You must
- <a href="system_certmanager.php">Create or Import</a>
- a Certificate before SSL can be enabled.
+ <?=gettext("No Certificates have been defined. You must"); ?>
+ <a href="system_certmanager.php"><?=gettext("Create or Import"); ?></a>
+ <?=gettext("a Certificate before SSL can be enabled."); ?>
<?php endif; ?>
</td>
</tr>
<tr id="ssl_opts">
- <td width="22%" valign="top" class="vncell">SSL Certificate</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("SSL Certificate"); ?></td>
<td width="78%" class="vtable">
<select name="ssl-certref" id="ssl-certref" class="formselect">
<?php
@@ -262,14 +263,14 @@ function prot_change() {
</td>
</tr>
<tr>
- <td valign="top" class="vncell">TCP port</td>
+ <td valign="top" class="vncell"><?=gettext("TCP port"); ?></td>
<td class="vtable">
<input name="webguiport" type="text" class="formfld unknown" id="webguiport" "size="5" value="<?=htmlspecialchars($config['system']['webgui']['port']);?>">
<br>
<span class="vexpl">
- Enter a custom port number for the webConfigurator
+ <?=gettext("Enter a custom port number for the webConfigurator
above if you want to override the default (80 for HTTP, 443
- for HTTPS). Changes will take effect immediately after save.
+ for HTTPS). Changes will take effect immediately after save."); ?>
</span>
</td>
</tr>
@@ -283,47 +284,47 @@ function prot_change() {
$lockout_interface = "WAN";
?>
<input name="noantilockout" type="checkbox" id="noantilockout" value="yes" <?php if ($pconfig['noantilockout']) echo "checked"; ?> />
- <strong>Disable webConfigurator anti-lockout rule</strong>
+ <strong><?=gettext("Disable webConfigurator anti-lockout rule"); ?></strong>
<br/>
- When this is unchecked, access to the webConfigurator on the <?=$lockout_interface;?>
+ <?=gettext("When this is unchecked, access to the webConfigurator on the $lockout_interface
interface is always permitted, regardless of the user-defined firewall
rule set. Check this box to disable this automatically added rule, so access
to the webConfigurator is controlled by the user-defined firewall rules
- (ensure you have a firewall rule in place that allows you in, or you will
- lock yourself out!). <em> Hint: the &quot;Set interface(s) IP address&quot;
- option in the console menu resets this setting as well. </em>
+ (ensure you have a firewall rule in place that allows you in, or you will"); ?>
+ <?=gettext("lock yourself out!)"); ?>. <em> <?=gettext("Hint: the &quot;Set interface(s) IP address&quot;
+ option in the console menu resets this setting as well."); ?> </em>
</td>
</tr>
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<tr>
- <td colspan="2" valign="top" class="listtopic">Secure Shell</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Secure Shell"); ?></td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Secure Shell Server</td>
<td width="78%" class="vtable">
<input name="enablesshd" type="checkbox" id="enablesshd" value="yes" <?php if (isset($pconfig['enablesshd'])) echo "checked"; ?> />
- <strong>Enable Secure Shell</strong>
+ <strong><?=gettext("Enable Secure Shell"); ?></strong>
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Authentication Method</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Authentication Method"); ?></td>
<td width="78%" class="vtable">
<input name="sshdkeyonly" type="checkbox" id="sshdkeyonly" value="yes" <?php if ($pconfig['sshdkeyonly']) echo "checked"; ?> />
- <strong>Disable Password login for Secure Shell (rsa key only)</strong>
+ <strong><?=gettext("Disable Password login for Secure Shell (rsa key only)"); ?></strong>
<br/>
- When enabled, authorized keys need to be configured for each
+ <?=gettext("When enabled, authorized keys need to be configured for each"); ?>
<a href="system_usermanager.php">user</a>
- that has been granted secure shell access.
+ <?=gettext("that has been granted secure shell access."); ?>
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">SSH port</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("SSH port"); ?></td>
<td width="78%" class="vtable">
<input name="sshport" type="text" id="sshport" value="<?php echo $pconfig['sshport']; ?>" />
<br/>
- <span class="vexpl">Note: Leave this blank for the default of 22</span>
+ <span class="vexpl"><?=gettext("Note: Leave this blank for the default of 22"); ?></span>
</td>
</tr>
<tr>
@@ -331,15 +332,15 @@ function prot_change() {
</tr>
<?php if($g['platform'] == "pfSense" || $g['platform'] == "cdrom"): ?>
<tr>
- <td colspan="2" valign="top" class="listtopic">Serial Communcations</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Serial Communcations"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Serial Terminal</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Serial Terminal"); ?></td>
<td width="78%" class="vtable">
<input name="enableserial" type="checkbox" id="enableserial" value="yes" <?php if (isset($pconfig['enableserial'])) echo "checked"; ?> />
- <strong>This will enable the first serial port with 9600/8/N/1</strong>
+ <strong><?=gettext("This will enable the first serial port with 9600/8/N/1"); ?></strong>
<br>
- <span class="vexpl">Note: This will disable the internal video card/keyboard</span>
+ <span class="vexpl"><?=gettext("Note: This will disable the internal video card/keyboard"); ?></span>
</td>
</tr>
<tr>
@@ -347,15 +348,15 @@ function prot_change() {
</tr>
<?php endif; ?>
<tr>
- <td colspan="2" valign="top" class="listtopic">Console Options</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Console Options"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Console menu</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Console menu"); ?></td>
<td width="78%" class="vtable">
<input name="disableconsolemenu" type="checkbox" id="disableconsolemenu" value="yes" <?php if ($pconfig['disableconsolemenu']) echo "checked"; ?> />
- <strong>Password protect the console menu</strong>
+ <strong><?=gettext("Password protect the console menu"); ?></strong>
<br/>
- <span class="vexpl">Changes to this option will take effect after a reboot.</span>
+ <span class="vexpl"><?=gettext("Changes to this option will take effect after a reboot."); ?></span>
</td>
</tr>
<tr>
@@ -392,17 +393,17 @@ function prot_change() {
if ($restart_sshd) {
mwexec("/usr/bin/killall sshd");
- log_error("secure shell configuration has changed. Stopping sshd.");
+ log_error(gettext("secure shell configuration has changed. Stopping sshd."));
if ($config['system']['enablesshd']) {
- log_error("secure shell configuration has changed. Restarting sshd.");
+ log_error(gettext("secure shell configuration has changed. Restarting sshd."));
touch("{$g['tmp_path']}/start_sshd");
}
}
if ($restart_webgui) {
ob_flush();
flush();
- log_error("webConfigurator configuration has changed. Restarting webConfigurator.");
+ log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
touch("{$g['tmp_path']}/restart_webgui");
}
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index 6bd5d3a..e6c237e 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -101,9 +101,9 @@ if ($_POST) {
$retval = 0;
$retval = filter_configure();
if(stristr($retval, "error") <> true)
- $savemsg = get_std_save_message($retval);
+ $savemsg = get_std_save_message(gettext($retval));
else
- $savemsg = $retval;
+ $savemsg = gettext($retval);
activate_powerd();
load_glxsb();
@@ -144,44 +144,44 @@ include("head.inc");
<div class="tabcont">
<span class="vexpl">
<span class="red">
- <strong>NOTE:&nbsp</strong>
+ <strong><?=gettext("NOTE:"); ?>&nbsp</strong>
</span>
- The options on this page are intended for use by advanced users only.
+ <?=gettext("The options on this page are intended for use by advanced users only."); ?>
<br/>
</span>
<br/>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td colspan="2" valign="top" class="listtopic">Load Balancing</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Load Balancing"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Load Balancing</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
<td width="78%" class="vtable">
<input name="lb_use_sticky" type="checkbox" id="lb_use_sticky" value="yes" <?php if ($pconfig['lb_use_sticky']) echo "checked=\"checked\""; ?> />
- <strong>Use sticky connections</strong><br/>
- Successive connections will be redirected to the servers
+ <strong><?=gettext("Use sticky connections"); ?></strong><br/>
+ <?=gettext("Successive connections will be redirected to the servers
in a round-robin manner with connections from the same
- source being sent to the same web server. This "sticky
- connection" will exist as long as there are states that
+ source being sent to the same web server. This 'sticky
+ connection' will exist as long as there are states that
refer to this connection. Once the states expire, so will
the sticky connection. Further connections from that host
will be redirected to the next web server in the round
- robin.
+ robin."); ?>
</td>
</tr>
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<tr>
- <td colspan="2" valign="top" class="listtopic">Power savings</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Power savings"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">PowerD</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("PowerD"); ?></td>
<td width="78%" class="vtable">
<input name="powerd_enable" type="checkbox" id="powerd_enable" value="yes" <?php if ($pconfig['powerd_enable']) echo "checked"; ?> />
- <strong>Use PowerD</strong><br/>
+ <strong><?=gettext("Use PowerD"); ?></strong><br/>
<br />
- The powerd utility monitors the system state and sets various power control
+ <?=gettext("The powerd utility monitors the system state and sets various power control
options accordingly. It offers three modes (maximum, minimum, and
adaptive) that can be individually selected while on AC power or batteries.
The modes maximum, minimum, and adaptive may be abbreviated max,
@@ -190,61 +190,61 @@ include("head.inc");
Adaptive mode attempts to strike a balance by degrading performance when
the system appears idle and increasing it when the system is busy. It
offers a good balance between a small performance loss for greatly
- increased power savings. The default mode for pfSense is adaptive.
+ increased power savings. The default mode for pfSense is adaptive."); ?>
</td>
</tr>
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<tr>
- <td colspan="2" valign="top" class="listtopic">glxsb Crypto Acceleration</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("glxsb Crypto Acceleration"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">glxsb</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("glxsb"); ?></td>
<td width="78%" class="vtable">
<input name="glxsb_enable" type="checkbox" id="glxsb_enable" value="yes" <?php if ($pconfig['glxsb_enable']) echo "checked"; ?> />
- <strong>Use glxsb</strong><br/>
+ <strong><?=gettext("Use glxsb"); ?></strong><br/>
<br />
- The AMD Geode LX Security Block will accelerate some cryptographic functions
+ <?=gettext("The AMD Geode LX Security Block will accelerate some cryptographic functions
on systems which have the chip. Do not enable this option if you have a
Hifn cryptographic acceleration card, as this will take precedence and the
Hifn card will not be used. Acceleration should be automatic for IPsec
- when using Rijndael (AES). OpenVPN should be set for AES-128-CBC.
+ when using Rijndael (AES). OpenVPN should be set for AES-128-CBC."); ?>
<br/><br/>
- If you do not have a glxsb chip in your system, this option will have no
- effect. To unload the module, uncheck this option and then reboot.
+ <?=gettext("If you do not have a glxsb chip in your system, this option will have no
+ effect. To unload the module, uncheck this option and then reboot."); ?>
</td>
</tr>
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<tr>
- <td colspan="2" valign="top" class="listtopic">IP Security</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("IP Security"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Security Assocications</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Security Assocications"); ?></td>
<td width="78%" class="vtable">
<input name="preferoldsa_enable" type="checkbox" id="preferoldsa_enable" value="yes" <?php if ($pconfig['preferoldsa_enable']) echo "checked"; ?> />
- <strong>Prefer older IPsec SAs</strong>
+ <strong><?=gettext("Prefer older IPsec SAs"); ?></strong>
<br />
- By default, if several SAs match, the newest one is
+ <?=gettext("By default, if several SAs match, the newest one is
preferred if it's at least 30 seconds old. Select this
- option to always prefer old SAs over new ones.
+ option to always prefer old SAs over new ones."); ?>
</td>
</tr>
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<tr>
- <td colspan="2" valign="top" class="listtopic">Schedules</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Schedules"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Schedule States</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Schedule States"); ?></td>
<td width="78%" class="vtable">
<input name="schedule_states" type="checkbox" id="schedule_states" value="yes" <?php if ($pconfig['schedule_states']) echo "checked"; ?> />
<br />
- By default schedules clear the states of existing connections when expiry time has come.
- This option allows to override this setting by not clearing states for existing connections.
+ <?=gettext("By default schedules clear the states of existing connections when expiry time has come.
+ This option allows to override this setting by not clearing states for existing connections."); ?>
</td>
</tr>
<tr>
@@ -252,27 +252,27 @@ include("head.inc");
</tr>
<?php if($g['platform'] == "pfSenseDISABLED"): ?>
<tr>
- <td colspan="2" valign="top" class="listtopic">Hardware Settings</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Hardware Settings"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Hard disk standby time </td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Hard disk standby time "); ?></td>
<td width="78%" class="vtable">
<select name="harddiskstandby" class="formselect">
<?php
## Values from ATA-2 http://www.t13.org/project/d0948r3-ATA-2.pdf (Page 66)
$sbvals = explode(" ", "0.5,6 1,12 2,24 3,36 4,48 5,60 7.5,90 10,120 15,180 20,240 30,241 60,242");
?>
- <option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected');?>>Always on</option>
+ <option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected');?>><?=gettext("Always on"); ?></option>
<?php
foreach ($sbvals as $sbval):
list($min,$val) = explode(",", $sbval);
?>
- <option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected');?>><?=$min;?> minutes</option>
+ <option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected');?>><?=$min;?> <?=gettext("minutes"); ?></option>
<?php endforeach; ?>
</select>
<br/>
- Puts the hard disk into standby mode when the selected amount of time after the last
- access has elapsed. <em>Do not set this for CF cards.</em>
+ <?=gettext("Puts the hard disk into standby mode when the selected amount of time after the last
+ access has elapsed."); ?> <em><?=gettext("Do not set this for CF cards."); ?></em>
</td>
</tr>
<tr>
diff --git a/usr/local/www/system_advanced_network.php b/usr/local/www/system_advanced_network.php
index b6ba121..32f496b 100644
--- a/usr/local/www/system_advanced_network.php
+++ b/usr/local/www/system_advanced_network.php
@@ -63,7 +63,7 @@ if ($_POST) {
$pconfig = $_POST;
if ($_POST['ipv6nat_enable'] && !is_ipaddr($_POST['ipv6nat_ipaddr']))
- $input_errors[] = "You must specify an IP address to NAT IPv6 packets.";
+ $input_errors[] = gettext("You must specify an IP address to NAT IPv6 packets.");
ob_flush();
flush();
@@ -125,9 +125,9 @@ if ($_POST) {
$retval = filter_configure();
if(stristr($retval, "error") <> true)
- $savemsg = get_std_save_message($retval);
+ $savemsg = get_std_save_message(gettext($retval));
else
- $savemsg = $retval;
+ $savemsg = gettext($retval);
}
}
@@ -180,36 +180,36 @@ function enable_change(enable_over) {
<div class="tabcont">
<span class="vexpl">
<span class="red">
- <strong>NOTE:&nbsp</strong>
+ <strong><?=gettext("NOTE:"); ?>&nbsp</strong>
</span>
- The options on this page are intended for use by advanced users only.
+ <?=gettext("The options on this page are intended for use by advanced users only."); ?>
<br/>
</span>
<br/>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td colspan="2" valign="top" class="listtopic">IPv6 Options</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("IPv6 Options"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Allow IPv6</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Allow IPv6"); ?></td>
<td width="78%" class="vtable">
<input name="ipv6allow" type="checkbox" id="ipv6allow" value="yes" <?php if ($pconfig['ipv6allow']) echo "checked"; ?> onclick="enable_change(false)" />
- <strong>Allow IPv6</strong><br/>
- All IPv6 will be blocked unless this box is checked.<br/>
+ <strong><?=gettext("Allow IPv6"); ?></strong><br/>
+ <?=gettext("All IPv6 will be blocked unless this box is checked."); ?><br/>
<br/>
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">IPv6 over IPv4 Tunneling</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("IPv6 over IPv4 Tunneling"); ?></td>
<td width="78%" class="vtable">
<input name="ipv6nat_enable" type="checkbox" id="ipv6nat_enable" value="yes" <?php if ($pconfig['ipv6nat_enable']) echo "checked"; ?> onclick="enable_change(false)" />
- <strong>Enable IPv4 NAT encapsulation of IPv6 packets</strong><br/>
- This provides an RFC 2893 compatibility mechanism
+ <strong><?=gettext("Enable IPv4 NAT encapsulation of IPv6 packets"); ?></strong><br/>
+ <?=gettext("This provides an RFC 2893 compatibility mechanism
that can be used to tunneling IPv6 packets over IPv4
routing infrastructures. If enabled, don't forget to
- add a firewall rule to permit IPv6 packets.<br/>
+ add a firewall rule to permit IPv6 packets."); ?><br/>
<br/>
- IP address :&nbsp;
+ <?=gettext("IP address :"); ?>&nbsp;
<input name="ipv6nat_ipaddr" type="text" class="formfld unknown" id="ipv6nat_ipaddr" size="20" value="<?=htmlspecialchars($pconfig['ipv6nat_ipaddr']);?>" />
</td>
</tr>
@@ -217,31 +217,31 @@ function enable_change(enable_over) {
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<tr>
- <td colspan="2" valign="top" class="listtopic">Network Interfaces</td>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Network Interfaces"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Device polling</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Device polling"); ?></td>
<td width="78%" class="vtable">
<input name="polling_enable" type="checkbox" id="polling_enable" value="yes" <?php if ($pconfig['polling_enable']) echo "checked"; ?>>
- <strong>Enable device polling</strong><br>
- Device polling is a technique that lets the system periodically poll network devices for new data instead of relying on interrupts. This prevents your webConfigurator, SSH, etc. from being inaccessible due to interrupt floods when under extreme load. Generally this is not recommended.
- Not all NICs support polling; see the <?= $g['product_name'] ?> homepage for a list of supported cards.
+ <strong><?=gettext("Enable device polling"); ?></strong><br>
+ <?=gettext("Device polling is a technique that lets the system periodically poll network devices for new data instead of relying on interrupts. This prevents your webConfigurator, SSH, etc. from being inaccessible due to interrupt floods when under extreme load. Generally this is not recommended.
+ Not all NICs support polling; see the $g['product_name'] homepage for a list of supported cards."); ?>
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Hardware Checksum Offloading</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Hardware Checksum Offloading"); ?></td>
<td width="78%" class="vtable">
<input name="disablechecksumoffloading" type="checkbox" id="disablechecksumoffloading" value="yes" <?php if (isset($config['system']['disablechecksumoffloading'])) echo "checked"; ?> />
- <strong>Disable hardware checksum offload</strong><br>
- Checking this option will disable hardware checksum offloading. Checksum offloading is broken in some hardware, particularly some Realtek cards. Rarely, drivers may have problems with checksum offloading and some specific NICs.
+ <strong><?=gettext("Disable hardware checksum offload"); ?></strong><br>
+ <?=gettext("Checking this option will disable hardware checksum offloading. Checksum offloading is broken in some hardware, particularly some Realtek cards. Rarely, drivers may have problems with checksum offloading and some specific NICs."); ?>
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">ARP Handling</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("ARP Handling"); ?></td>
<td width="78%" class="vtable">
<input name="sharednet" type="checkbox" id="sharednet" value="yes" <?php if (isset($pconfig['sharednet'])) echo "checked"; ?> />
- <strong>Suppress ARP messages</strong><br>
- This option will suppress ARP log messages when multiple interfaces reside on the same broadcast domain</strong>
+ <strong><?=gettext("Suppress ARP messages"); ?></strong><br>
+ <?=gettext("This option will suppress ARP log messages when multiple interfaces reside on the same broadcast domain"); ?></strong>
</td>
</tr>
<?php
OpenPOWER on IntegriCloud