diff --git a/src/www/system_advanced_admin.php b/src/www/system_advanced_admin.php
index 10383329878..6d7f6bf75e5 100644
--- a/src/www/system_advanced_admin.php
+++ b/src/www/system_advanced_admin.php
@@ -323,18 +323,16 @@ function prot_change() {
=gettext("Protocol"); ?>
- onclick="prot_change()" />
+ onclick="prot_change()" />
=gettext("HTTP"); ?>
- =!$certs_available ? "disabled=\"disabled\"": "";?> onclick="prot_change()" />
+ =$certs_available ? '' : 'disabled="disabled"' ?> onclick="prot_change()" />
=gettext("HTTPS"); ?>
- =gettext("No Certificates have been defined. You must"); ?>
- =gettext("Create or Import"); ?>
- =gettext("a Certificate before SSL can be enabled."); ?>
+ = sprintf(gettext("No Certificates have been defined. You must %sCreate or Import%s a Certificate before SSL can be enabled."),'','') ?>
= gettext("When this is unchecked, access to the webConfigurator " .
"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.");
?>
= 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. " .
- "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).");?>
- =gettext("Hint: the "Set interface(s) IP address" option in the console menu resets this setting as well."); ?>
+ "lock yourself out!)"), (empty($config['interfaces']['lan']) ? gettext("WAN") : gettext("LAN"))); ?>
+ = gettext('Hint: the "Set interface(s) IP address" option in the console menu resets this setting as well.'); ?>
=gettext("DNS Rebind Check"); ?>
- />
+ />
=gettext("Disable DNS Rebinding Checks"); ?>
- = gettext("When this is unchecked, your system " .
- "is protected against DNS Rebinding attacks. " .
+ = sprintf(gettext("When this is unchecked, your system is protected against %sDNS Rebinding attacks%s. " .
"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."),'','') ?>
-
=gettext("Alternate Hostnames"); ?>
+
= gettext("Alternate Hostnames") ?>
-
+
=gettext("Alternate Hostnames for DNS Rebinding and HTTP_REFERER Checks"); ?>
- =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."); ?>
+ = 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.") ?>
=sprintf(gettext("When this is unchecked, access to the webConfigurator " .
@@ -467,14 +464,14 @@ function prot_change() {
=gettext("Secure Shell Server"); ?>
- />
+ />
=gettext("Enable Secure Shell"); ?>
-
=gettext("Root Login"); ?>
+
= gettext("Root Login") ?>
- />
+ />
=gettext("Permit root user login"); ?>
= gettext(
@@ -485,14 +482,13 @@ function prot_change() {
-
=gettext("Authentication Method"); ?>
+
= gettext("Authentication Method") ?>
- />
+ />
=gettext("Permit password login"); ?>
- =gettext("When disabled, authorized keys need to be configured for each"); ?>
- =gettext("user"); ?>
- =gettext("that has been granted secure shell access."); ?>
+ =sprintf(gettext("When disabled, authorized keys need to be configured for each %sUser%s that has been granted secure shell access."),
+ '', '') ?>
@@ -522,12 +518,12 @@ function prot_change() {
=gettext("Serial Speed")?>
=gettext("bps");?>
=gettext("Allows selection of different speeds for the serial console port."); ?>
@@ -538,10 +534,10 @@ function prot_change() {
=gettext("Primary Console")?>
@@ -554,9 +550,9 @@ function prot_change() {
=gettext("Console Options"); ?>
-
=gettext("Console menu"); ?>
+
= gettext("Console menu") ?>
- />
+ />
=gettext("Password protect the console menu"); ?>
=gettext("Changes to this option will take effect after a reboot."); ?>
@@ -565,7 +561,7 @@ function prot_change() {
-
" />
+
" />
diff --git a/src/www/system_crlmanager.php b/src/www/system_crlmanager.php
index 1311c27c8fb..5eb8e6f54e1 100644
--- a/src/www/system_crlmanager.php
+++ b/src/www/system_crlmanager.php
@@ -319,7 +319,7 @@ function cert_unrevoke($cert, & $crl) {
BootstrapDialog.show({
type:BootstrapDialog.TYPE_DANGER,
title: "=gettext("Certificates");?>",
- message: "=gettext("Delete this certificate from the CRL ");?>",
+ message: "=gettext("Delete this certificate from the CRL?");?>",
buttons: [{
label: "=gettext("No");?>",
action: function(dialogRef) {
@@ -534,7 +534,7 @@ function cert_unrevoke($cert, & $crl) {
=$openssl_crl_status[$cert["reason"]]; ?>
=date("D M j G:i:s T Y", $cert["revoke_time"]); ?>
- =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.") ?>
=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."); ?>
diff --git a/src/www/widgets/widgets/system_information.widget.php b/src/www/widgets/widgets/system_information.widget.php
index 9e6b95c037f..e94f36189e0 100644
--- a/src/www/widgets/widgets/system_information.widget.php
+++ b/src/www/widgets/widgets/system_information.widget.php
@@ -57,7 +57,7 @@
} elseif ($pkg_status["updates"]=="0") {
echo "".gettext("Your system is up to date.")." ".gettext('Click to check for updates')."";
} else {
- echo "".gettext("There are ").$pkg_status["updates"].gettext(" update(s) available.")." ".gettext("Click to upgrade")." | ".gettext('Re-check now')."";
+ echo "".sprintf(gettext("There are %s update(s) available."),$pkg_status["updates"])." ".gettext("Click to upgrade")." | ".gettext('Re-check now')."";
}
exit;