Commit 18748c37 authored by Fabian Franz's avatar Fabian Franz Committed by Franco Fichtner

translation and style fixes

(cherry picked from commit 619b089c)
(cherry picked from commit d97a1078)
parent e5d0e97a
...@@ -321,18 +321,16 @@ include("head.inc"); ...@@ -321,18 +321,16 @@ include("head.inc");
<tr> <tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Protocol"); ?></td> <td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Protocol"); ?></td>
<td> <td>
<input name="webguiproto" id="http_proto" type="radio" value="http" <?=$pconfig['webguiproto'] == "http" ? "checked=\"checked\"" :"";?> onclick="prot_change()" /> <input name="webguiproto" id="http_proto" type="radio" value="http" <?= $pconfig['webguiproto'] == "http" ? 'checked="checked"' :'' ?> onclick="prot_change()" />
<?=gettext("HTTP"); ?> <?=gettext("HTTP"); ?>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<input name="webguiproto" id="https_proto" type="radio" value="https" <?=$pconfig['webguiproto'] == "https" ? "checked=\"checked\"" :"";?> <?=!$certs_available ? "disabled=\"disabled\"": "";?> onclick="prot_change()" /> <input name="webguiproto" id="https_proto" type="radio" value="https" <?= $pconfig['webguiproto'] == "https" ? 'checked="checked"' : '' ?> <?=$certs_available ? '' : 'disabled="disabled"' ?> onclick="prot_change()" />
<?=gettext("HTTPS"); ?> <?=gettext("HTTPS"); ?>
<?php <?php
if (!$certs_available) :?> if (!$certs_available) :?>
<br /> <br />
<?=gettext("No Certificates have been defined. You must"); ?> <?= sprintf(gettext("No Certificates have been defined. You must %sCreate or Import%s a Certificate before SSL can be enabled."),'<a href="system_certmanager.php">','</a>') ?>
<a href="system_certmanager.php"><?=gettext("Create or Import"); ?></a>
<?=gettext("a Certificate before SSL can be enabled."); ?>
<?php <?php
endif; ?> endif; ?>
</td> </td>
...@@ -372,12 +370,12 @@ include("head.inc"); ...@@ -372,12 +370,12 @@ include("head.inc");
<tr> <tr>
<td><a id="help_for_disablehttpredirect" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("WebGUI redirect"); ?></td> <td><a id="help_for_disablehttpredirect" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("WebGUI redirect"); ?></td>
<td width="78%"> <td width="78%">
<input name="disablehttpredirect" type="checkbox" value="yes" <?=!empty($pconfig['disablehttpredirect']) ? "checked=\"checked\"" : "";?> /> <input name="disablehttpredirect" type="checkbox" value="yes" <?= empty($pconfig['disablehttpredirect']) ? '' : 'checked="checked"';?> />
<strong><?=gettext("Disable webConfigurator redirect rule"); ?></strong> <strong><?=gettext("Disable webConfigurator redirect rule"); ?></strong>
<div class="hidden" for="help_for_disablehttpredirect"> <div class="hidden" for="help_for_disablehttpredirect">
<?= gettext("When this is unchecked, access to the webConfigurator " . <?= gettext("When this is unchecked, access to the webConfigurator " .
"is always permitted even on port 80, regardless of the listening port configured. " . "is always permitted even on port 80, regardless of the listening port configured. " .
"Check this box to disable this automatically added redirect rule. "); "Check this box to disable this automatically added redirect rule.");
?> ?>
</div> </div>
</td> </td>
...@@ -385,19 +383,19 @@ include("head.inc"); ...@@ -385,19 +383,19 @@ include("head.inc");
<tr> <tr>
<td><a id="help_for_loginautocomplete" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("WebGUI Login Autocomplete"); ?></td> <td><a id="help_for_loginautocomplete" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("WebGUI Login Autocomplete"); ?></td>
<td> <td>
<input name="loginautocomplete" type="checkbox" value="yes" <?= !empty($pconfig['loginautocomplete']) ? "checked=\"checked\"" : "";?> /> <input name="loginautocomplete" type="checkbox" value="yes" <?= empty($pconfig['loginautocomplete']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Enable webConfigurator login autocomplete"); ?></strong> <strong><?=gettext("Enable webConfigurator login autocomplete"); ?></strong>
<div class="hidden" for="help_for_loginautocomplete"> <div class="hidden" for="help_for_loginautocomplete">
<?= gettext("When this is checked, login credentials for the webConfigurator " . <?= gettext("When this is checked, login credentials for the webConfigurator " .
"may be saved by the browser. While convenient, some security standards require this to be disabled. " . "may be saved by the browser. While convenient, some security standards require this to be disabled. " .
"Check this box to enable autocomplete on the login form so that browsers will prompt to save credentials (NOTE: Some browsers do not respect this option). ");?> "Check this box to enable autocomplete on the login form so that browsers will prompt to save credentials (NOTE: Some browsers do not respect this option).");?>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a id="help_for_quietlogin" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("WebGUI login messages"); ?></td> <td><a id="help_for_quietlogin" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("WebGUI login messages") ?></td>
<td> <td>
<input name="quietlogin" type="checkbox" value="yes" <?=!empty($pconfig['quietlogin']) ? "checked=\"checked\"" : ""; ?>/> <input name="quietlogin" type="checkbox" value="yes" <?= empty($pconfig['quietlogin']) ? '' : 'checked="checked"' ?>/>
<strong><?=gettext("Disable logging of webConfigurator successful logins"); ?></strong> <strong><?=gettext("Disable logging of webConfigurator successful logins"); ?></strong>
<div class="hidden" for="help_for_quietlogin"> <div class="hidden" for="help_for_quietlogin">
<?=gettext("When this is checked, successful logins to the webConfigurator " . <?=gettext("When this is checked, successful logins to the webConfigurator " .
...@@ -408,7 +406,7 @@ include("head.inc"); ...@@ -408,7 +406,7 @@ include("head.inc");
<tr> <tr>
<td><a id="help_for_noantilockout" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Anti-lockout"); ?></td> <td><a id="help_for_noantilockout" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Anti-lockout"); ?></td>
<td> <td>
<input name="noantilockout" type="checkbox" value="yes" <?=!empty($pconfig['noantilockout'])? "checked=\"checked\"" : "";?>/> <input name="noantilockout" type="checkbox" value="yes" <?= empty($pconfig['noantilockout']) ? '' : 'checked="checked"' ?>/>
<strong><?=gettext("Disable webConfigurator anti-lockout rule"); ?></strong> <strong><?=gettext("Disable webConfigurator anti-lockout rule"); ?></strong>
<div class="hidden" for="help_for_noantilockout"> <div class="hidden" for="help_for_noantilockout">
<?php printf(gettext("When this is unchecked, access to the webConfigurator " . <?php printf(gettext("When this is unchecked, access to the webConfigurator " .
...@@ -416,39 +414,38 @@ include("head.inc"); ...@@ -416,39 +414,38 @@ include("head.inc");
"rule set. Check this box to disable this automatically added rule, so access " . "rule set. Check this box to disable this automatically added rule, so access " .
"to the webConfigurator is controlled by the user-defined firewall rules " . "to the webConfigurator is controlled by the user-defined firewall rules " .
"(ensure you have a firewall rule in place that allows you in, or you will " . "(ensure you have a firewall rule in place that allows you in, or you will " .
"lock yourself out!)"), (!empty($config['interfaces']['lan']) ? "LAN" : "WAN")); ?> "lock yourself out!)"), (empty($config['interfaces']['lan']) ? gettext("WAN") : gettext("LAN"))); ?>
<em> <?=gettext("Hint: the &quot;Set interface(s) IP address&quot; option in the console menu resets this setting as well."); ?> </em> <em> <?= gettext('Hint: the "Set interface(s) IP address" option in the console menu resets this setting as well.'); ?> </em>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a id="help_for_nodnsrebindcheck" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DNS Rebind Check"); ?></td> <td><a id="help_for_nodnsrebindcheck" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DNS Rebind Check"); ?></td>
<td> <td>
<input name="nodnsrebindcheck" type="checkbox" value="yes" <?=!empty($pconfig['nodnsrebindcheck']) ? "checked=\"checked\"" : "";?>/> <input name="nodnsrebindcheck" type="checkbox" value="yes" <?= empty($pconfig['nodnsrebindcheck']) ? '' : 'checked="checked"';?>/>
<strong><?=gettext("Disable DNS Rebinding Checks"); ?></strong> <strong><?=gettext("Disable DNS Rebinding Checks"); ?></strong>
<div class="hidden" for="help_for_nodnsrebindcheck"> <div class="hidden" for="help_for_nodnsrebindcheck">
<?= gettext("When this is unchecked, your system " . <?= sprintf(gettext("When this is unchecked, your system is protected against %sDNS Rebinding attacks%s. " .
"is protected against <a href=\"http://en.wikipedia.org/wiki/DNS_rebinding\">DNS Rebinding attacks</a>. " .
"This blocks private IP responses from your configured DNS servers. Check this box to disable this protection if it interferes with " . "This blocks private IP responses from your configured DNS servers. Check this box to disable this protection if it interferes with " .
"webConfigurator access or name resolution in your environment. "); ?> "webConfigurator access or name resolution in your environment."),'<a href="http://en.wikipedia.org/wiki/DNS_rebinding">','</a>') ?>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a id="help_for_althostnames" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Alternate Hostnames"); ?></td> <td><a id="help_for_althostnames" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Alternate Hostnames") ?></td>
<td> <td>
<input name="althostnames" type="text" value="<?=$pconfig['althostnames'];?>"/> <input name="althostnames" type="text" value="<?= $pconfig['althostnames'] ?>"/>
<strong><?=gettext("Alternate Hostnames for DNS Rebinding and HTTP_REFERER Checks"); ?></strong> <strong><?=gettext("Alternate Hostnames for DNS Rebinding and HTTP_REFERER Checks"); ?></strong>
<div class="hidden" for="help_for_althostnames"> <div class="hidden" for="help_for_althostnames">
<?=gettext("Here you can specify alternate hostnames by which the router may be queried, to " . <?= gettext("Here you can specify alternate hostnames by which the router may be queried, to " .
"bypass the DNS Rebinding Attack checks. Separate hostnames with spaces."); ?> "bypass the DNS Rebinding Attack checks. Separate hostnames with spaces.") ?>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a id="help_for_nohttpreferercheck" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("HTTP_REFERER enforcement"); ?></td> <td><a id="help_for_nohttpreferercheck" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("HTTP_REFERER enforcement"); ?></td>
<td> <td>
<input name="nohttpreferercheck" type="checkbox" value="yes" <?= !empty($pconfig['nohttpreferercheck']) ? "checked=\"checked\"" : "";?> /> <input name="nohttpreferercheck" type="checkbox" value="yes" <?= empty($pconfig['nohttpreferercheck']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Disable HTTP_REFERER enforcement check"); ?></strong> <strong><?=gettext("Disable HTTP_REFERER enforcement check"); ?></strong>
<div class="hidden" for="help_for_nohttpreferercheck"> <div class="hidden" for="help_for_nohttpreferercheck">
<?=sprintf(gettext("When this is unchecked, access to the webConfigurator " . <?=sprintf(gettext("When this is unchecked, access to the webConfigurator " .
...@@ -465,14 +462,14 @@ include("head.inc"); ...@@ -465,14 +462,14 @@ include("head.inc");
<tr> <tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Secure Shell Server"); ?></td> <td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Secure Shell Server"); ?></td>
<td> <td>
<input name="enablesshd" type="checkbox" value="yes" <?=!empty($pconfig['enablesshd']) ? "checked=\"checked\"" : "";?> /> <input name="enablesshd" type="checkbox" value="yes" <?= empty($pconfig['enablesshd']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Enable Secure Shell"); ?></strong> <strong><?=gettext("Enable Secure Shell"); ?></strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a id="help_for_sshdpermitrootlogin" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Root Login"); ?></td> <td><a id="help_for_sshdpermitrootlogin" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Root Login") ?></td>
<td> <td>
<input name="sshdpermitrootlogin" type="checkbox" value="yes" <?=!empty($pconfig['sshdpermitrootlogin']) ? "checked=\"checked\"" : "";?> /> <input name="sshdpermitrootlogin" type="checkbox" value="yes" <?= empty($pconfig['sshdpermitrootlogin']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Permit root user login"); ?></strong> <strong><?=gettext("Permit root user login"); ?></strong>
<div class="hidden" for="help_for_sshdpermitrootlogin"> <div class="hidden" for="help_for_sshdpermitrootlogin">
<?= gettext( <?= gettext(
...@@ -483,14 +480,13 @@ include("head.inc"); ...@@ -483,14 +480,13 @@ include("head.inc");
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a id="help_for_passwordauth" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Authentication Method"); ?></td> <td><a id="help_for_passwordauth" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Authentication Method") ?></td>
<td> <td>
<input name="passwordauth" type="checkbox" value="yes" <?=!empty($pconfig['passwordauth']) ? "checked=\"checked\"" : "";?> /> <input name="passwordauth" type="checkbox" value="yes" <?= empty($pconfig['passwordauth']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Permit password login"); ?></strong> <strong><?=gettext("Permit password login"); ?></strong>
<div class="hidden" for="help_for_passwordauth"> <div class="hidden" for="help_for_passwordauth">
<?=gettext("When disabled, authorized keys need to be configured for each"); ?> <?=sprintf(gettext("When disabled, authorized keys need to be configured for each %sUser%s that has been granted secure shell access."),
<a href="system_usermanager.php"><?=gettext("user"); ?></a> '<a href="system_usermanager.php">', '</a>') ?>
<?=gettext("that has been granted secure shell access."); ?>
</div> </div>
</td> </td>
</tr> </tr>
...@@ -520,12 +516,12 @@ include("head.inc"); ...@@ -520,12 +516,12 @@ include("head.inc");
<td><a id="help_for_serialspeed" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Serial Speed")?></td> <td><a id="help_for_serialspeed" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Serial Speed")?></td>
<td> <td>
<select name="serialspeed" id="serialspeed" class="formselect selectpicker"> <select name="serialspeed" id="serialspeed" class="formselect selectpicker">
<option value="115200" <?=$pconfig['serialspeed'] == "115200" ? "selected=\"selected\"" : "";?>>115200</option> <option value="115200" <?=$pconfig['serialspeed'] == "115200" ? 'selected="selected"' : '' ?>>115200</option>
<option value="57600" <?=$pconfig['serialspeed'] == "57600" ? "selected=\"selected\"" : "";?>>57600</option> <option value="57600" <?=$pconfig['serialspeed'] == "57600" ? 'selected="selected"' : '' ?>>57600</option>
<option value="38400" <?=$pconfig['serialspeed'] == "38400" ? "selected=\"selected\"" : "";?>>38400</option> <option value="38400" <?=$pconfig['serialspeed'] == "38400" ? 'selected="selected"' : '' ?>>38400</option>
<option value="19200" <?=$pconfig['serialspeed'] == "19200" ? "selected=\"selected\"" : "";?>>19200</option> <option value="19200" <?=$pconfig['serialspeed'] == "19200" ? 'selected="selected"' : '' ?>>19200</option>
<option value="14400" <?=$pconfig['serialspeed'] == "14400" ? "selected=\"selected\"" : "";?>>14400</option> <option value="14400" <?=$pconfig['serialspeed'] == "14400" ? 'selected="selected"' : '' ?>>14400</option>
<option value="9600" <?=$pconfig['serialspeed'] == "9600" ? "selected=\"selected\"" : "";?>>9600</option> <option value="9600" <?=$pconfig['serialspeed'] == "9600" ? 'selected="selected"' : '' ?>>9600</option>
</select> <?=gettext("bps");?> </select> <?=gettext("bps");?>
<div class="hidden" for="help_for_serialspeed"> <div class="hidden" for="help_for_serialspeed">
<?=gettext("Allows selection of different speeds for the serial console port."); ?> <?=gettext("Allows selection of different speeds for the serial console port."); ?>
...@@ -536,10 +532,10 @@ include("head.inc"); ...@@ -536,10 +532,10 @@ include("head.inc");
<td><a id="help_for_primaryconsole" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Primary Console")?></td> <td><a id="help_for_primaryconsole" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Primary Console")?></td>
<td width="78%"> <td width="78%">
<select name="primaryconsole" id="primaryconsole" class="formselect selectpicker"> <select name="primaryconsole" id="primaryconsole" class="formselect selectpicker">
<option value="serial" <?=$pconfig['primaryconsole'] == "serial" ? "selected=\"selected\"" : "";?>> <option value="serial" <?=$pconfig['primaryconsole'] == "serial" ? 'selected="selected"' : '';?>>
<?=gettext("Serial Console");?> <?=gettext("Serial Console");?>
</option> </option>
<option value="video" <?=$pconfig['primaryconsole'] == "video" ? "selected=\"selected\"" : "";?>> <option value="video" <?=$pconfig['primaryconsole'] == "video" ? 'selected="selected"' : '';?>>
<?=gettext("VGA Console");?> <?=gettext("VGA Console");?>
</option> </option>
</select> </select>
...@@ -552,9 +548,9 @@ include("head.inc"); ...@@ -552,9 +548,9 @@ include("head.inc");
<th colspan="2"><?=gettext("Console Options"); ?></th> <th colspan="2"><?=gettext("Console Options"); ?></th>
</tr> </tr>
<tr> <tr>
<td><a id="help_for_disableconsolemenu" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Console menu"); ?></td> <td><a id="help_for_disableconsolemenu" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?= gettext("Console menu") ?></td>
<td width="78%"> <td width="78%">
<input name="disableconsolemenu" type="checkbox" value="yes" <?= !empty($pconfig['disableconsolemenu']) ? "checked=\"checked\"" :"";?> /> <input name="disableconsolemenu" type="checkbox" value="yes" <?= empty($pconfig['disableconsolemenu']) ? '' : 'checked="checked"' ?> />
<strong><?=gettext("Password protect the console menu"); ?></strong> <strong><?=gettext("Password protect the console menu"); ?></strong>
<div class="hidden" for="help_for_disableconsolemenu"> <div class="hidden" for="help_for_disableconsolemenu">
<?=gettext("Changes to this option will take effect after a reboot."); ?> <?=gettext("Changes to this option will take effect after a reboot."); ?>
...@@ -563,7 +559,7 @@ include("head.inc"); ...@@ -563,7 +559,7 @@ include("head.inc");
</tr> </tr>
<tr> <tr>
<td width="22%" valign="top">&nbsp;</td> <td width="22%" valign="top">&nbsp;</td>
<td width="78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" /></td> <td width="78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?= gettext("Save") ?>" /></td>
</tr> </tr>
</table> </table>
</form> </form>
......
...@@ -319,7 +319,7 @@ include("head.inc"); ...@@ -319,7 +319,7 @@ include("head.inc");
BootstrapDialog.show({ BootstrapDialog.show({
type:BootstrapDialog.TYPE_DANGER, type:BootstrapDialog.TYPE_DANGER,
title: "<?=gettext("Certificates");?>", title: "<?=gettext("Certificates");?>",
message: "<?=gettext("Delete this certificate from the CRL ");?>", message: "<?=gettext("Delete this certificate from the CRL?");?>",
buttons: [{ buttons: [{
label: "<?=gettext("No");?>", label: "<?=gettext("No");?>",
action: function(dialogRef) { action: function(dialogRef) {
...@@ -534,7 +534,7 @@ include("head.inc"); ...@@ -534,7 +534,7 @@ include("head.inc");
<td><?=$openssl_crl_status[$cert["reason"]]; ?></td> <td><?=$openssl_crl_status[$cert["reason"]]; ?></td>
<td><?=date("D M j G:i:s T Y", $cert["revoke_time"]); ?></td> <td><?=date("D M j G:i:s T Y", $cert["revoke_time"]); ?></td>
<td> <td>
<a id="del_cert_<?=$thiscrl['refid'];?>" data-id="<?=$thiscrl['refid'];?>" data-certref="<?=$cert['refid'];?>" title="<?=gettext("Delete this certificate from the CRL ");?>" data-toggle="tooltip" class="act_delete_cert btn btn-default btn-xs"> <a id="del_cert_<?=$thiscrl['refid'];?>" data-id="<?=$thiscrl['refid'];?>" data-certref="<?=$cert['refid'];?>" title="<?=gettext("Delete this certificate from the CRL");?>" data-toggle="tooltip" class="act_delete_cert btn btn-default btn-xs">
<span class="fa fa-trash text-muted"></span> <span class="fa fa-trash text-muted"></span>
</a> </a>
</td> </td>
......
...@@ -168,9 +168,9 @@ $( document ).ready(function() { ...@@ -168,9 +168,9 @@ $( document ).ready(function() {
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<td><?=gettext("Group Name");?></td> <td><?= gettext("Group Name") ?></td>
<td class="hidden-xs"><?=gettext("Gateways");?></td> <td class="hidden-xs"><?= gettext("Gateways") ?></td>
<td class="hidden-xs"><?=gettext("Priority");?></td> <td class="hidden-xs"><?= gettext("Priority") ?></td>
<td><?=gettext("Description");?></td> <td><?=gettext("Description");?></td>
<td></td> <td></td>
</tr> </tr>
...@@ -192,21 +192,21 @@ $( document ).ready(function() { ...@@ -192,21 +192,21 @@ $( document ).ready(function() {
<td class="hidden-xs"> <td class="hidden-xs">
<?php <?php
foreach ($gateway_group['item'] as $item):?> foreach ($gateway_group['item'] as $item):?>
<?=gettext('Tier ');?><?=explode("|", $item)[1];?> <br/> <?= sprintf(gettext('Tier %s'),explode("|", $item)[1]) ?> <br/>
<?php <?php
endforeach;?> endforeach;?>
</td> </td>
<td><?=$gateway_group['descr'];?></td> <td><?=$gateway_group['descr'];?></td>
<td> <td>
<a href="system_gateway_groups_edit.php?id=<?=$i;?>" class="btn btn-default btn-xs" <a href="system_gateway_groups_edit.php?id=<?= $i ?>" class="btn btn-default btn-xs"
title="edit group" data-toggle="tooltip"> title="edit group" data-toggle="tooltip">
<span class="glyphicon glyphicon-pencil"></span> <span class="glyphicon glyphicon-pencil"></span>
</a> </a>
<button type="button" class="btn btn-default btn-xs act-del-group" <button type="button" class="btn btn-default btn-xs act-del-group"
data-id="<?=$i?>" title="<?=gettext("delete group");?>" data-toggle="tooltip"> data-id="<?= $i ?>" title="<?= gettext("delete group") ?>" data-toggle="tooltip">
<span class="fa fa-trash text-muted"></span> <span class="fa fa-trash text-muted"></span>
</button> </button>
<a href="system_gateway_groups_edit.php?dup=<?=$i;?>" class="btn btn-default btn-xs" <a href="system_gateway_groups_edit.php?dup=<?= $i ?>" class="btn btn-default btn-xs"
title="clone group" data-toggle="tooltip"> title="clone group" data-toggle="tooltip">
<span class="fa fa-clone text-muted"></span> <span class="fa fa-clone text-muted"></span>
</a> </a>
...@@ -216,7 +216,7 @@ $( document ).ready(function() { ...@@ -216,7 +216,7 @@ $( document ).ready(function() {
endforeach; ?> endforeach; ?>
<tr class="hidden-xs"> <tr class="hidden-xs">
<td colspan="5"> <td colspan="5">
<?=gettext("Remember to use these Gateway Groups in firewall rules in order to enable load balancing, failover, or policy-based routing. Without rules directing traffic into the Gateway Groups, they will not be used.");?> <?= gettext("Remember to use these Gateway Groups in firewall rules in order to enable load balancing, failover, or policy-based routing. Without rules directing traffic into the Gateway Groups, they will not be used.") ?>
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -228,7 +228,7 @@ endforeach; ?> ...@@ -228,7 +228,7 @@ endforeach; ?>
?>" <?= !empty($pconfig['maxmss_enable']) ? "disabled=\"disabled\"" : "" ;?> /> ?>" <?= !empty($pconfig['maxmss_enable']) ? "disabled=\"disabled\"" : "" ;?> />
<div class="hidden" for="help_for_maxmss_enable"> <div class="hidden" for="help_for_maxmss_enable">
<?=gettext("Enable MSS clamping on TCP flows over VPN. " . <?=gettext("Enable MSS clamping on TCP flows over VPN. " .
"This helps overcome problems with PMTUD on IPsec VPN links. If left blank, the default value is 1400 bytes. "); ?> "This helps overcome problems with PMTUD on IPsec VPN links. If left blank, the default value is 1400 bytes."); ?>
</div> </div>
</td> </td>
</tr> </tr>
......
...@@ -47,7 +47,7 @@ if (isset($_REQUEST['getupdatestatus'])) { ...@@ -47,7 +47,7 @@ if (isset($_REQUEST['getupdatestatus'])) {
} elseif ($pkg_status["updates"]=="0") { } elseif ($pkg_status["updates"]=="0") {
echo "<span class='text-info'>".gettext("Your system is up to date.")."</span><br/><span class='btn-link' onclick='checkupdate()'>".gettext('Click to check for updates')."</span>"; echo "<span class='text-info'>".gettext("Your system is up to date.")."</span><br/><span class='btn-link' onclick='checkupdate()'>".gettext('Click to check for updates')."</span>";
} else { } else {
echo "<span class='text-info'>".gettext("There are ").$pkg_status["updates"].gettext(" update(s) available.")."</span><br/><a href='/ui/core/firmware/#checkupdate'>".gettext("Click to upgrade")."</a> | <span class='btn-link' onclick='checkupdate()'>".gettext('Re-check now')."</span>"; echo "<span class='text-info'>".sprintf(gettext("There are %s update(s) available."),$pkg_status["updates"])."</span><br/><a href='/ui/core/firmware/#checkupdate'>".gettext("Click to upgrade")."</a> | <span class='btn-link' onclick='checkupdate()'>".gettext('Re-check now')."</span>";
} }
exit; exit;
......
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