Commit 83554e53 authored by Frédéric LIETART (TheLinuxFr)'s avatar Frédéric LIETART (TheLinuxFr) Committed by Franco Fichtner

src: missing translations for #427 closes #466

parent 605fb08c
......@@ -232,7 +232,7 @@ include("head.inc");
<td colspan="2" valign="top" class="listtopic"><?=gettext("NTP Server Configuration"); ?></td>
</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">
<?php
$interfaces = get_configured_interface_with_descr();
......@@ -263,7 +263,7 @@ include("head.inc");
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Time servers</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Time servers') ?></td>
<td width="78%" class="vtable">
<?php
$timeservers = explode( ' ', $config['system']['timeservers']);
......@@ -301,21 +301,21 @@ include("head.inc");
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Orphan mode</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Orphan mode') ?></td>
<td width="78%" class="vtable">
<input name="ntporphan" type="text" class="formfld unknown" id="ntporphan" min="1" max="16" size="20" value="<?=htmlspecialchars(isset($pconfig['orphan']) ? $pconfig['orphan']:"");?>" /><?php echo gettext("(0-15)");?><br />
<?php echo gettext("Orphan mode allows the system clock to be used when no other clocks are available. The number here specifies the stratum reported during orphan mode and should normally be set to a number high enough to insure that any other servers available to clients are preferred over this server. (default: 12)."); ?>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">NTP graphs</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('NTP graphs') ?></td>
<td width="78%" class="vtable">
<input name="statsgraph" type="checkbox" class="formcheckbox" id="statsgraph" <?php if(!empty($pconfig['statsgraph'])) echo " checked=\"checked\""; ?> />
<?php echo gettext("Enable rrd graphs of NTP statistics (default: disabled)."); ?>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Syslog logging</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Syslog logging') ?></td>
<td width="78%" class="vtable">
<?php echo gettext("These options enable additional messages from NTP to be written to the System Log");?> (<a href="diag_logs_ntpd.php"><?php echo gettext("Status > System Logs > NTP"); ?></a>).
<br /><br />
......@@ -327,7 +327,7 @@ include("head.inc");
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Statistics logging</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Statistics logging') ?></td>
<td width="78%" class="vtable">
<div id="showstatisticsbox">
<input class="btn btn-default btn-xs" type="button" onclick="show_advanced('showstatisticsbox', 'showstatistics')" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show statistics logging options");?>
......@@ -347,7 +347,7 @@ include("head.inc");
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Access restrictions</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Access restrictions') ?></td>
<td width="78%" class="vtable">
<div id="showrestrictbox">
<input type="button" class="btn btn-default btn-xs" onclick="show_advanced('showrestrictbox', 'showrestrict')" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show access restriction options");?>
......@@ -376,7 +376,7 @@ include("head.inc");
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Leap seconds</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Leap seconds') ?></td>
<td width="78%" class="vtable">
<div id="showleapsecbox">
<input type="button" class="btn btn-default btn-xs" onclick="show_advanced('showleapsecbox', 'showleapsec')" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show Leap second configuration");?>
......
......@@ -370,7 +370,7 @@ SureGPS = #Sure Electronics SKG16B
<tr>
<td width="22%" valign="top" class="vncellreq">
</td>
<td width="78%" class="vtable">A GPS connected via a serial port may be used as a reference clock for NTP. If the GPS also supports PPS and is properly configured, and connected, that GPS may also be used as a Pulse Per Second clock reference. NOTE: a USB GPS may work, but is not recommended due to USB bus timing issues.
<td width="78%" class="vtable"><?=gettext('A GPS connected via a serial port may be used as a reference clock for NTP. If the GPS also supports PPS and is properly configured, and connected, that GPS may also be used as a Pulse Per Second clock reference. NOTE: a USB GPS may work, but is not recommended due to USB bus timing issues.') ?>
<br />
<br /><?php echo gettext("For the best results, NTP should have at least three sources of time. So it is best to configure at least 2 servers under"); ?> <a href="services_ntpd.php"><?php echo gettext("Services > NTP"); ?></a> <?php echo gettext("to minimize clock drift if the GPS data is not valid over time. Otherwise ntpd may only use values from the unsynchronized local clock when providing time to clients."); ?>
</td>
......@@ -380,14 +380,14 @@ SureGPS = #Sure Electronics SKG16B
<td width="78%" valign="top" class="vtable">
<!-- Start with the original "Default", list a "Generic" and then specific configs alphabetically -->
<select id="gpstype" name="gpstype" class="formselect" onchange="set_gps_default(this.form)">
<option value="Custom"<?php if($pconfig['type'] == 'Custom') echo " selected=\"selected\""; ?>>Custom</option>
<option value="Default"<?php if($pconfig['type'] == 'Default') echo " selected=\"selected\""; ?>>Default</option>
<option value="Generic" title="Generic"<?php if($pconfig['type'] == 'Generic' ) echo " selected=\"selected\"";?>>Generic</option>
<option value="Garmin" title="$PGRM... Most Garmin"<?php if($pconfig['type'] == 'Garmin') echo " selected=\"selected\"";?>>Garmin</option>
<option value="Custom"<?php if($pconfig['type'] == 'Custom') echo " selected=\"selected\""; ?>><?=gettext('Custom') ?></option>
<option value="Default"<?php if($pconfig['type'] == 'Default') echo " selected=\"selected\""; ?>><?=gettext('Default') ?></option>
<option value="Generic" title="Generic"<?php if($pconfig['type'] == 'Generic' ) echo " selected=\"selected\"";?>><?=gettext('Generic') ?></option>
<option value="Garmin" title="$PGRM... Most Garmin"<?php if($pconfig['type'] == 'Garmin') echo " selected=\"selected\"";?>><?=gettext('Garmin') ?></option>
<option value="MediaTek" title="$PMTK... Adafruit, Fastrax, some Garmin and others"<?php if($pconfig['type'] == 'MediaTek') echo " selected=\"selected\"";?>>MediaTek</option>
<option value="SiRF" title="$PSRF... Used by many devices"<?php if($pconfig['type'] == 'sirf') echo " selected=\"selected\"";?>>SiRF</option>
<option value="U-Blox" title="$PUBX... U-Blox 5, 6 and probably 7"<?php if($pconfig['type'] == 'U-Blox') echo " selected=\"selected\"";?>>U-Blox</option>
<option value="SureGPS" title="$PMTK... Sure Electronics SKG16B"<?php if($pconfig['type'] == 'SureGPS') echo " selected=\"selected\"";?>>SureGPS</option>
<option value="SiRF" title="$PSRF... Used by many devices"<?php if($pconfig['type'] == 'sirf') echo " selected=\"selected\"";?>><?=gettext('SiRF') ?></option>
<option value="U-Blox" title="$PUBX... U-Blox 5, 6 and probably 7"<?php if($pconfig['type'] == 'U-Blox') echo " selected=\"selected\"";?>><?=gettext('U-Blox') ?></option>
<option value="SureGPS" title="$PMTK... Sure Electronics SKG16B"<?php if($pconfig['type'] == 'SureGPS') echo " selected=\"selected\"";?>><?=gettext('SureGPS') ?></option>
</select> <?php echo gettext("This option allows you to select a predefined configuration.");?>
<br />
<br />
......@@ -402,7 +402,7 @@ SureGPS = #Sure Electronics SKG16B
if (!empty($serialports)):
?>
<tr>
<td width="22%" valign="top" class="vncellreq">Serial port</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Serial port') ?></td>
<td width="78%" class="vtable">
<select name="gpsport" class="formselect">
<option value="">none</option>
......@@ -436,7 +436,7 @@ SureGPS = #Sure Electronics SKG16B
?>
<tr>
<!-- 1 = RMC, 2 = GGA, 4 = GLL, 8 = ZDA or ZDG -->
<td width="22%" valign="top" class="vncellreq">NMEA sentences</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('NMEA sentences') ?></td>
<td width="78%" class="vtable">
<select id="gpsnmea" name="gpsnmea[]" multiple="multiple" class="formselect" size="5">
<option value="0"<?php if(empty($pconfig['nmea'])) echo " selected=\"selected\""; ?>>All</option>
......@@ -449,25 +449,25 @@ SureGPS = #Sure Electronics SKG16B
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Fudge time 1</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Fudge time 1') ?></td>
<td width="78%" class="vtable">
<input name="gpsfudge1" type="text" class="formfld unknown" id="gpsfudge1" min="-1" max="1" size="20" value="<?=htmlspecialchars(isset($pconfig['fudge1'])?$pconfig['fudge1']:"");?>" />(<?php echo gettext("seconds");?>)<br />
<?php echo gettext("Fudge time 1 is used to specify the GPS PPS signal offset");?> (<?php echo gettext("default");?>: 0.0).</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Fudge time 2</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Fudge time 2') ?></td>
<td width="78%" class="vtable">
<input name="gpsfudge2" type="text" class="formfld unknown" id="gpsfudge2" min="-1" max="1" size="20" value="<?=htmlspecialchars(isset($pconfig['fudge2'])?$pconfig['fudge2']:"");?>" />(<?php echo gettext("seconds");?>)<br />
<?php echo gettext("Fudge time 2 is used to specify the GPS time offset");?> (<?php echo gettext("default");?>: 0.0).</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Stratum</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Stratum') ?></td>
<td width="78%" class="vtable">
<input name="gpsstratum" type="text" class="formfld unknown" id="gpsstratum" max="16" size="20" value="<?=htmlspecialchars(isset($pconfig['stratum'])?$pconfig['stratum']:"");?>" /><?php echo gettext("(0-16)");?><br />
<?php echo gettext("This may be used to change the GPS Clock stratum");?> (<?php echo gettext("default");?>: 0). <?php echo gettext("This may be useful if, for some reason, you want ntpd to prefer a different clock"); ?></td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Flags</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Flags') ?></td>
<td width="78%" class="vtable">
<table>
<tr>
......@@ -537,13 +537,13 @@ SureGPS = #Sure Electronics SKG16B
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Clock ID</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Clock ID') ?></td>
<td width="78%" class="vtable">
<input name="gpsrefid" type="text" class="formfld unknown" id="gpsrefid" maxlength= "4" size="20" value="<?=htmlspecialchars(isset($pconfig['refid'])?$pconfig['refid']:"");?>" /><?php echo gettext("(1 to 4 charactors)");?><br />
<?php echo gettext("This may be used to change the GPS Clock ID");?> (<?php echo gettext("default");?>: GPS).</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">GPS Initialization</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('GPS Initialization') ?></td>
<td width="78%" class="vtable">
<div id="showgpsinitbox">
<input type="button" onclick="show_advanced('showgpsinitbox', 'showgpsinit')" value="<?=gettext("Advanced");?>" /> - <?=gettext("Show GPS Initialization commands");?>
......
......@@ -129,7 +129,7 @@ include("head.inc");
<?php $serialports = glob("/dev/cua?[0-9]{,.[0-9]}", GLOB_BRACE); ?>
<?php if (!empty($serialports)): ?>
<tr>
<td width="22%" valign="top" class="vncellreq">Serial port</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Serial port') ?></td>
<td width="78%" class="vtable">
<select name="ppsport" class="formselect">
<option value="">none</option>
......@@ -144,19 +144,19 @@ include("head.inc");
</tr>
<?php endif; ?>
<tr>
<td width="22%" valign="top" class="vncellreq">Fudge time</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Fudge time') ?></td>
<td width="78%" class="vtable">
<input name="ppsfudge1" type="text" class="formfld unknown" id="ppsfudge1" min="-1" max="1" size="20" value="<?=htmlspecialchars(isset($pconfig['fudge1'])?$pconfig['fudge1']:"");?>" />(<?php echo gettext("seconds");?>)<br />
<?php echo gettext("Fudge time is used to specify the PPS signal offset from the actual second such as the transmission delay between the transmitter and the receiver.");?> (<?php echo gettext("default");?>: 0.0).</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Stratum</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Stratum') ?></td>
<td width="78%" class="vtable">
<input name="ppsstratum" type="text" class="formfld unknown" id="ppsstratum" max="16" size="20" value="<?=htmlspecialchars(isset($pconfig['stratum'])?$pconfig['stratum']:"");?>" /><?php echo gettext("(0-16)");?><br />
<?php echo gettext("This may be used to change the PPS Clock stratum");?> (<?php echo gettext("default");?>: 0). <?php echo gettext("This may be useful if, for some reason, you want ntpd to prefer a different clock and just monitor this source."); ?></td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Flags</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Flags') ?></td>
<td width="78%" class="vtable">
<table summary="flags">
<tr>
......@@ -194,7 +194,7 @@ include("head.inc");
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncellreq">Clock ID</td>
<td width="22%" valign="top" class="vncellreq"><?=gettext('Clock ID') ?></td>
<td width="78%" class="vtable">
<input name="ppsrefid" type="text" class="formfld unknown" id="ppsrefid" maxlength= "4" size="20" value="<?php htmlspecialchars(isset($pconfig['refid'])?$pconfig['refid']:"");?>" /><?php echo gettext("(1 to 4 charactors)");?><br />
<?php echo gettext("This may be used to change the PPS Clock ID");?> (<?php echo gettext("default");?>: PPS).</td>
......
......@@ -337,11 +337,11 @@ include_once("head.inc");
<td width="78%" class="vtable">
<p>
<select id="infra_host_ttl" name="infra_host_ttl" class="selectpicker">
<option value="60" <?php if ($pconfig['infra_host_ttl'] == "60") echo "selected=\"selected\""; ?>>1 minute</option>
<option value="120" <?php if ($pconfig['infra_host_ttl'] == "120") echo "selected=\"selected\""; ?>>2 minutes</option>
<option value="300" <?php if ($pconfig['infra_host_ttl'] == "300") echo "selected=\"selected\""; ?>>5 minutes</option>
<option value="600" <?php if ($pconfig['infra_host_ttl'] == "600") echo "selected=\"selected\""; ?>>10 minutes</option>
<option value="900" <?php if ($pconfig['infra_host_ttl'] == "900") echo "selected=\"selected\""; ?>>15 minutes</option>
<option value="60" <?php if ($pconfig['infra_host_ttl'] == "60") echo "selected=\"selected\""; ?>><?=gettext('1 minute') ?></option>
<option value="120" <?php if ($pconfig['infra_host_ttl'] == "120") echo "selected=\"selected\""; ?>><?=gettext('2 minutes') ?></option>
<option value="300" <?php if ($pconfig['infra_host_ttl'] == "300") echo "selected=\"selected\""; ?>><?=gettext('5 minutes') ?></option>
<option value="600" <?php if ($pconfig['infra_host_ttl'] == "600") echo "selected=\"selected\""; ?>><?=gettext('10 minutes') ?></option>
<option value="900" <?php if ($pconfig['infra_host_ttl'] == "900") echo "selected=\"selected\""; ?>><?=gettext('15 minutes') ?></option>
</select><br />
<?=gettext("Time to live for entries in the host cache. The host cache contains roundtrip timing and EDNS support information. The default is 15 minutes.");?>
</p>
......@@ -352,11 +352,11 @@ include_once("head.inc");
<td width="78%" class="vtable">
<p>
<select id="infra_lame_ttl" name="infra_lame_ttl" class="selectpicker">
<option value="60" <?php if ($pconfig['infra_lame_ttl'] == "60") echo "selected=\"selected\""; ?>>1 minute</option>
<option value="120" <?php if ($pconfig['infra_lame_ttl'] == "120") echo "selected=\"selected\""; ?>>2 minutes</option>
<option value="300" <?php if ($pconfig['infra_lame_ttl'] == "300") echo "selected=\"selected\""; ?>>5 minutes</option>
<option value="600" <?php if ($pconfig['infra_lame_ttl'] == "600") echo "selected=\"selected\""; ?>>10 minutes</option>
<option value="900" <?php if ($pconfig['infra_lame_ttl'] == "900") echo "selected=\"selected\""; ?>>15 minutes</option>
<option value="60" <?php if ($pconfig['infra_lame_ttl'] == "60") echo "selected=\"selected\""; ?>><?=gettext('1 minute') ?></option>
<option value="120" <?php if ($pconfig['infra_lame_ttl'] == "120") echo "selected=\"selected\""; ?>><?=gettext('2 minutes') ?></option>
<option value="300" <?php if ($pconfig['infra_lame_ttl'] == "300") echo "selected=\"selected\""; ?>><?=gettext('5 minutes') ?></option>
<option value="600" <?php if ($pconfig['infra_lame_ttl'] == "600") echo "selected=\"selected\""; ?>><?=gettext('10 minutes') ?></option>
<option value="900" <?php if ($pconfig['infra_lame_ttl'] == "900") echo "selected=\"selected\""; ?>><?=gettext('15 minutes') ?></option>
</select><br />
<?=gettext("Time to live for when a delegation is considered to be lame. The default is 15 minutes.");?>
</p>
......@@ -367,11 +367,11 @@ include_once("head.inc");
<td width="78%" class="vtable">
<p>
<select id="infra_cache_numhosts" name="infra_cache_numhosts" class="selectpicker">
<option value="1000" <?php if ($pconfig['infra_cache_numhosts'] == "1000") echo "selected=\"selected\""; ?>>1000</option>
<option value="5000" <?php if ($pconfig['infra_cache_numhosts'] == "5000") echo "selected=\"selected\""; ?>>5000</option>
<option value="10000" <?php if ($pconfig['infra_cache_numhosts'] == "10000") echo "selected=\"selected\""; ?>>10 000</option>
<option value="20000" <?php if ($pconfig['infra_cache_numhosts'] == "20000") echo "selected=\"selected\""; ?>>20 000</option>
<option value="50000" <?php if ($pconfig['infra_cache_numhosts'] == "50000") echo "selected=\"selected\""; ?>>50 000</option>
<option value="1000" <?php if ($pconfig['infra_cache_numhosts'] == "1000") echo "selected=\"selected\""; ?>><?=gettext('1000') ?></option>
<option value="5000" <?php if ($pconfig['infra_cache_numhosts'] == "5000") echo "selected=\"selected\""; ?>><?=gettext('5000') ?></option>
<option value="10000" <?php if ($pconfig['infra_cache_numhosts'] == "10000") echo "selected=\"selected\""; ?>><?=gettext('10 000') ?></option>
<option value="20000" <?php if ($pconfig['infra_cache_numhosts'] == "20000") echo "selected=\"selected\""; ?>><?=gettext('20 000') ?></option>
<option value="50000" <?php if ($pconfig['infra_cache_numhosts'] == "50000") echo "selected=\"selected\""; ?>><?=gettext('50 000') ?></option>
</select><br />
<?=gettext("Number of hosts for which information is cached. The default is 10,000.");?>
</p>
......@@ -382,12 +382,12 @@ include_once("head.inc");
<td width="78%" class="vtable">
<p>
<select id="unwanted_reply_threshold" name="unwanted_reply_threshold" class="selectpicker">
<option value="disabled" <?php if ($pconfig['unwanted_reply_threshold'] == "disabled") echo "selected=\"selected\""; ?>>disabled</option>
<option value="5000000" <?php if ($pconfig['unwanted_reply_threshold'] == "5000000") echo "selected=\"selected\""; ?>>5 million</option>
<option value="10000000" <?php if ($pconfig['unwanted_reply_threshold'] == "10000000") echo "selected=\"selected\""; ?>>10 million</option>
<option value="20000000" <?php if ($pconfig['unwanted_reply_threshold'] == "20000000") echo "selected=\"selected\""; ?>>20 million</option>
<option value="40000000" <?php if ($pconfig['unwanted_reply_threshold'] == "40000000") echo "selected=\"selected\""; ?>>40 million</option>
<option value="50000000" <?php if ($pconfig['unwanted_reply_threshold'] == "50000000") echo "selected=\"selected\""; ?>>50 million</option>
<option value="disabled" <?php if ($pconfig['unwanted_reply_threshold'] == "disabled") echo "selected=\"selected\""; ?>><?=gettext('disabled') ?></option>
<option value="5000000" <?php if ($pconfig['unwanted_reply_threshold'] == "5000000") echo "selected=\"selected\""; ?>><?=gettext('5 million') ?></option>
<option value="10000000" <?php if ($pconfig['unwanted_reply_threshold'] == "10000000") echo "selected=\"selected\""; ?>><?=gettext('10 million') ?></option>
<option value="20000000" <?php if ($pconfig['unwanted_reply_threshold'] == "20000000") echo "selected=\"selected\""; ?>><?=gettext('20 million') ?></option>
<option value="40000000" <?php if ($pconfig['unwanted_reply_threshold'] == "40000000") echo "selected=\"selected\""; ?>><?=gettext('40 million') ?></option>
<option value="50000000" <?php if ($pconfig['unwanted_reply_threshold'] == "50000000") echo "selected=\"selected\""; ?>><?=gettext('50 million') ?></option>
</select><br />
<?=gettext("If enabled, a total number of unwanted replies is kept track of in every thread. When it reaches the threshold, a defensive action is taken and a warning is printed to the log file. This defensive action is to clear the RRSet and message caches, hopefully flushing away any poison. The default is disabled, but if enabled a value of 10 million is suggested.");?>
</p>
......
......@@ -189,11 +189,11 @@ include("head.inc");
<tbody>
<?php if (isset($config['ntpd']['noquery'])): ?>
<tr><td class="listlr" colspan="11" align="center">
Statistics unavailable because ntpq and ntpdc queries are disabled in the <a href="services_ntpd.php">NTP service settings</a>.
<?= sprintf(gettext('Statistics unavailable because ntpq and ntpdc queries are disabled in the %sNTP service settings%s.'), '<a href="services_ntpd.php">','</a>') ?>
</td></tr>
<?php elseif (count($ntpq_servers) == 0): ?>
<tr><td class="listlr" colspan="11" align="center">
No peers found, <a href="status_services.php">is the ntp service running?</a>.
<?= sprintf(gettext('No peers found, %sis the ntp service running%s?'), '<a href="status_services.php">','</a>') ?>
</td></tr>
<?php else: ?>
<?php $i = 0; foreach ($ntpq_servers as $server): ?>
......
<?php
/*
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2004 Scott Ullrich
......@@ -187,9 +188,8 @@ if(empty($if)) {
</table>
</div>
<b>Flags:</b> A = authorized, E = Extended Rate (802.11g), P = Power save mode<br />
<b>Capabilities:</b> E = ESS (infrastructure mode), I = IBSS (ad-hoc mode), P = privacy (WEP/TKIP/AES),
S = Short preamble, s = Short slot time
<b><?=gettext('Flags:') ?></b> <?=gettext('A = authorized, E = Extended Rate (802.11g), P = Power save mode') ?><br />
<b><?=gettext('Capabilities:') ?></b> <?=gettext('E = ESS (infrastructure mode), I = IBSS (ad-hoc mode), P = privacy (WEP/TKIP/AES), S = Short preamble, s = Short slot time') ?>
</form>
</div>
</section>
......
......@@ -430,7 +430,7 @@ endif; ?>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Disable Auto-added VPN rules</td>
<td width="22%" valign="top" class="vncell"><?=gettext('Disable Auto-added VPN rules') ?></td>
<td width="78%" class="vtable">
<input name="disablevpnrules" type="checkbox" id="disablevpnrules" value="yes" <?php if (isset($config['system']['disablevpnrules'])) {
echo "checked=\"checked\"";
......@@ -442,7 +442,7 @@ endif; ?>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Disable reply-to</td>
<td width="22%" valign="top" class="vncell"><?=gettext('Disable reply-to') ?></td>
<td width="78%" class="vtable">
<input name="disablereplyto" type="checkbox" id="disablereplyto" value="yes" <?php if ($pconfig['disablereplyto']) {
echo "checked=\"checked\"";
......@@ -455,7 +455,7 @@ endif; ?>
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell">Disable Negate rules</td>
<td width="22%" valign="top" class="vncell"><?=gettext('Disable Negate rules') ?></td>
<td width="78%" class="vtable">
<input name="disablenegate" type="checkbox" id="disablenegate" value="yes" <?php if ($pconfig['disablenegate']) {
echo "checked=\"checked\"";
......
......@@ -928,7 +928,7 @@ else :
loaded = <?php echo $counter; ?>;
//]]>
</script>
<br />NOTE: Type must be one of DNS (FQDN or Hostname), IP (IP address), URI, or email.
<br /><?=gettext('NOTE: Type must be one of DNS (FQDN or Hostname), IP (IP address), URI, or email.') ?>
</td>
</tr>
</table>
......@@ -1256,8 +1256,8 @@ else :
<?php if (is_array($purpose)) :
?>
<tr><td colspan="2">
CA: <?php echo $purpose['ca']; ?>,
Server: <?php echo $purpose['server']; ?>
<?=gettext('CA:') ?> <?php echo $purpose['ca']; ?>,
<?=gettext('Server:') ?> <?php echo $purpose['server']; ?>
</td></tr>
<?php
endif; ?>
......@@ -1281,32 +1281,32 @@ endif; ?>
<td class="listr">
<?php if (is_cert_revoked($cert)) :
?>
<b>Revoked</b><br />
<b><?=gettext('Revoked') ?></b><br />
<?php
endif; ?>
<?php if (is_webgui_cert($cert['refid'])) :
?>
webConfigurator<br />
<?=gettext('webConfigurator') ?><br />
<?php
endif; ?>
<?php if (is_user_cert($cert['refid'])) :
?>
User Cert<br />
<?=gettext('User Cert') ?><br />
<?php
endif; ?>
<?php if (is_openvpn_server_cert($cert['refid'])) :
?>
OpenVPN Server<br />
<?=gettext('OpenVPN Server') ?><br />
<?php
endif; ?>
<?php if (is_openvpn_client_cert($cert['refid'])) :
?>
OpenVPN Client<br />
<?=gettext('OpenVPN Client') ?><br />
<?php
endif; ?>
<?php if (is_ipsec_cert($cert['refid'])) :
?>
IPsec Tunnel<br />
<?=gettext('IPsec Tunnel') ?><br />
<?php
endif; ?>
......
......@@ -119,25 +119,25 @@ include("head.inc");
<table class="table table-primary table-striped" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
<thead>
<tr>
<th colspan="2" class="listtopic">State Synchronization Settings (pfsync)</th>
<th colspan="2" class="listtopic"><?=gettext('State Synchronization Settings (pfsync)') ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td width="22%" class="vncell">Synchronize States</td>
<td width="22%" class="vncell"><?=gettext('Synchronize States') ?></td>
<td class="vtable">
<input id='pfsyncenabled' type='checkbox' name='pfsyncenabled' value='on' <?php if ($pconfig['pfsyncenabled'] === "on") {
echo "checked='checked'";
} ?> />
pfsync transfers state insertion, update, and deletion messages between firewalls.<br/>
Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol <a href="http://www.openbsd.org/faq/pf/carp.html" target="_blank">(IP Protocol 240)</a>.
<br/>It also listens on that interface for similar messages from other firewalls, and imports them into the local state table.
<br/>This setting should be enabled on all members of a failover group.
<div class="well well-sm" ><b>Clicking save will force a configuration sync if it is enabled! (see Configuration Synchronization Settings below)</b></div>
<?= sprintf(gettext('pfsync transfers state insertion, update, and deletion messages between firewalls.%s' .
'Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol (%sIP Protocol 240%s).%s' .
'It also listens on that interface for similar messages from other firewalls, and imports them into the local state table.%s' .
'This setting should be enabled on all members of a failover group.'), '<br/>','<a href="http://www.openbsd.org/faq/pf/carp.html" target="_blank">','</a>','<br/>','<br/>') ?>
<div class="well well-sm" ><b><?=gettext('Clicking save will force a configuration sync if it is enabled! (see Configuration Synchronization Settings below)') ?></b></div>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Interface</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Interface') ?></td>
<td class="vtable">
<select id='pfsyncinterface' name="pfsyncinterface" class="selectpicker" data-style="btn-default" data-live-search="true" data-width="auto">
<?php foreach ($ifaces as $ifname => $iface) {
......@@ -148,21 +148,21 @@ include("head.inc");
<?php
} ?>
</select>
If Synchronize States is enabled, it will utilize this interface for communication.<br/><br/>
<?=gettext('If Synchronize States is enabled, it will utilize this interface for communication.') ?><br/><br/>
<div class="well">
<lu>
<li>We recommend setting this to a interface other than LAN! A dedicated interface works the best.</li>
<li>You must define a IP on each machine participating in this failover group.</li>
<li>You must have an IP assigned to the interface on any participating sync nodes.</li>
<li><?=gettext('We recommend setting this to a interface other than LAN! A dedicated interface works the best.') ?></li>
<li><?=gettext('You must define a IP on each machine participating in this failover group.') ?></li>
<li><?=gettext('You must have an IP assigned to the interface on any participating sync nodes.') ?></li>
</lu>
</div>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">pfsync Synchronize Peer IP</td>
<td width="22%" class="vncell"><?=gettext('pfsync Synchronize Peer IP') ?></td>
<td class="vtable">
<input id='pfsyncpeerip' name='pfsyncpeerip' type='text' class='formfld unknown' value='<?= htmlentities($pconfig['pfsyncpeerip']); ?>' />
Setting this option will force pfsync to synchronize its state table to this IP address. The default is directed multicast.
<?=gettext('Setting this option will force pfsync to synchronize its state table to this IP address. The default is directed multicast.') ?>
</td>
</tr>
<tr>
......@@ -175,179 +175,179 @@ include("head.inc");
<table class="table table-primary table-striped" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
<thead>
<tr>
<th colspan="2" class="listtopic">Configuration Synchronization Settings (XMLRPC Sync)</th>
<th colspan="2" class="listtopic"><?=gettext('Configuration Synchronization Settings (XMLRPC Sync)') ?></th>
</tr>
</thead>
<tbody>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Config to IP</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Config to IP') ?></td>
<td class="vtable">
<input id='synchronizetoip' name='synchronizetoip' type='text' class='formfld unknown' value='<?= htmlentities($pconfig['synchronizetoip']); ?>' />
Enter the IP address of the firewall to which the selected configuration sections should be synchronized.<br />
<?=gettext('Enter the IP address of the firewall to which the selected configuration sections should be synchronized.') ?><br />
<div class="well">
<lu>
<li>XMLRPC sync is currently only supported over connections using the same protocol and port as this system - make sure the remote system's port and protocol are set accordingly!</li>
<li><b>Do not use the Synchronize Config to IP and password option on backup cluster members!</b></li>
<li><?=gettext('XMLRPC sync is currently only supported over connections using the same protocol and port as this system - make sure the remote system\'s port and protocol are set accordingly!') ?></li>
<li><b><?=gettext('Do not use the Synchronize Config to IP and password option on backup cluster members!') ?></b></li>
</lu>
</div>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Remote System Username</td>
<td width="22%" class="vncell"><?=gettext('Remote System Username') ?></td>
<td class="vtable">
<input id='username' name='username' type='text' class='formfld unknown' value='<?= htmlentities($pconfig['username']); ?>' />
<br />
Enter the webConfigurator username of the system entered above for synchronizing your configuration.<br />
<?=gettext('Enter the webConfigurator username of the system entered above for synchronizing your configuration.') ?><br />
<div class="well well-sm">
<b>Do not use the Synchronize Config to IP and username option on backup cluster members!</b>
<b><?=gettext('Do not use the Synchronize Config to IP and username option on backup cluster members!') ?></b>
</div>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Remote System Password</td>
<td width="22%" class="vncell"><?=gettext('Remote System Password') ?></td>
<td class="vtable">
<input id='password' type='password' name='password' class='formfld pwd' value='<?= htmlentities($pconfig['password']); ?>' />
<br />
Enter the webConfigurator password of the system entered above for synchronizing your configuration.<br />
<?=gettext('Enter the webConfigurator password of the system entered above for synchronizing your configuration.') ?><br />
<div class="well well-sm">
<b>Do not use the Synchronize Config to IP and password option on backup cluster members!</b>
<b><?=gettext('Do not use the Synchronize Config to IP and password option on backup cluster members!') ?></b>
</div>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Users and Groups</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Users and Groups') ?></td>
<td class="vtable">
<input id='synchronizeusers' type='checkbox' name='synchronizeusers' value='on' <?php if ($pconfig['synchronizeusers'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the users and groups over to the other HA host when changes are made.
<?=gettext('Automatically sync the users and groups over to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Auth Servers</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Auth Servers') ?></td>
<td class="vtable">
<input id='synchronizeauthservers' type='checkbox' name='synchronizeauthservers' value='on' <?php if ($pconfig['synchronizeauthservers'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the authentication servers (e.g. LDAP, RADIUS) over to the other HA host when changes are made.
<?=gettext('Automatically sync the authentication servers (e.g. LDAP, RADIUS) over to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Certificates</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Certificates') ?></td>
<td class="vtable">
<input id='synchronizecerts' type='checkbox' name='synchronizecerts' value='on' <?php if ($pconfig['synchronizecerts'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the Certificate Authorities, Certificates, and Certificate Revocation Lists over to the other HA host when changes are made.
<?=gettext('Automatically sync the Certificate Authorities, Certificates, and Certificate Revocation Lists over to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize rules</td>
<td width="22%" class="vncell"><?=gettext('Synchronize rules') ?></td>
<td class="vtable">
<input id='synchronizerules' type='checkbox' name='synchronizerules' value='on' <?php if ($pconfig['synchronizerules'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the firewall rules to the other HA host when changes are made.
<?=gettext('Automatically sync the firewall rules to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Firewall Schedules</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Firewall Schedules') ?></td>
<td class="vtable">
<input id='synchronizeschedules' type='checkbox' name='synchronizeschedules' value='on' <?php if ($pconfig['synchronizeschedules'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the firewall schedules to the other HA host when changes are made.
<?=gettext('Automatically sync the firewall schedules to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize aliases</td>
<td width="22%" class="vncell"><?=gettext('Synchronize aliases') ?></td>
<td class="vtable">
<input id='synchronizealiases' type='checkbox' name='synchronizealiases' value='on' <?php if ($pconfig['synchronizealiases'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the aliases over to the other HA host when changes are made.
<?=gettext('Automatically sync the aliases over to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize NAT</td>
<td width="22%" class="vncell"><?=gettext('Synchronize NAT') ?></td>
<td class="vtable">
<input id='synchronizenat' type='checkbox' name='synchronizenat' value='on' <?php if ($pconfig['synchronizenat'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the NAT rules over to the other HA host when changes are made.
<?=gettext('Automatically sync the NAT rules over to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize IPsec</td>
<td width="22%" class="vncell"><?=gettext('Synchronize IPsec') ?></td>
<td class="vtable">
<input id='synchronizeipsec' type='checkbox' name='synchronizeipsec' value='on' <?php if ($pconfig['synchronizeipsec'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the IPsec configuration to the other HA host when changes are made.
<?=gettext('Automatically sync the IPsec configuration to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize OpenVPN</td>
<td width="22%" class="vncell"><?=gettext('Synchronize OpenVPN') ?></td>
<td class="vtable">
<input id='synchronizeopenvpn' type='checkbox' name='synchronizeopenvpn' value='on' <?php if ($pconfig['synchronizeopenvpn'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the OpenVPN configuration to the other HA host when changes are made.
<div class="well well-sm"><b>Using this option implies "Synchronize Certificates" as they are required for OpenVPN.</b></div>
<?=gettext('Automatically sync the OpenVPN configuration to the other HA host when changes are made.') ?>
<div class="well well-sm"><b><?=gettext('Using this option implies "Synchronize Certificates" as they are required for OpenVPN.') ?></b></div>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize DHCPD</td>
<td width="22%" class="vncell"><?=gettext('Synchronize DHCPD') ?></td>
<td class="vtable">
<input id='synchronizedhcpd' type='checkbox' name='synchronizedhcpd' value='on' <?php if ($pconfig['synchronizedhcpd'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the DHCP Server settings over to the other HA host when changes are made. This only applies to DHCP for IPv4.
<?=gettext('Automatically sync the DHCP Server settings over to the other HA host when changes are made. This only applies to DHCP for IPv4.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Wake on LAN</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Wake on LAN') ?></td>
<td class="vtable">
<input id='synchronizewol' type='checkbox' name='synchronizewol' value='on' <?php if ($pconfig['synchronizewol'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the WoL configuration to the other HA host when changes are made.
<?=gettext('Automatically sync the WoL configuration to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Static Routes</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Static Routes') ?></td>
<td class="vtable">
<input id='synchronizestaticroutes' type='checkbox' name='synchronizestaticroutes' value='on' <?php if ($pconfig['synchronizestaticroutes'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the Static Route configuration to the other HA host when changes are made.
<?=gettext('Automatically sync the Static Route configuration to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Load Balancer</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Load Balancer') ?></td>
<td class="vtable">
<input id='synchronizelb' type='checkbox' name='synchronizelb' value='on' <?php if ($pconfig['synchronizelb'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the Load Balancer configuration to the other HA host when changes are made.
<?=gettext('Automatically sync the Load Balancer configuration to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize Virtual IPs</td>
<td width="22%" class="vncell"><?=gettext('Synchronize Virtual IPs') ?></td>
<td class="vtable">
<input id='synchronizevirtualip' type='checkbox' name='synchronizevirtualip' value='on' <?php if ($pconfig['synchronizevirtualip'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the CARP Virtual IPs to the other HA host when changes are made.
<?=gettext('Automatically sync the CARP Virtual IPs to the other HA host when changes are made.') ?>
</td>
</tr>
<tr valign="top">
<td width="22%" class="vncell">Synchronize DNS Forwarder</td>
<td width="22%" class="vncell"><?=gettext('Synchronize DNS Forwarder') ?></td>
<td class="vtable">
<input id='synchronizednsforwarder' type='checkbox' name='synchronizednsforwarder' value='on' <?php if ($pconfig['synchronizednsforwarder'] === "on") {
echo "checked='checked'";
} ?> />
Automatically sync the DNS Forwarder configuration to the other HA host when changes are made.
<?=gettext('Automatically sync the DNS Forwarder configuration to the other HA host when changes are made.') ?>
</td>
</tr>
<tr>
......
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