summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorbruno <bruno.stein@bluepex.com>2016-01-25 09:13:23 -0200
committerbruno <bruno.stein@bluepex.com>2016-01-25 09:13:23 -0200
commit4bb7c0d1488ff4ad7d690e54365a878c47f6d7f8 (patch)
treeb540d7ebcdccfcca2cd175d61bef061a513b511c /src/usr/local
parenta2c5280d92c2707c27cbef318b1ced7122c32b0e (diff)
downloadpfsense-4bb7c0d1488ff4ad7d690e54365a878c47f6d7f8.zip
pfsense-4bb7c0d1488ff4ad7d690e54365a878c47f6d7f8.tar.gz
add call gettext function in the services menu
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/services_captiveportal.php2
-rw-r--r--src/usr/local/www/services_captiveportal_filemanager.php6
-rw-r--r--src/usr/local/www/services_captiveportal_hostname.php2
-rw-r--r--src/usr/local/www/services_captiveportal_mac.php6
-rw-r--r--src/usr/local/www/services_captiveportal_vouchers.php20
-rw-r--r--src/usr/local/www/services_dhcp.php4
-rw-r--r--src/usr/local/www/services_dhcp_relay.php2
-rw-r--r--src/usr/local/www/services_dhcpv6.php2
-rw-r--r--src/usr/local/www/services_dhcpv6_relay.php2
-rw-r--r--src/usr/local/www/services_dnsmasq.php4
-rw-r--r--src/usr/local/www/services_ntpd_gps.php14
-rw-r--r--src/usr/local/www/services_unbound.php16
-rw-r--r--src/usr/local/www/services_unbound_acls.php9
-rw-r--r--src/usr/local/www/services_unbound_advanced.php28
-rw-r--r--src/usr/local/www/services_wol.php4
15 files changed, 60 insertions, 61 deletions
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php
index b20b567..c52fb76 100644
--- a/src/usr/local/www/services_captiveportal.php
+++ b/src/usr/local/www/services_captiveportal.php
@@ -93,7 +93,7 @@ if (!is_array($config['captiveportal'])) {
}
$a_cp =& $config['captiveportal'];
-$pgtitle = array(gettext("Services"), gettext("Captive Portal"), "Zone " . $a_cp[$cpzone]['zone'], gettext("Configuration"));
+$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone %s"), $a_cp[$cpzone]['zone']), gettext("Configuration"));
$shortcut_section = "captiveportal";
if ($_GET['act'] == "viewhtml") {
diff --git a/src/usr/local/www/services_captiveportal_filemanager.php b/src/usr/local/www/services_captiveportal_filemanager.php
index fcbfbbe..bfa6908 100644
--- a/src/usr/local/www/services_captiveportal_filemanager.php
+++ b/src/usr/local/www/services_captiveportal_filemanager.php
@@ -96,7 +96,7 @@ if (!is_array($config['captiveportal'])) {
}
$a_cp =& $config['captiveportal'];
-$pgtitle = array(gettext("Services"), gettext("Captive Portal"), "Zone " . $a_cp[$cpzone]['zone'], gettext("File Manager"));
+$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone %s"), $a_cp[$cpzone]['zone']), gettext("File Manager"));
$shortcut_section = "captiveportal";
if (!is_array($a_cp[$cpzone]['element'])) {
@@ -242,7 +242,7 @@ if (is_array($a_cp[$cpzone]['element'])):
?>
<tr>
<th>
- Total
+ <?=gettext("Total");?>
</th>
<th>
<?=format_bytes($total_size);?>
@@ -272,7 +272,7 @@ endif;
// is provided so that you only see the notes if you ask for them
?>
<div class="infoblock panel panel-default">
- <div class="panel-heading"><h2 class="panel-title">Notes</h2></div>
+ <div class="panel-heading"><h2 class="panel-title"><?=gettext("Notes");?></h2></div>
<div class="panel-body">
<?=gettext("Any files that you upload here with the filename prefix of captiveportal- will " .
"be made available in the root directory of the captive portal HTTP(S) server. " .
diff --git a/src/usr/local/www/services_captiveportal_hostname.php b/src/usr/local/www/services_captiveportal_hostname.php
index 6ccf0d9..70dc3b7 100644
--- a/src/usr/local/www/services_captiveportal_hostname.php
+++ b/src/usr/local/www/services_captiveportal_hostname.php
@@ -92,7 +92,7 @@ if (isset($cpzone) && !empty($cpzone) && isset($a_cp[$cpzone]['zoneid'])) {
$cpzoneid = $a_cp[$cpzone]['zoneid'];
}
-$pgtitle = array(gettext("Services"), gettext("Captive Portal"), "Zone " . $a_cp[$cpzone]['zone'], gettext("Allowed Hostnames"));
+$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone %s"), $a_cp[$cpzone]['zone']), gettext("Allowed Hostnames"));
$shortcut_section = "captiveportal";
if ($_GET['act'] == "del" && !empty($cpzone) && isset($cpzoneid)) {
diff --git a/src/usr/local/www/services_captiveportal_mac.php b/src/usr/local/www/services_captiveportal_mac.php
index 5b4541a..7335208 100644
--- a/src/usr/local/www/services_captiveportal_mac.php
+++ b/src/usr/local/www/services_captiveportal_mac.php
@@ -88,11 +88,11 @@ if (!is_array($config['captiveportal'])) {
}
$a_cp =& $config['captiveportal'];
-$pgtitle = array(gettext("Services"), gettext("Captive Portal"), "Zone " . $a_cp[$cpzone]['zone'], gettext("MAC"));
+$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone %s"), $a_cp[$cpzone]['zone']), gettext("MAC"));
$shortcut_section = "captiveportal";
-$actsmbl = array('pass' => '<font color="green" size="4">&#x2714;</font>&nbsp;Pass',
- 'block' => '<font color="red" size="4">&#x2718;</font>&nbsp;Block');
+$actsmbl = array('pass' => '<font color="green" size="4">&#x2714;</font>&nbsp;' . gettext("Pass"),
+ 'block' => '<font color="red" size="4">&#x2718;</font>&nbsp;' . gettext("Block"));
if ($_POST) {
$pconfig = $_POST;
diff --git a/src/usr/local/www/services_captiveportal_vouchers.php b/src/usr/local/www/services_captiveportal_vouchers.php
index cfc6ae9..895e19e 100644
--- a/src/usr/local/www/services_captiveportal_vouchers.php
+++ b/src/usr/local/www/services_captiveportal_vouchers.php
@@ -103,7 +103,7 @@ if (!is_array($config['voucher'])) {
}
if (empty($a_cp[$cpzone])) {
- log_error("Submission on captiveportal page with unknown zone parameter: " . htmlspecialchars($cpzone));
+ log_error(sprintf(gettext("Submission on captiveportal page with unknown zone parameter: %s"), htmlspecialchars($cpzone)));
header("Location: services_captiveportal_zones.php");
exit;
}
@@ -350,31 +350,31 @@ EOF;
XML_RPC_encode($execcmd)
);
$port = $newvoucher['vouchersyncport'];
- log_error("voucher XMLRPC sync data {$url}:{$port}.");
+ log_error(sprintf(gettext("voucher XMLRPC sync data %s:%d"), $url, $port));
$msg = new XML_RPC_Message('pfsense.exec_php', $params);
$cli = new XML_RPC_Client('/xmlrpc.php', $url, $port);
$cli->setCredentials($newvoucher['vouchersyncusername'], $newvoucher['vouchersyncpass']);
$resp = $cli->send($msg, "250");
if (!is_object($resp)) {
- $error = "A communications error occurred while attempting CaptivePortalVoucherSync XMLRPC sync with {$url}:{$port} (pfsense.exec_php).";
+ $error = sprintf(gettext("A communications error occurred while attempting CaptivePortalVoucherSync XMLRPC sync with %s:%d (pfsense.exec_php)."), $url, $port);
log_error($error);
- file_notice("CaptivePortalVoucherSync", $error, "Communications error occurred", "");
+ file_notice("CaptivePortalVoucherSync", $error, gettext("Communications error occurred"), "");
$input_errors[] = $error;
} elseif ($resp->faultCode()) {
$cli->setDebug(1);
$resp = $cli->send($msg, "250");
- $error = "An error code was received while attempting CaptivePortalVoucherSync XMLRPC sync with {$url}:{$port} - Code " . $resp->faultCode() . ": " . $resp->faultString();
+ $error = sprintf(gettext("An error code was received while attempting CaptivePortalVoucherSync XMLRPC sync with %s:%d - Code %d: %s"), $url, $port, $resp->faultCode(), $resp->faultString());
log_error($error);
- file_notice("CaptivePortalVoucherSync", $error, "Error code received", "");
+ file_notice("CaptivePortalVoucherSync", $error, gettext("Error code received"), "");
$input_errors[] = $error;
} else {
- log_error("The Captive Portal voucher database has been synchronized with {$url}:{$port} (pfsense.exec_php).");
+ log_error(sprintf(gettext("The Captive Portal voucher database has been synchronized with %s:%d (pfsense.exec_php)."), $url, $port));
}
if (!$input_errors) {
$toreturn = XML_RPC_Decode($resp->value());
if (!is_array($toreturn)) {
if ($toreturn == "Authentication failed") {
- $input_errors[] = "Could not synchronize the voucher database: Authentication Failed.";
+ $input_errors[] = gettext("Could not synchronize the voucher database: Authentication Failed.");
}
} else {
// If we received back the voucher roll and other information then store it.
@@ -446,7 +446,7 @@ display_top_tabs($tab_array, true);
// We draw a simple table first, then present the controls to work with it
?>
<div class="panel panel-default">
- <div class="panel-heading"><h2 class="panel-title">Voucher Rolls</h2></div>
+ <div class="panel-heading"><h2 class="panel-title"><?=gettext("Voucher Rolls");?></h2></div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-hover table-condensed">
@@ -674,7 +674,7 @@ events.push(function() {
// Set initial state
setShowHide($('#enable').is(":checked"));
- var generateButton = $('<a class="btn btn-xs btn-default">Generate new keys</a>');
+ var generateButton = $('<a class="btn btn-xs btn-default"><?=gettetx("Generate new keys");?></a>');
generateButton.on('click', function() {
$.ajax({
type: 'get',
diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php
index 31326b9..e9df1ed 100644
--- a/src/usr/local/www/services_dhcp.php
+++ b/src/usr/local/www/services_dhcp.php
@@ -369,7 +369,7 @@ if (isset($_POST['submit'])) {
}
if ($_POST['staticarp'] && $noip) {
- $input_errors[] = "Cannot enable static ARP when you have static map entries without IP addresses. Ensure all static maps have IP addresses and try again.";
+ $input_errors[] = gettext("Cannot enable static ARP when you have static map entries without IP addresses. Ensure all static maps have IP addresses and try again.");
}
if (is_array($pconfig['numberoptions']['item'])) {
@@ -804,7 +804,7 @@ $range_to--;
$rangestr = long2ip32($range_from) . ' - ' . long2ip32($range_to);
if (is_numeric($pool) || ($act == "newpool")) {
- $rangestr .= '<br />' . 'In-use DHCP Pool Ranges:';
+ $rangestr .= '<br />' . gettext('In-use DHCP Pool Ranges:');
if (is_array($config['dhcpd'][$if]['range'])) {
$rangestr .= '<br />' . $config['dhcpd'][$if]['range']['from'] . ' - ' . $config['dhcpd'][$if]['range']['to'];
}
diff --git a/src/usr/local/www/services_dhcp_relay.php b/src/usr/local/www/services_dhcp_relay.php
index 2ddbd6e..2f71de0 100644
--- a/src/usr/local/www/services_dhcp_relay.php
+++ b/src/usr/local/www/services_dhcp_relay.php
@@ -156,7 +156,7 @@ $shortcut_section = "dhcp";
include("head.inc");
if ($dhcpd_enabled) {
- echo '<div class="alert alert-danger">DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface.</div>';
+ echo '<div class="alert alert-danger">' . gettext("DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface.") . '</div>';
include("foot.inc");
exit;
}
diff --git a/src/usr/local/www/services_dhcpv6.php b/src/usr/local/www/services_dhcpv6.php
index cb15605..8fdd4eb 100644
--- a/src/usr/local/www/services_dhcpv6.php
+++ b/src/usr/local/www/services_dhcpv6.php
@@ -888,7 +888,7 @@ print_info_box(gettext('The DNS servers entered in ') . '<a href="system.php">'
?>
</div>
<div class="panel panel-default">
- <div class="panel-heading"><h2 class="panel-title">DHCPv6 Static Mappings for this interface.</h2></div>
+ <div class="panel-heading"><h2 class="panel-title"><?=gettext("DHCPv6 Static Mappings for this interface.");?></h2></div>
<div class="panel-body table-responsive">
<table class="table table-striped table-hover table-condensed">
<thead>
diff --git a/src/usr/local/www/services_dhcpv6_relay.php b/src/usr/local/www/services_dhcpv6_relay.php
index 93ca9e9..f6c821d 100644
--- a/src/usr/local/www/services_dhcpv6_relay.php
+++ b/src/usr/local/www/services_dhcpv6_relay.php
@@ -154,7 +154,7 @@ $shortcut_section = "dhcp6";
include("head.inc");
if ($dhcpd_enabled) {
- echo '<div class="alert alert-danger">DHCPv6 Server is currently enabled. Cannot enable the DHCPv6 Relay service while the DHCPv6 Server is enabled on any interface.</div>';
+ echo '<div class="alert alert-danger">' . gettext("DHCPv6 Server is currently enabled. Cannot enable the DHCPv6 Relay service while the DHCPv6 Server is enabled on any interface.") . '</div>';
include("foot.inc");
exit;
}
diff --git a/src/usr/local/www/services_dnsmasq.php b/src/usr/local/www/services_dnsmasq.php
index 18274b8..b0f60fe 100644
--- a/src/usr/local/www/services_dnsmasq.php
+++ b/src/usr/local/www/services_dnsmasq.php
@@ -130,7 +130,7 @@ if ($_POST) {
if (isset($_POST['enable']) && isset($config['unbound']['enable'])) {
if ($_POST['port'] == $config['unbound']['port']) {
- $input_errors[] = "The DNS Resolver is enabled using this port. Choose a non-conflicting port, or disable DNS Resolver.";
+ $input_errors[] = gettext("The DNS Resolver is enabled using this port. Choose a non-conflicting port, or disable DNS Resolver.");
}
}
@@ -406,7 +406,7 @@ foreach ($a_hosts as $i => $hostent):
<?=$alias['domain']?>
</td>
<td>
- Alias for <?=$hostent['host'] ? $hostent['host'] . '.' . $hostent['domain'] : $hostent['domain']?>
+ <?=gettext("Alias for ");?><?=$hostent['host'] ? $hostent['host'] . '.' . $hostent['domain'] : $hostent['domain']?>
</td>
<td>
<i class="fa fa-angle-double-right text-info"></i>
diff --git a/src/usr/local/www/services_ntpd_gps.php b/src/usr/local/www/services_ntpd_gps.php
index 31357e0..7b8751f 100644
--- a/src/usr/local/www/services_ntpd_gps.php
+++ b/src/usr/local/www/services_ntpd_gps.php
@@ -83,7 +83,7 @@ function set_default_gps() {
$config['ntpd']['gps']['nmea'] = 0;
}
- write_config("Setting default NTPd settings");
+ write_config(gettext("Setting default NTPd settings"));
}
if ($_POST) {
@@ -186,7 +186,7 @@ if ($_POST) {
unset($config['ntpd']['gps']['initcmd']);
}
- write_config("Updated NTP GPS Settings");
+ write_config(gettext("Updated NTP GPS Settings"));
$retval = system_ntp_configure();
$savemsg = get_std_save_message($retval);
@@ -202,11 +202,11 @@ function build_nmea_list() {
$nmealist = array('options' => array(), 'selected' => array());
- $nmealist['options'][0] = 'All';
- $nmealist['options'][1] = 'RMC';
- $nmealist['options'][2] = 'GGA';
- $nmealist['options'][4] = 'GLL';
- $nmealist['options'][8] = 'ZDA or ZDG';
+ $nmealist['options'][0] = gettext('All');
+ $nmealist['options'][1] = gettext('RMC');
+ $nmealist['options'][2] = gettext('GGA');
+ $nmealist['options'][4] = gettext('GLL');
+ $nmealist['options'][8] = gettext('ZDA or ZDG');
if (!$pconfig['nmea']) {
array_push($nmealist['selected'], 0);
diff --git a/src/usr/local/www/services_unbound.php b/src/usr/local/www/services_unbound.php
index 2b26a4d..c352875 100644
--- a/src/usr/local/www/services_unbound.php
+++ b/src/usr/local/www/services_unbound.php
@@ -137,22 +137,22 @@ if ($_POST) {
if (isset($pconfig['enable']) && isset($config['dnsmasq']['enable'])) {
if ($pconfig['port'] == $config['dnsmasq']['port']) {
- $input_errors[] = "The DNS Forwarder is enabled using this port. Choose a non-conflicting port, or disable the DNS Forwarder.";
+ $input_errors[] = gettext("The DNS Forwarder is enabled using this port. Choose a non-conflicting port, or disable the DNS Forwarder.");
}
}
if (empty($pconfig['active_interface'])) {
- $input_errors[] = "One or more Network Interfaces must be selected for binding.";
+ $input_errors[] = gettext("One or more Network Interfaces must be selected for binding.");
} else if (!isset($config['system']['dnslocalhost']) && (!in_array("lo0", $pconfig['active_interface']) && !in_array("all", $pconfig['active_interface']))) {
- $input_errors[] = "This system is configured to use the DNS Resolver as its DNS server, so Localhost or All must be selected in Network Interfaces.";
+ $input_errors[] = gettext("This system is configured to use the DNS Resolver as its DNS server, so Localhost or All must be selected in Network Interfaces.");
}
if (empty($pconfig['outgoing_interface'])) {
- $input_errors[] = "One or more Outgoing Network Interfaces must be selected.";
+ $input_errors[] = gettext("One or more Outgoing Network Interfaces must be selected.");
}
if (empty($pconfig['system_domain_local_zone_type'])) {
- $input_errors[] = "A System Domain Local-Zone Type must be selected.";
+ $input_errors[] = gettext("A System Domain Local-Zone Type must be selected.");
}
if ($pconfig['port'] && !is_port($pconfig['port'])) {
@@ -195,7 +195,7 @@ if ($_POST) {
$a_unboundcfg['system_domain_local_zone_type'] = $pconfig['system_domain_local_zone_type'];
$a_unboundcfg['custom_options'] = $pconfig['custom_options'];
- write_config("DNS Resolver configured.");
+ write_config(gettext("DNS Resolver configured."));
mark_subsystem_dirty('unbound');
}
@@ -230,7 +230,7 @@ function build_if_list($selectedifs) {
$interface_addresses = get_possible_listen_ips(true);
$iflist = array('options' => array(), 'selected' => array());
- $iflist['options']['all'] = "All";
+ $iflist['options']['all'] = gettext("All");
if (empty($selectedifs) || empty($selectedifs[0]) || in_array("all", $selectedifs)) {
array_push($iflist['selected'], "all");
}
@@ -465,7 +465,7 @@ foreach ($a_hosts as $hostent):
<?=$alias['domain']?>
</td>
<td>
- Alias for <?=$hostent['host'] ? $hostent['host'] . '.' . $hostent['domain'] : $hostent['domain']?>
+ <?=gettext("Alias for ");?><?=$hostent['host'] ? $hostent['host'] . '.' . $hostent['domain'] : $hostent['domain']?>
</td>
<td>
<i class="fa fa-angle-double-right text-info"></i>
diff --git a/src/usr/local/www/services_unbound_acls.php b/src/usr/local/www/services_unbound_acls.php
index cd52d31..abb3471 100644
--- a/src/usr/local/www/services_unbound_acls.php
+++ b/src/usr/local/www/services_unbound_acls.php
@@ -200,11 +200,10 @@ if ($_POST) {
}
$actionHelp =
- '<span class="text-success"><strong>Deny:</strong></span> Stops queries from hosts within the netblock defined below.' . '<br />' .
- '<span class="text-success"><strong>Refuse:</strong></span> Stops queries from hosts within the netblock defined below, but sends a DNS rcode REFUSED error message back to the client.' . '<br />' .
- '<span class="text-success"><strong>Allow:</strong></span> Allow queries from hosts within the netblock defined below.' . '<br />' .
- '<span class="text-success"><strong>Allow Snoop:</strong></span> Allow recursive and nonrecursive access from hosts within the netblock defined below. Used for cache snooping and ideally should only be configured for your administrative host.';
-
+ sprintf(gettext('%sDeny:%s Stops queries from hosts within the netblock defined below.%s'), '<span class="text-success"><strong>', '</strong></span>', '<br />') .
+ sprintf(gettext('%sRefuse:%s Stops queries from hosts within the netblock defined below, but sends a DNS rcode REFUSED error message back to the client.%s'), '<span class="text-success"><strong>', '</strong></span>', '<br />') .
+ sprintf(gettext('%sAllow:%s Allow queries from hosts within the netblock defined below.%s'), '<span class="text-success"><strong>', '</strong></span>', '<br />') .
+ sprintf(gettext('%sAllow Snoop:%s Allow recursive and nonrecursive access from hosts within the netblock defined below. Used for cache snooping and ideally should only be configured for your administrative host.'), '<span class="text-success"><strong>', '</strong></span>');
$pgtitle = array(gettext("Services"), gettext("DNS Resolver"), gettext("Access Lists"));
$shortcut_section = "resolver";
diff --git a/src/usr/local/www/services_unbound_advanced.php b/src/usr/local/www/services_unbound_advanced.php
index aca21cd..d0c5ea2 100644
--- a/src/usr/local/www/services_unbound_advanced.php
+++ b/src/usr/local/www/services_unbound_advanced.php
@@ -121,43 +121,43 @@ if ($_POST) {
$pconfig = $_POST;
if (isset($_POST['msgcachesize']) && !in_array($_POST['msgcachesize'], array('4', '10', '20', '50', '100', '250', '512'), true)) {
- $input_errors[] = "A valid value for Message Cache Size must be specified.";
+ $input_errors[] = gettext("A valid value for Message Cache Size must be specified.");
}
if (isset($_POST['outgoing_num_tcp']) && !in_array($_POST['outgoing_num_tcp'], array('0', '10', '20', '30', '40', '50'), true)) {
- $input_errors[] = "A valid value must be specified for Outgoing TCP Buffers.";
+ $input_errors[] = gettext("A valid value must be specified for Outgoing TCP Buffers.");
}
if (isset($_POST['incoming_num_tcp']) && !in_array($_POST['incoming_num_tcp'], array('0', '10', '20', '30', '40', '50'), true)) {
- $input_errors[] = "A valid value must be specified for Incoming TCP Buffers.";
+ $input_errors[] = gettext("A valid value must be specified for Incoming TCP Buffers.");
}
if (isset($_POST['edns_buffer_size']) && !in_array($_POST['edns_buffer_size'], array('512', '1480', '4096'), true)) {
- $input_errors[] = "A valid value must be specified for EDNS Buffer Size.";
+ $input_errors[] = gettext("A valid value must be specified for EDNS Buffer Size.");
}
if (isset($_POST['num_queries_per_thread']) && !in_array($_POST['num_queries_per_thread'], array('512', '1024', '2048'), true)) {
- $input_errors[] = "A valid value must be specified for Number of Queries per Thread.";
+ $input_errors[] = gettext("A valid value must be specified for Number of Queries per Thread.");
}
if (isset($_POST['jostle_timeout']) && !in_array($_POST['jostle_timeout'], array('100', '200', '500', '1000'), true)) {
- $input_errors[] = "A valid value must be specified for Jostle Timeout.";
+ $input_errors[] = gettext("A valid value must be specified for Jostle Timeout.");
}
if (isset($_POST['cache_max_ttl']) && (!is_numericint($_POST['cache_max_ttl']) || ($_POST['cache_max_ttl'] < 0))) {
- $input_errors[] = "'Maximum TTL for RRsets and Messages' must be a positive integer.";
+ $input_errors[] = gettext("'Maximum TTL for RRsets and Messages' must be a positive integer.");
}
if (isset($_POST['cache_min_ttl']) && (!is_numericint($_POST['cache_min_ttl']) || ($_POST['cache_min_ttl'] < 0))) {
- $input_errors[] = "'Minimum TTL for RRsets and Messages' must be a positive integer.";
+ $input_errors[] = gettext("'Minimum TTL for RRsets and Messages' must be a positive integer.");
}
if (isset($_POST['infra_host_ttl']) && !in_array($_POST['infra_host_ttl'], array('60', '120', '300', '600', '900'), true)) {
- $input_errors[] = "A valid value must be specified for TTL for Host Cache Entries.";
+ $input_errors[] = gettext("A valid value must be specified for TTL for Host Cache Entries.");
}
if (isset($_POST['infra_cache_numhosts']) && !in_array($_POST['infra_cache_numhosts'], array('1000', '5000', '10000', '20000', '50000'), true)) {
- $input_errors[] = "A valid value must be specified for Number of Hosts to Cache.";
+ $input_errors[] = gettext("A valid value must be specified for Number of Hosts to Cache.");
}
if (isset($_POST['unwanted_reply_threshold']) && !in_array($_POST['unwanted_reply_threshold'], array('disabled', '5000000', '10000000', '20000000', '40000000', '50000000'), true)) {
- $input_errors[] = "A valid value must be specified for Unwanted Reply Threshold.";
+ $input_errors[] = gettext("A valid value must be specified for Unwanted Reply Threshold.");
}
if (isset($_POST['log_verbosity']) && !in_array($_POST['log_verbosity'], array('0', '1', '2', '3', '4', '5'), true)) {
- $input_errors[] = "A valid value must be specified for Log Level.";
+ $input_errors[] = gettext("A valid value must be specified for Log Level.");
}
if (isset($_POST['dnssecstripped']) && !isset($config['unbound']['dnssec'])) {
- $input_errors[] = "Harden DNSSEC Data option can only be enabled if DNSSEC support is enabled.";
+ $input_errors[] = gettext("Harden DNSSEC Data option can only be enabled if DNSSEC support is enabled.");
}
if (!$input_errors) {
@@ -211,7 +211,7 @@ if ($_POST) {
unset($config['unbound']['use_caps']);
}
- write_config("DNS Resolver configured.");
+ write_config(gettext("DNS Resolver configured."));
mark_subsystem_dirty('unbound');
}
diff --git a/src/usr/local/www/services_wol.php b/src/usr/local/www/services_wol.php
index f7a90e7..be135cb 100644
--- a/src/usr/local/www/services_wol.php
+++ b/src/usr/local/www/services_wol.php
@@ -188,7 +188,7 @@ print $form;
<div class="panel panel-default">
<div class="panel-heading">
- <h2 class="panel-title">Wake on LAN devices</h2>
+ <h2 class="panel-title"><?=gettext("Wake on LAN devices");?></h2>
</div>
<div class="panel-body">
@@ -227,7 +227,7 @@ print $form;
</div>
<div class="panel-footer">
<a class="btn btn-success" href="services_wol_edit.php">
- Add
+ <?=gettext("Add");?>
</a>
<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary">
OpenPOWER on IntegriCloud