Commit 6612086c authored by Fabian Franz's avatar Fabian Franz Committed by Franco Fichtner

fixes for #427

parent 734c3cd7
...@@ -745,7 +745,7 @@ include("head.inc"); ...@@ -745,7 +745,7 @@ include("head.inc");
<td class="listMRr nowrap"><?php echo htmlspecialchars($filterent['time']);?></td> <td class="listMRr nowrap"><?php echo htmlspecialchars($filterent['time']);?></td>
<td class="listMRr nowrap"> <td class="listMRr nowrap">
<?php if ($filterent['direction'] == "out"): ?> <?php if ($filterent['direction'] == "out"): ?>
<span class="glyphicon glyphicon-cloud-download" alt="Direction=OUT" title="Direction=OUT"></span> <span class="glyphicon glyphicon-cloud-download" alt="<?= gettext('Direction=OUT') ?>" title="<?= gettext('Direction=OUT') ?>"></span>
<?php endif; ?> <?php endif; ?>
<?php echo htmlspecialchars($filterent['interface']);?></td> <?php echo htmlspecialchars($filterent['interface']);?></td>
<?php <?php
...@@ -787,7 +787,7 @@ include("head.inc"); ...@@ -787,7 +787,7 @@ include("head.inc");
<input type="hidden" value="<?= $int;?>" id="intf"/> <input type="hidden" value="<?= $int;?>" id="intf"/>
<input type="hidden" value="<?= $proto;?>" id="proto"/> <input type="hidden" value="<?= $proto;?>" id="proto"/>
<input type="hidden" value="<?= $ipproto;?>" id="ipproto"/> <input type="hidden" value="<?= $ipproto;?>" id="ipproto"/>
<span class="glyphicon glyphicon-play" alt="Icon Easy Rule: Pass this traffic"></span></a> <span class="glyphicon glyphicon-play" alt="<?= gettext('Icon Easy Rule: Pass this traffic') ?>"></span></a>
<?php echo $dststr . '<span class="RESOLVE-' . $dst_htmlclass . '"></span>';?> <?php echo $dststr . '<span class="RESOLVE-' . $dst_htmlclass . '"></span>';?>
</td> </td>
<?php <?php
...@@ -834,7 +834,7 @@ $( document ).ready(function() { ...@@ -834,7 +834,7 @@ $( document ).ready(function() {
intf:$(this).find('#intf').val() intf:$(this).find('#intf').val()
}, },
complete: function(data,status) { complete: function(data,status) {
alert("added block rule"); alert("<?= gettext('added block rule') ?>");
}, },
}); });
...@@ -856,7 +856,7 @@ $( document ).ready(function() { ...@@ -856,7 +856,7 @@ $( document ).ready(function() {
intf:$(this).find('#intf').val() intf:$(this).find('#intf').val()
}, },
complete: function(data,status) { complete: function(data,status) {
alert("added pass rule"); alert("<?= gettext('added pass rule') ?>");
}, },
}); });
......
...@@ -99,7 +99,7 @@ function d3pie_data($summary, $num) { ...@@ -99,7 +99,7 @@ function d3pie_data($summary, $num) {
} }
} }
if ($other > 0) { if ($other > 0) {
$data[$stat][] = array('label' => "other", 'value' => $other); $data[$stat][] = array('label' => gettext("other"), 'value' => $other);
} }
} }
......
...@@ -261,8 +261,8 @@ include("fbegin.inc"); ...@@ -261,8 +261,8 @@ include("fbegin.inc");
<td> <td>
<select name="fam" class="form-control"> <select name="fam" class="form-control">
<option value=""><?=gettext('Any') ?></option> <option value=""><?=gettext('Any') ?></option>
<option value="ip" <?php if ($fam == "ip") echo "selected=\"selected\""; ?>>IPv4 Only</option> <option value="ip" <?php if ($fam == "ip") echo "selected=\"selected\""; ?>><?= gettext('IPv4 Only') ?></option>
<option value="ip6" <?php if ($fam == "ip6") echo "selected=\"selected\""; ?>>IPv6 Only</option> <option value="ip6" <?php if ($fam == "ip6") echo "selected=\"selected\""; ?>><?= gettext('IPv6 Only') ?></option>
</select> </select>
<p class="text-muted"><em><small><?=gettext("Select the type of traffic to be captured, either Any, IPv4 only or IPv6 only.");?></small></em></p> <p class="text-muted"><em><small><?=gettext("Select the type of traffic to be captured, either Any, IPv4 only or IPv6 only.");?></small></em></p>
</td> </td>
...@@ -272,19 +272,19 @@ include("fbegin.inc"); ...@@ -272,19 +272,19 @@ include("fbegin.inc");
<td> <td>
<select name="proto" class="form-control"> <select name="proto" class="form-control">
<option value=""><?=gettext('Any') ?></option> <option value=""><?=gettext('Any') ?></option>
<option value="icmp" <?php if ($proto == "icmp") echo "selected=\"selected\""; ?>>ICMP</option> <option value="icmp" <?php if ($proto == "icmp") echo "selected=\"selected\""; ?>><?= gettext('ICMP') ?></option>
<option value="!icmp" <?php if ($proto == "!icmp") echo "selected=\"selected\""; ?>>Exclude ICMP</option> <option value="!icmp" <?php if ($proto == "!icmp") echo "selected=\"selected\""; ?>><?= gettext('Exclude ICMP') ?></option>
<option value="icmp6" <?php if ($proto == "icmp6") echo "selected=\"selected\""; ?>>ICMPv6</option> <option value="icmp6" <?php if ($proto == "icmp6") echo "selected=\"selected\""; ?>><?= gettext('ICMPv6') ?></option>
<option value="!icmp6" <?php if ($proto == "!icmp6") echo "selected=\"selected\""; ?>>Exclude ICMPv6</option> <option value="!icmp6" <?php if ($proto == "!icmp6") echo "selected=\"selected\""; ?>><?= gettext('Exclude ICMPv6') ?></option>
<option value="tcp" <?php if ($proto == "tcp") echo "selected=\"selected\""; ?>>TCP</option> <option value="tcp" <?php if ($proto == "tcp") echo "selected=\"selected\""; ?>><?= gettext('TCP') ?></option>
<option value="!tcp" <?php if ($proto == "!tcp") echo "selected=\"selected\""; ?>>Exclude TCP</option> <option value="!tcp" <?php if ($proto == "!tcp") echo "selected=\"selected\""; ?>><?= gettext('Exclude TCP') ?></option>
<option value="udp" <?php if ($proto == "udp") echo "selected=\"selected\""; ?>>UDP</option> <option value="udp" <?php if ($proto == "udp") echo "selected=\"selected\""; ?>><?= gettext('UDP') ?></option>
<option value="!udp" <?php if ($proto == "!udp") echo "selected=\"selected\""; ?>>Exclude UDP</option> <option value="!udp" <?php if ($proto == "!udp") echo "selected=\"selected\""; ?>><?= gettext('Exclude UDP') ?></option>
<option value="arp" <?php if ($proto == "arp") echo "selected=\"selected\""; ?>>ARP</option> <option value="arp" <?php if ($proto == "arp") echo "selected=\"selected\""; ?>><?= gettext('ARP') ?></option>
<option value="!arp" <?php if ($proto == "!arp") echo "selected=\"selected\""; ?>>Exclude ARP</option> <option value="!arp" <?php if ($proto == "!arp") echo "selected=\"selected\""; ?>><?= gettext('Exclude ARP') ?></option>
<option value="carp" <?php if ($proto == "carp") echo "selected=\"selected\""; ?>>CARP (VRRP)</option> <option value="carp" <?php if ($proto == "carp") echo "selected=\"selected\""; ?>><?= gettext('CARP (VRRP)') ?></option>
<option value="!carp" <?php if ($proto == "!carp") echo "selected=\"selected\""; ?>>Exclude CARP (VRRP)</option> <option value="!carp" <?php if ($proto == "!carp") echo "selected=\"selected\""; ?>><?= gettext('Exclude CARP (VRRP)') ?></option>
<option value="esp" <?php if ($proto == "esp") echo "selected=\"selected\""; ?>>ESP</option> <option value="esp" <?php if ($proto == "esp") echo "selected=\"selected\""; ?>><?= gettext('ESP') ?></option>
</select> </select>
<p class="text-muted"><em><small><?=gettext("Select the protocol to capture, or Any.");?></small></em></p> <p class="text-muted"><em><small><?=gettext("Select the protocol to capture, or Any.");?></small></em></p>
</td> </td>
......
...@@ -98,14 +98,14 @@ include("head.inc"); ?> ...@@ -98,14 +98,14 @@ include("head.inc"); ?>
<tr> <tr>
<td><?=gettext("IP Protocol"); ?></td> <td><?=gettext("IP Protocol"); ?></td>
<td><select name="ipproto" class="form-control"> <td><select name="ipproto" class="form-control">
<option value="ipv4" <?php if ($ipproto == "ipv4") echo "selected=\"selected\"" ?>>IPv4</option> <option value="ipv4" <?php if ($ipproto == "ipv4") echo "selected=\"selected\"" ?>><?= gettext('IPv4') ?></option>
<option value="ipv6" <?php if ($ipproto == "ipv6") echo "selected=\"selected\"" ?>>IPv6</option> <option value="ipv6" <?php if ($ipproto == "ipv6") echo "selected=\"selected\"" ?>><?= gettext('IPv6') ?></option>
</select></td> </select></td>
</tr> </tr>
<tr> <tr>
<td><?=gettext("Source Address"); ?></td> <td><?=gettext("Source Address"); ?></td>
<td><select name="sourceip" class="form-control"> <td><select name="sourceip" class="form-control">
<option value="">Default</option> <option value=""><?= gettext('Default') ?></option>
<?php $sourceips = get_possible_traffic_source_addresses(true); <?php $sourceips = get_possible_traffic_source_addresses(true);
foreach ($sourceips as $sip): foreach ($sourceips as $sip):
$selected = ""; $selected = "";
......
...@@ -38,7 +38,7 @@ include('head.inc'); ...@@ -38,7 +38,7 @@ include('head.inc');
<?php include("fbegin.inc"); <?php include("fbegin.inc");
$showAll = isset($_GET['showAll']); $showAll = isset($_GET['showAll']);
$showAllText = $showAll ? "Show only listening sockets" : "Show all socket connections"; $showAllText = $showAll ? gettext("Show only listening sockets") : gettext("Show all socket connections");
$showAllOption = $showAll ? "" : "?showAll"; $showAllOption = $showAll ? "" : "?showAll";
?> ?>
...@@ -49,9 +49,9 @@ $showAllOption = $showAll ? "" : "?showAll"; ...@@ -49,9 +49,9 @@ $showAllOption = $showAll ? "" : "?showAll";
<section class="col-xs-12"> <section class="col-xs-12">
<p>Information about listening sockets for both <a href="#IPv4">IPv4</a> and <a href="#IPv6">IPv6</a>.</p> <p><?= sprintf(gettext('Information about listening sockets for both %sIPv4%s and %sIPv6%s.'), '<a href="#IPv4">','</a>','<a href="#IPv6">','</a>') ?></p>
<p>For explanation about the meaning of the information listed for each socket click <a href="#about">here</a>.</p> <p><?= sprintf(gettext('For explanation about the meaning of the information listed for each socket click %shere%s.'),'<a href="#about">','</a>') ?></p>
<p><input type="button" class="btn btn-default" value="<?=$showAllText?>" onclick="window.location.href='diag_sockets.php<?=$showAllOption?>'"/><br/>To show information about both listening and connected sockets click this.</p> <p><input type="button" class="btn btn-default" value="<?=$showAllText?>" onclick="window.location.href='diag_sockets.php<?=$showAllOption?>'"/><br/><?= gettext('To show information about both listening and connected sockets click this.') ?></p>
<?php if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?> <?php if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?>
</section> </section>
...@@ -120,21 +120,20 @@ $showAllOption = $showAll ? "" : "?showAll"; ...@@ -120,21 +120,20 @@ $showAllOption = $showAll ? "" : "?showAll";
</header> </header>
<div class="content-box-main col-xs-12"> <div class="content-box-main col-xs-12">
<p>This page show the output for the commands: "sockstat -4lL" and "sockstat -6lL".<br /> <p><?= sprintf(gettext('This page show the output for the commands: "sockstat -4lL" and "sockstat -6lL".%s' .
Or in case of showing all sockets the output for: "sockstat -4" and "sockstat -6".<br /> 'Or in case of showing all sockets the output for: "sockstat -4" and "sockstat -6".%s%s' .
<br /> 'The information listed for each socket is:'),'<br />','<br />','<br />') ?></p>
The information listed for each socket is:</p>
</div> </div>
<table class="table table-striped table-sort sortable __nomb" id="IPv4" summary="ipv4 routes"> <table class="table table-striped table-sort sortable __nomb" id="IPv4" summary="ipv4 routes">
<tr><td class="listlr">USER </td><td class="listr">The user who owns the socket.</td></tr> <tr><td class="listlr">USER</td><td class="listr"><?= gettext('The user who owns the socket.') ?></td></tr>
<tr><td class="listlr">COMMAND </td><td class="listr">The command which holds the socket.</td></tr> <tr><td class="listlr">COMMAND</td><td class="listr"><?= gettext('The command which holds the socket.') ?></td></tr>
<tr><td class="listlr">PID </td><td class="listr">The process ID of the command which holds the socket.</td></tr> <tr><td class="listlr">PID</td><td class="listr"><?= gettext('The process ID of the command which holds the socket.') ?></td></tr>
<tr><td class="listlr">FD </td><td class="listr">The file descriptor number of the socket.</td></tr> <tr><td class="listlr">FD</td><td class="listr"><?= gettext('The file descriptor number of the socket.') ?></td></tr>
<tr><td class="listlr">PROTO </td><td class="listr">The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data-gram) for UNIX sockets.</td></tr> <tr><td class="listlr">PROTO</td><td class="listr"><?= gettext('The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data-gram) for UNIX sockets.') ?></td></tr>
<tr><td class="listlr">ADDRESS </td><td class="listr">(UNIX sockets only) For bound sockets, this is the file-name of the socket. <br />For other sockets, it is the name, PID and file descriptor number of the peer, or ``(none)'' if the socket is neither bound nor connected.</td></tr> <tr><td class="listlr">ADDRESS</td><td class="listr"><?= sprintf(gettext("(UNIX sockets only) For bound sockets, this is the file-name of the socket. %sFor other sockets, it is the name, PID and file descriptor number of the peer, or ``(none)'' if the socket is neither bound nor connected."),'<br />') ?></td></tr>
<tr><td class="listlr">LOCAL ADDRESS </td><td class="listr">(Internet sockets only) The address the local end of the socket is bound to (see getsockname(2)).</td></tr> <tr><td class="listlr">LOCAL ADDRESS</td><td class="listr"><?= gettext('(Internet sockets only) The address the local end of the socket is bound to (see getsockname(2)).') ?></td></tr>
<tr><td class="listlr">FOREIGN ADDRESS </td><td class="listr">(Internet sockets only) The address the foreign end of the socket is bound to (see getpeername(2)).</td></tr> <tr><td class="listlr">FOREIGN ADDRESS</td><td class="listr"><?= gettext('(Internet sockets only) The address the foreign end of the socket is bound to (see getpeername(2)).') ?></td></tr>
</table> </table>
</div> </div>
......
...@@ -150,7 +150,7 @@ $( document ).ready(function() { ...@@ -150,7 +150,7 @@ $( document ).ready(function() {
<option value='200' selected="selected">200</option> <option value='200' selected="selected">200</option>
<option value='500'>500</option> <option value='500'>500</option>
<option value='1000'>1000</option> <option value='1000'>1000</option>
<option value='9999999999'>all</option> <option value='9999999999'><?= gettext('all') ?></option>
</select> </select>
</div> </div>
</td> </td>
......
...@@ -131,7 +131,7 @@ include("head.inc"); ?> ...@@ -131,7 +131,7 @@ include("head.inc"); ?>
<tr> <tr>
<td><?=gettext("Source Address"); ?></td> <td><?=gettext("Source Address"); ?></td>
<td><select name="sourceip" class="form-control"> <td><select name="sourceip" class="form-control">
<option value="">Any</option> <option value=""><?= gettext('Any') ?></option>
<?php $sourceips = get_possible_traffic_source_addresses(true); <?php $sourceips = get_possible_traffic_source_addresses(true);
foreach ($sourceips as $sip): foreach ($sourceips as $sip):
$selected = ""; $selected = "";
...@@ -150,7 +150,7 @@ include("head.inc"); ?> ...@@ -150,7 +150,7 @@ include("head.inc"); ?>
<td> <td>
<select name="ipprotocol" class="form-control"> <select name="ipprotocol" class="form-control">
<option value="any" <?php if ("any" == $ipprotocol) echo "selected=\"selected\""; ?>> <option value="any" <?php if ("any" == $ipprotocol) echo "selected=\"selected\""; ?>>
Any <?= gettext('Any') ?>
</option> </option>
<option value="ipv4" <?php if ($ipprotocol == "ipv4") echo "selected=\"selected\""; ?>> <option value="ipv4" <?php if ($ipprotocol == "ipv4") echo "selected=\"selected\""; ?>>
<?=gettext("IPv4");?> <?=gettext("IPv4");?>
......
...@@ -107,14 +107,14 @@ if (!isset($do_traceroute)) { ...@@ -107,14 +107,14 @@ if (!isset($do_traceroute)) {
<tr> <tr>
<td><?=gettext("IP Protocol"); ?></td> <td><?=gettext("IP Protocol"); ?></td>
<td><select name="ipproto" class="form-control"> <td><select name="ipproto" class="form-control">
<option value="ipv4" <?php if ($ipproto == "ipv4") echo "selected=\"selected\"" ?>>IPv4</option> <option value="ipv4" <?php if ($ipproto == "ipv4") echo "selected=\"selected\"" ?>><?= gettext('IPv4') ?></option>
<option value="ipv6" <?php if ($ipproto == "ipv6") echo "selected=\"selected\"" ?>>IPv6</option> <option value="ipv6" <?php if ($ipproto == "ipv6") echo "selected=\"selected\"" ?>><?= gettext('IPv6') ?></option>
</select></td> </select></td>
</tr> </tr>
<tr> <tr>
<td><?=gettext("Source Address"); ?></td> <td><?=gettext("Source Address"); ?></td>
<td><select name="sourceip" class="form-control"> <td><select name="sourceip" class="form-control">
<option value="">Any</option> <option value=""><?= gettext('Any') ?></option>
<?php $sourceips = get_possible_traffic_source_addresses(true); <?php $sourceips = get_possible_traffic_source_addresses(true);
foreach ($sourceips as $sip): foreach ($sourceips as $sip):
$selected = ""; $selected = "";
......
...@@ -151,7 +151,7 @@ include("head.inc"); ...@@ -151,7 +151,7 @@ include("head.inc");
legacy_html_escape_form_data($a_nat); legacy_html_escape_form_data($a_nat);
$main_buttons = array( $main_buttons = array(
array('label'=>'Add', 'href'=>'firewall_nat_edit.php'), array('label'=>gettext('Add'), 'href'=>'firewall_nat_edit.php'),
); );
?> ?>
......
...@@ -88,7 +88,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -88,7 +88,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} else { } else {
$a_npt[$id]['disabled'] = true; $a_npt[$id]['disabled'] = true;
} }
if (write_config("Firewall: NAT: NPT, enable/disable NAT rule")) { if (write_config(gettext("Firewall: NAT: NPT, enable/disable NAT rule"))) {
mark_subsystem_dirty('natconf'); mark_subsystem_dirty('natconf');
} }
header("Location: firewall_nat_npt.php"); header("Location: firewall_nat_npt.php");
...@@ -103,7 +103,7 @@ $pgtitle = array(gettext('Firewall'), gettext('NAT'), gettext('NPT')); ...@@ -103,7 +103,7 @@ $pgtitle = array(gettext('Firewall'), gettext('NAT'), gettext('NPT'));
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('label'=>'Add rule', 'href'=>'firewall_nat_npt_edit.php'), array('label'=>gettext('Add rule'), 'href'=>'firewall_nat_npt_edit.php'),
); );
?> ?>
......
...@@ -447,11 +447,9 @@ include("head.inc"); ...@@ -447,11 +447,9 @@ include("head.inc");
<td> <td>
<div class="input-group"> <div class="input-group">
<select id="proto" name="protocol" class="selectpicker" data-live-search="true" data-size="5" data-width="auto"> <select id="proto" name="protocol" class="selectpicker" data-live-search="true" data-size="5" data-width="auto">
<?php foreach (explode(" ", "any TCP UDP TCP/UDP ICMP ESP AH GRE IPV6 IGMP PIM OSPF") as $proto): <?php foreach (array("any" => gettext("any"), "TCP" => gettext("TCP"), "UDP" => gettext("UDP"), "TCP/UDP" => gettext("TCP/UDP"), "ICMP" => gettext("ICMP"), "ESP" => gettext("ESP"), "AH" => gettext("AH"), "GRE" => gettext("GRE"), "IPV6" => gettext("IPV6"), "IGMP" => gettext("IGMP"), "PIM" => gettext("PIM"), " OSPF" => gettext("OSPF")) as $proto => $proto_translated):
?> ?>
<option value="<?=strtolower($proto);?>" <?= strtolower($proto) == $pconfig['protocol'] ? "selected=\"selected\"" : ""; ?>> <option value="<?=strtolower($proto);?>" <?= strtolower($proto) == $pconfig['protocol'] ? "selected=\"selected\"" : ""; ?>><?=$proto_translated?></option>
<?=$proto;?>
</option>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
</div> </div>
......
...@@ -128,7 +128,7 @@ $shortcut_section = 'relayd'; ...@@ -128,7 +128,7 @@ $shortcut_section = 'relayd';
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('label'=>'Add', 'href'=>'load_balancer_virtual_server_edit.php'), array('label'=>gettext('Add'), 'href'=>'load_balancer_virtual_server_edit.php'),
); );
?> ?>
......
...@@ -397,16 +397,16 @@ include("head.inc"); ...@@ -397,16 +397,16 @@ include("head.inc");
</tr> </tr>
<?php if($netboot_enabled) { ?> <?php if($netboot_enabled) { ?>
<tr> <tr>
<td width="22%" valign="top" class="vncell">Netboot Filename</td> <td width="22%" valign="top" class="vncell"><?= gettext('Netboot Filename') ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<input name="filename" type="text" class="formfld unknown" id="filename" size="20" value="<?=htmlspecialchars($pconfig['filename']);?>" /> <input name="filename" type="text" class="formfld unknown" id="filename" size="20" value="<?=htmlspecialchars($pconfig['filename']);?>" />
<br /> <span class="vexpl">Name of the file that should be loaded when this host boots off of the network, overrides setting on main page.</span></td> <br /> <span class="vexpl"><?= gettext('Name of the file that should be loaded when this host boots off of the network, overrides setting on main page.') ?></span></td>
</tr> </tr>
<tr> <tr>
<td width="22%" valign="top" class="vncell">Root Path</td> <td width="22%" valign="top" class="vncell"><?= gettext('Root Path') ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<input name="rootpath" type="text" class="formfld unknown" id="rootpath" size="90" value="<?=htmlspecialchars($pconfig['rootpath']);?>" /> <input name="rootpath" type="text" class="formfld unknown" id="rootpath" size="90" value="<?=htmlspecialchars($pconfig['rootpath']);?>" />
<br /> <span class="vexpl"><?=gettext("Enter the"); ?> <b><?=gettext("root-path"); ?></b>-<?=gettext("string");?>, overrides setting on main page.</span></td> <br /> <span class="vexpl"><?= gettext("Enter the root-path-string, overrides setting on main page.") ?></span></td>
</tr> </tr>
<?php } ?> <?php } ?>
<tr> <tr>
......
...@@ -137,7 +137,7 @@ function enable_change(enable_over) { ...@@ -137,7 +137,7 @@ function enable_change(enable_over) {
<form action="services_dhcp_relay.php" method="post" name="iform" id="iform"> <form action="services_dhcp_relay.php" method="post" name="iform" id="iform">
<?php if ($dhcpd_enabled): ?> <?php if ($dhcpd_enabled): ?>
<p>DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface.</p> <p><?= gettext('DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface.') ?></p>
<?php else: ?> <?php else: ?>
<header class="content-box-head container-fluid"> <header class="content-box-head container-fluid">
...@@ -148,14 +148,14 @@ function enable_change(enable_over) { ...@@ -148,14 +148,14 @@ function enable_change(enable_over) {
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-sort"> <table class="table table-striped table-sort">
<tr> <tr>
<td width="22%" valign="top" class="vncellreq">Enable</td> <td width="22%" valign="top" class="vncellreq"><?= gettext('Enable') ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" /> <input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" />
<strong><?php printf(gettext("Enable DHCP relay on interface"));?></strong> <strong><?php printf(gettext("Enable DHCP relay on interface"));?></strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="22%" valign="top" class="vncellreq">Interface(s)</td> <td width="22%" valign="top" class="vncellreq"><?= gettext('Interface(s)') ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<select id="interface" name="interface[]" multiple="multiple" class="formselect" size="3"> <select id="interface" name="interface[]" multiple="multiple" class="formselect" size="3">
<?php <?php
...@@ -169,7 +169,7 @@ function enable_change(enable_over) { ...@@ -169,7 +169,7 @@ function enable_change(enable_over) {
} }
?> ?>
</select> </select>
<br />Interfaces without an IP address will not be shown. <br /><?= gettext('Interfaces without an IP address will not be shown.') ?>
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -508,7 +508,7 @@ include("head.inc"); ...@@ -508,7 +508,7 @@ include("head.inc");
<form action="services_dhcpv6.php" method="post" name="iform" id="iform"> <form action="services_dhcpv6.php" method="post" name="iform" id="iform">
<?php if ($dhcrelay_enabled): ?> <?php if ($dhcrelay_enabled): ?>
<p>DHCP Relay is currently enabled. Cannot enable the DHCP Server service while the DHCP Relay is enabled on any interface.</p> <p><?= gettext('DHCP Relay is currently enabled. Cannot enable the DHCP Server service while the DHCP Relay is enabled on any interface.') ?></p>
<?php else: ?> <?php else: ?>
<!--<ul class="nav nav-pills" role="tablist"><?php foreach ($tab_array as $tab): ?> <!--<ul class="nav nav-pills" role="tablist"><?php foreach ($tab_array as $tab): ?>
......
...@@ -198,7 +198,7 @@ include("head.inc"); ...@@ -198,7 +198,7 @@ include("head.inc");
<input name="duid" type="text" class="formfld unknown" id="duid" size="40" value="<?=htmlspecialchars($pconfig['duid']);?>" /> <input name="duid" type="text" class="formfld unknown" id="duid" size="40" value="<?=htmlspecialchars($pconfig['duid']);?>" />
<br /> <br />
<span class="vexpl"><?=gettext("Enter a DUID Identifier in the following format: ");?><br /> <span class="vexpl"><?=gettext("Enter a DUID Identifier in the following format: ");?><br />
"DUID-LLT - ETH -- TIME --- ---- address ----" <br /> "<?= gettext('DUID-LLT - ETH -- TIME --- ---- ADDR ----') ?>" <br />
"xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"</span></td> "xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"</span></td>
</tr> </tr>
<tr> <tr>
...@@ -219,16 +219,16 @@ include("head.inc"); ...@@ -219,16 +219,16 @@ include("head.inc");
</tr> </tr>
<?php if($netboot_enabled) { ?> <?php if($netboot_enabled) { ?>
<tr> <tr>
<td width="22%" valign="top" class="vncell">Netboot filename</td> <td width="22%" valign="top" class="vncell"><?= gettext('Netboot filename') ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<input name="filename" type="text" class="formfld unknown" id="filename" size="28" value="<?=htmlspecialchars($pconfig['filename']);?>" /> <input name="filename" type="text" class="formfld unknown" id="filename" size="28" value="<?=htmlspecialchars($pconfig['filename']);?>" />
<br /> <span class="vexpl">Name of the file that should be loaded when this host boots off of the network, overrides setting on main page.</span></td> <br /> <span class="vexpl"><?= gettext('Name of the file that should be loaded when this host boots off of the network, overrides setting on main page.') ?></span></td>
</tr> </tr>
<tr> <tr>
<td width="22%" valign="top" class="vncell">Root Path</td> <td width="22%" valign="top" class="vncell"><?= gettext('Root Path') ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<input name="rootpath" type="text" class="formfld unknown" id="rootpath" size="90" value="<?=htmlspecialchars($pconfig['rootpath']);?>" /> <input name="rootpath" type="text" class="formfld unknown" id="rootpath" size="90" value="<?=htmlspecialchars($pconfig['rootpath']);?>" />
<br /> <span class="vexpl"><?=gettext("Enter the"); ?> <b><?=gettext("root-path"); ?></b>-<?=gettext("string");?>, overrides setting on main page.</span></td> <br /> <span class="vexpl"><?= gettext('Enter the root-path-string, overrides setting on main page.') ?></span></td>
</tr> </tr>
<?php } ?> <?php } ?>
<tr> <tr>
......
...@@ -133,7 +133,7 @@ function enable_change(enable_over) { ...@@ -133,7 +133,7 @@ function enable_change(enable_over) {
<form action="services_dhcpv6_relay.php" method="post" name="iform" id="iform"> <form action="services_dhcpv6_relay.php" method="post" name="iform" id="iform">
<?php if ($dhcpd_enabled): ?> <?php if ($dhcpd_enabled): ?>
<p>DHCPv6 Server is currently enabled. Cannot enable the DHCPv6 Relay service while the DHCPv6 Server is enabled on any interface.</p> <p><?= gettext('DHCPv6 Server is currently enabled. Cannot enable the DHCPv6 Relay service while the DHCPv6 Server is enabled on any interface.') ?></p>
<?php else: ?> <?php else: ?>
<header class="content-box-head container-fluid"> <header class="content-box-head container-fluid">
...@@ -145,14 +145,14 @@ function enable_change(enable_over) { ...@@ -145,14 +145,14 @@ function enable_change(enable_over) {
<table class="table table-striped table-sort"> <table class="table table-striped table-sort">
<tr> <tr>
<td width="22%" valign="top" class="vncellreq">Enable</td> <td width="22%" valign="top" class="vncellreq"><?= gettext('Enable') ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" /> <input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" />
<strong><?php printf(gettext("Enable DHCPv6 relay on interface"));?></strong> <strong><?php printf(gettext("Enable DHCPv6 relay on interface"));?></strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="22%" valign="top" class="vncellreq">Interface(s)</td> <td width="22%" valign="top" class="vncellreq"><?= gettext('Interface(s)') ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<select id="interface" name="interface[]" multiple="multiple" class="formselect" size="3"> <select id="interface" name="interface[]" multiple="multiple" class="formselect" size="3">
<?php <?php
......
...@@ -721,9 +721,9 @@ endif; ?> ...@@ -721,9 +721,9 @@ endif; ?>
?> ?>
<tr> <tr>
<td class="listlr"><?php echo $tmpcrl['descr']; ?></td> <td class="listlr"><?php echo $tmpcrl['descr']; ?></td>
<td class="listr"><?php echo ($internal) ? "YES" : "NO"; ?></td> <td class="listr"><?php echo ($internal) ? gettext("YES") : gettext("NO"); ?></td>
<td class="listr"><?php echo ($internal) ? (isset($tmpcrl['cert']) && count($tmpcrl['cert'])) : "Unknown (imported)"; ?></td> <td class="listr"><?php echo ($internal) ? (isset($tmpcrl['cert']) && count($tmpcrl['cert'])) : gettext("Unknown (imported)"); ?></td>
<td class="listr"><?php echo ($inuse) ? "YES" : "NO"; ?></td> <td class="listr"><?php echo ($inuse) ? gettext("YES") : gettext("NO"); ?></td>
<td valign="middle" class="list nowrap"> <td valign="middle" class="list nowrap">
<a href="system_crlmanager.php?act=exp&amp;id=<?=$tmpcrl['refid'];?>" class="btn btn-default btn-xs"> <a href="system_crlmanager.php?act=exp&amp;id=<?=$tmpcrl['refid'];?>" class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-export" data-toggle="tooltip" data-placement="left" title="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span> <span class="glyphicon glyphicon-export" data-toggle="tooltip" data-placement="left" title="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span>
......
...@@ -251,10 +251,10 @@ jQuery(function ($) { ...@@ -251,10 +251,10 @@ jQuery(function ($) {
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<table border="0" cellpadding="6" cellspacing="0" summary="gateway priority"> <table border="0" cellpadding="6" cellspacing="0" summary="gateway priority">
<tr> <tr>
<td class="listhdrr">Gateway</td> <td class="listhdrr"><?= gettext('Gateway') ?></td>
<td class="listhdrr">Tier</td> <td class="listhdrr"><?= gettext('Tier') ?></td>
<td class="listhdrr">Virtual IP</td> <td class="listhdrr"><?= gettext('Virtual IP') ?></td>
<td class="listhdrr">Description</td> <td class="listhdrr"><?= gettext('Description') ?></td>
</tr> </tr>
<?php <?php
foreach ($a_gateways as $gwname => $gateway) { foreach ($a_gateways as $gwname => $gateway) {
......
...@@ -169,7 +169,7 @@ function update_description() { ...@@ -169,7 +169,7 @@ function update_description() {
<form action="system_groupmanager_addprivs.php" method="post" name="iform" id="iform"> <form action="system_groupmanager_addprivs.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped"> <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
<tr> <tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("System Privileges");?><br /><a href='#' onClick="selectAll();">Select all</a></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("System Privileges");?><br /><a href='#' onClick="selectAll();"><?= gettext('Select all') ?></a></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<select name="sysprivs[]" id="sysprivs" class="formselect" onchange="update_description();" multiple="multiple" size="35"> <select name="sysprivs[]" id="sysprivs" class="formselect" onchange="update_description();" multiple="multiple" size="35">
<?php <?php
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment