summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_lagg_edit.php
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-01 20:49:16 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-01 20:49:16 -0300
commitf28e93d2c09d1a7ed097cfe1f410aa21513ddc13 (patch)
tree840fdc8074b73a7d7be58d734162e3bdf38e345d /usr/local/www/interfaces_lagg_edit.php
parentb705a25b4c9e238300a75da866353bb807be1333 (diff)
downloadpfsense-f28e93d2c09d1a7ed097cfe1f410aa21513ddc13.zip
pfsense-f28e93d2c09d1a7ed097cfe1f410aa21513ddc13.tar.gz
Implement gettext() calls on interfaces_lagg_edit.php
Diffstat (limited to 'usr/local/www/interfaces_lagg_edit.php')
-rw-r--r--usr/local/www/interfaces_lagg_edit.php82
1 files changed, 41 insertions, 41 deletions
diff --git a/usr/local/www/interfaces_lagg_edit.php b/usr/local/www/interfaces_lagg_edit.php
index 8b67ab6..d507c22 100644
--- a/usr/local/www/interfaces_lagg_edit.php
+++ b/usr/local/www/interfaces_lagg_edit.php
@@ -76,7 +76,7 @@ if ($_POST) {
/* input validation */
$reqdfields = explode(" ", "members proto");
- $reqdfieldsn = explode(",", "Member interfaces, Lagg protocol");
+ $reqdfieldsn = array(",", gettext("Member interfaces"), gettext("Lagg protocol"));
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
@@ -89,7 +89,7 @@ if ($_POST) {
$lagg['laggif'] = interface_lagg_configure($lagg);
if ($lagg['laggif'] == "" || !stristr($lagg['laggif'], "lagg"))
- $input_errors[] = "Error occured creating interface, please retry.";
+ $input_errors[] = gettext("Error occured creating interface, please retry.");
else {
if (isset($id) && $a_laggs[$id])
$a_laggs[$id] = $lagg;
@@ -108,7 +108,7 @@ if ($_POST) {
}
}
-$pgtitle = array("Firewall","LAGG","Edit");
+$pgtitle = array(gettext("Firewall"),"LAGG",gettext("Edit"));
include("head.inc");
?>
@@ -119,10 +119,10 @@ include("head.inc");
<form action="interfaces_lagg_edit.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td colspan="2" valign="top" class="listtopic">LAGG configuration</td>
+ <td colspan="2" valign="top" class="listtopic">LAGG <?=gettext("configuration"); ?></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncellreq">Parent interface</td>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Parent interface"); ?></td>
<td width="78%" class="vtable">
<select name="members[]" multiple="true" size="4" class="formselect">
<?php
@@ -137,10 +137,10 @@ include("head.inc");
?>
</select>
<br/>
- <span class="vexpl">Choose the members that will be used for the link aggregation.</span></td>
+ <span class="vexpl"><?=gettext("Choose the members that will be used for the link aggregation"); ?>.</span></td>
</tr>
<tr>
- <td valign="top" class="vncellreq">Lag proto</td>
+ <td valign="top" class="vncellreq"><?=gettext("Lag proto"); ?></td>
<td class="vtable">
<select name="proto" class="formselect" id="proto">
<?php
@@ -156,57 +156,57 @@ include("head.inc");
<span class="vexpl">
<ul>
<li>
- <b>failover</b><br/>
- Sends and receives traffic only through the master port. If
- the master port becomes unavailable, the next active port is
- used. The first interface added is the master port; any
- interfaces added after that are used as failover devices.
+ <b><?=gettext("failover"); ?></b><br/>
+ <?=gettext("Sends and receives traffic only through the master port. If " .
+ "the master port becomes unavailable, the next active port is " .
+ "used. The first interface added is the master port; any " .
+ "interfaces added after that are used as failover devices."); ?>
</li><li>
- <b>fec</b><br/> Supports Cisco EtherChannel. This is a static setup and
- does not negotiate aggregation with the peer or exchange
- frames to monitor the link.
+ <b><?=gettext("fec"); ?></b><br/> <?=gettext("Supports Cisco EtherChannel. This is a static setup and " .
+ "does not negotiate aggregation with the peer or exchange " .
+ "frames to monitor the link."); ?>
</li><li>
- <b>lacp</b><br/> Supports the IEEE 802.3ad Link Aggregation Control Protocol
- (LACP) and the Marker Protocol. LACP will negotiate a set
- of aggregable links with the peer in to one or more Link
- Aggregated Groups. Each LAG is composed of ports of the
- same speed, set to full-duplex operation. The traffic will
- be balanced across the ports in the LAG with the greatest
- total speed, in most cases there will only be one LAG which
- contains all ports. In the event of changes in physical
- connectivity, Link Aggregation will quickly converge to a
- new configuration.
+ <b><?=gettext("lacp"); ?></b><br/> <?=gettext("Supports the IEEE 802.3ad Link Aggregation Control Protocol " .
+ "(LACP) and the Marker Protocol. LACP will negotiate a set " .
+ "of aggregable links with the peer in to one or more Link " .
+ "Aggregated Groups. Each LAG is composed of ports of the " .
+ "same speed, set to full-duplex operation. The traffic will " .
+ "be balanced across the ports in the LAG with the greatest " .
+ "total speed, in most cases there will only be one LAG which " .
+ "contains all ports. In the event of changes in physical " .
+ "connectivity, Link Aggregation will quickly converge to a " .
+ "new configuration."); ?>
</li><li>
- <b>loadbalance</b><br/> Balances outgoing traffic across the active ports based on
- hashed protocol header information and accepts incoming
- traffic from any active port. This is a static setup and
- does not negotiate aggregation with the peer or exchange
- frames to monitor the link. The hash includes the Ethernet
- source and destination address, and, if available, the VLAN
- tag, and the IP source and destination address.
+ <b><?=gettext("loadbalance"); ?></b><br/> <?=gettext("Balances outgoing traffic across the active ports based on " .
+ "hashed protocol header information and accepts incoming " .
+ "traffic from any active port. This is a static setup and " .
+ "does not negotiate aggregation with the peer or exchange " .
+ "frames to monitor the link. The hash includes the Ethernet " .
+ "source and destination address, and, if available, the VLAN " .
+ "tag, and the IP source and destination address") ?>.
</li><li>
- <b>roundrobin</b><br/> Distributes outgoing traffic using a round-robin scheduler
- through all active ports and accepts incoming traffic from
- any active port.
+ <b><?=gettext("roundrobin"); ?></b><br/> <?=gettext("Distributes outgoing traffic using a round-robin scheduler " .
+ "through all active ports and accepts incoming traffic from " .
+ "any active port"); ?>.
</li><li>
- <b>none</b><br/> This protocol is intended to do nothing: it disables any
- traffic without disabling the lagg interface itself.
+ <b><?=gettext("none"); ?></b><br/> <?=gettext("This protocol is intended to do nothing: it disables any " .
+ "traffic without disabling the lagg interface itself"); ?>.
</li>
</ul>
</span></td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell">Description</td>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Description"); ?></td>
<td width="78%" class="vtable">
<input name="descr" type="text" class="formfld unknown" id="descr" size="40" value="<?=htmlspecialchars($pconfig['descr']);?>">
- <br> <span class="vexpl">You may enter a description here
- for your reference (not parsed).</span></td>
+ <br> <span class="vexpl"><?=gettext("You may enter a description here " .
+ "for your reference (not parsed)"); ?>.</span></td>
</tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
<input type="hidden" name="laggif" value="<?=$pconfig['laggif']; ?>">
- <input name="Submit" type="submit" class="formbtn" value="Save"> <input type="button" value="Cancel" onclick="history.back()">
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"> <input type="button" value="<?=gettext("Cancel"); ?>" onclick="history.back()">
<?php if (isset($id) && $a_laggs[$id]): ?>
<input name="id" type="hidden" value="<?=$id;?>">
<?php endif; ?>
OpenPOWER on IntegriCloud