Commit ad277dc1 authored by Frédéric Lietart's avatar Frédéric Lietart

Update Missing translations #452

parent a7472d92
......@@ -102,7 +102,7 @@ include("head.inc");
<div class="content-box">
<header class="content-box-head container-fluid">
<h3>Test a server</h3>
<h3><?= gettext('Test a server') ?></h3>
</header>
<div class="content-box-main">
......
......@@ -77,7 +77,7 @@ if(isset($_POST['create_alias']) && (is_hostname($host) || is_ipaddr($host))) {
$newalias['name'] = $aliasname;
$newalias['type'] = "network";
$newalias['address'] = $addresses;
$newalias['descr'] = "Created from Diagnostics-> DNS Lookup";
$newalias['descr'] = gettext('Created from Diagnostics-> DNS Lookup');
if($override)
$a_aliases[$id] = $newalias;
else
......@@ -207,14 +207,14 @@ include("head.inc"); ?>
<td>
<? if($found > 0): ?>
<?PHP if($alias_exists): ?>
An alias already exists for the hostname <?= htmlspecialchars($host) ?>. <br />
<?= sprintf(gettext('An alias already exists for the hostname %s.'), htmlspecialchars($host)) ?>. <br />
<input type="hidden" name="override" value="true"/>
<input type="submit" class="btn btn-default" name="create_alias" value="Overwrite Alias"/>
<?php else: ?>
<?php if(!$createdalias): ?>
<input type="submit" class="btn btn-default" name="create_alias" value="Create Alias"/>
<?php else: ?>
Alias created with name <?= htmlspecialchars($newalias['name']) ?>
<?= sprintf(gettext('Alias created with name %s.'), htmlspecialchars($newalias['name'])) ?>
<? endif; endif; endif; ?>
</td>
<? else: ?>
......
......@@ -34,7 +34,7 @@ $shortcut_section = "trafficshaper-limiters";
if(isset($_POST['getactivity'])) {
$text = `/sbin/ipfw pipe show`;
if($text == "")
$text = "We could not find any limiters on this system.";
$text = gettext('We could not find any limiters on this system.');
echo "Limiters:\n";
echo $text;
$text = `/sbin/ipfw queue show`;
......
......@@ -74,7 +74,7 @@ include("head.inc");
<input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" />
</form>
</td><tr>
<tr><td colspan="2">NOTE: Clearing the log file will restart the DHCP daemon.</td></tr>
<tr><td colspan="2"><?=gettext('NOTE: Clearing the log file will restart the DHCP daemon.') ?></td></tr>
</table>
</div>
</div>
......
......@@ -307,18 +307,18 @@ function check_everything() {
<td colspan="2" valign="top" class="listtopic"><?=gettext("General Logging Options");?></td>
</tr>
<tr>
<td width="22%" valign="top" class="vtable">Forward/Reverse Display</td>
<td width="22%" valign="top" class="vtable"><?=gettext('Forward/Reverse Display') ?></td>
<td width="78%" class="vtable"> <input name="reverse" type="checkbox" id="reverse" value="yes" <?php if ($pconfig['reverse']) echo "checked=\"checked\""; ?> />
<strong><?=gettext("Show log entries in reverse order (newest entries on top)");?></strong></td>
</tr>
<tr>
<td width="22%" valign="top" class="vtable">GUI Log Entries to Display</td>
<td width="22%" valign="top" class="vtable"><?=gettext('GUI Log Entries to Display') ?></td>
<td width="78%" class="vtable">
<input name="nentries" id="nentries" type="text" class="formfld unknown" size="4" value="<?=htmlspecialchars($pconfig['nentries']);?>" /><br />
<?=gettext("Hint: This is only the number of log entries displayed in the GUI. It does not affect how many entries are contained in the actual log files.") ?></td>
</tr>
<tr>
<td width="22%" valign="top" class="vtable">Log File Size (Bytes)</td>
<td width="22%" valign="top" class="vtable"><?=gettext('Log File Size (Bytes)') ?></td>
<td width="78%" class="vtable">
<input name="logfilesize" id="logfilesize" type="text" class="formfld unknown" size="8" value="<?=htmlspecialchars($pconfig['logfilesize']);?>" /><br />
<?=gettext("Logs are held in constant-size circular log files. This field controls how large each log file is, and thus how many entries may exist inside the log. By default this is approximately 500KB per log file, and there are nearly 20 such log files.") ?>
......@@ -330,7 +330,7 @@ function check_everything() {
</td>
</tr>
<tr>
<td valign="top" class="vtable">Log Firewall Default Blocks</td>
<td valign="top" class="vtable"><?=gettext('Log Firewall Default Blocks') ?></td>
<td class="vtable">
<input name="logdefaultblock" type="checkbox" id="logdefaultblock" value="yes" <?php if ($pconfig['logdefaultblock']) echo "checked=\"checked\""; ?> />
<strong><?=gettext("Log packets matched from the default block rules put in the ruleset");?></strong><br />
......@@ -348,18 +348,18 @@ function check_everything() {
</td>
</tr>
<tr>
<td valign="top" class="vtable">Web Server Log</td>
<td valign="top" class="vtable"><?=gettext('Web Server Log') ?></td>
<td class="vtable"> <input name="loglighttpd" type="checkbox" id="loglighttpd" value="yes" <?php if ($pconfig['loglighttpd']) echo "checked=\"checked\""; ?> />
<strong><?=gettext("Log errors from the web server process.");?></strong><br />
<?=gettext("Hint: If this is checked, errors from the lighttpd web server process for the GUI or Captive Portal will appear in the main system log.");?></td>
</tr>
<tr>
<td valign="top" class="vtable">Filter descriptions</td>
<td valign="top" class="vtable"><?=gettext('Filter descriptions') ?></td>
<td class="vtable">
<select name="filterdescriptions" id="filterdescriptions" class="form-control">
<option value="0"<?=!isset($pconfig['filterdescriptions'])?" selected=\"selected\"":""?>>Omit descriptions</option>
<option value="1"<?=($pconfig['filterdescriptions'])==="1"?" selected=\"selected\"":""?>>Display as column</option>
<option value="2"<?=($pconfig['filterdescriptions'])==="2"?" selected=\"selected\"":""?>>Display as second row</option>
<option value="0"<?=!isset($pconfig['filterdescriptions'])?" selected=\"selected\"":""?>><?=gettext('Omit descriptions') ?></option>
<option value="1"<?=($pconfig['filterdescriptions'])==="1"?" selected=\"selected\"":""?>><?=gettext('Display as column') ?></option>
<option value="2"<?=($pconfig['filterdescriptions'])==="2"?" selected=\"selected\"":""?>><?=gettext('Display as second row') ?></option>
</select>
<strong><?=gettext("Show the applied rule description below or in the firewall log rows.");?></strong>
<br />
......@@ -367,12 +367,12 @@ function check_everything() {
</td>
</tr>
<tr>
<td width="22%" valign="top" class="vtable">Local Logging</td>
<td width="22%" valign="top" class="vtable"><?=gettext('Local Logging') ?></td>
<td width="78%" class="vtable"> <input name="disablelocallogging" type="checkbox" id="disablelocallogging" value="yes" <?php if ($pconfig['disablelocallogging']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" />
<strong><?=gettext("Disable writing log files to the local disk");?></strong></td>
</tr>
<tr>
<td width="22%" valign="top">Reset Logs</td>
<td width="22%" valign="top"><?=gettext('Reset Logs') ?></td>
<td width="78%">
<input name="resetlogs" type="submit" class="btn btn-primary" value="<?=gettext("Reset Log Files"); ?>" onclick="return confirm('<?=gettext('Do you really want to reset the log files? This will erase all local log data.');?>')" />
<br /><br />
......@@ -389,7 +389,7 @@ function check_everything() {
<td width="22%" valign="top" class="vncell"><?=gettext("Source Address"); ?></td>
<td width="78%" class="vtable">
<select name="sourceip" class="form-control">
<option value="">Default (any)</option>
<option value=""><?=gettext('Default (any)') ?></option>
<?php $sourceips = get_possible_traffic_source_addresses(false);
foreach ($sourceips as $sip):
$selected = "";
......
......@@ -260,7 +260,7 @@ include("fbegin.inc");
<td><?=gettext("Address Family");?></td>
<td>
<select name="fam" class="form-control">
<option value="">Any</option>
<option value=""><?=gettext('Any') ?></option>
<option value="ip" <?php if ($fam == "ip") echo "selected=\"selected\""; ?>>IPv4 Only</option>
<option value="ip6" <?php if ($fam == "ip6") echo "selected=\"selected\""; ?>>IPv6 Only</option>
</select>
......@@ -271,7 +271,7 @@ include("fbegin.inc");
<td><?=gettext("Protocol");?></td>
<td>
<select name="proto" class="form-control">
<option value="">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\""; ?>>Exclude ICMP</option>
<option value="icmp6" <?php if ($proto == "icmp6") echo "selected=\"selected\""; ?>>ICMPv6</option>
......
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