diff --git a/src/etc/inc/notices.inc b/src/etc/inc/notices.inc
index 7b8cdb09f..53db78be8 100644
--- a/src/etc/inc/notices.inc
+++ b/src/etc/inc/notices.inc
@@ -328,7 +328,7 @@ function notify_via_growl($message, $force=false) {
$growl_notification = $config['notifications']['growl']['notification_name'];
$growl = new Growl($growl_ip, $growl_password, $growl_name);
- $growl->notify("{$growl_notification}", gettext(sprintf("%s (%s) - Notification", $g['product_name'], $hostname)), "{$message}");
+ $growl->notify("{$growl_notification}", sprintf(gettext('%s (%s) - Notification'), $g['product_name'], $hostname), "{$message}");
}
/* Store last message sent to avoid spamming */
diff --git a/src/www/services_opendns.php b/src/www/services_opendns.php
index 028dca1d8..676be40b0 100644
--- a/src/www/services_opendns.php
+++ b/src/www/services_opendns.php
@@ -149,12 +149,12 @@ include 'head.inc';
/>
=gettext('Filter DNS requests using OpenDNS'); ?>
- =gettext(sprintf(
+ = sprintf(gettext(
'Enabling the OpenDNS service will overwrite DNS servers configured ' .
'via the General Setup page as well as ignore any DNS servers learned ' .
- 'by DHCP/PPP on WAN and use the DNS servers from %s instead.',
+ 'by DHCP/PPP on WAN and use the DNS servers from %s instead.'),
'OpenDNS.com'
- )); ?>
+ ) ?>
@@ -182,13 +182,13 @@ include 'head.inc';
- =gettext(sprintf(
- 'Enter the network name configured on the %s under ' .
- '\'Manage your networks\'. Used to update the node\'s ' .
- 'IP address whenever the WAN interface changes its IP address.',
- '' .
- gettext('Networks Dashboard of OpenDNS') .''
- )); ?>
+ = sprintf(gettext(
+ 'Enter the network name configured on the %sNetworks ' .
+ 'Dashboard of OpenDNS%s under \'Manage your networks\'. ' .
+ 'Used to update the node\'s IP address whenever the ' .
+ 'WAN interface changes its IP address.'),
+ '', ''
+ ) ?>
diff --git a/src/www/system_gateways_edit.php b/src/www/system_gateways_edit.php
index 9adb3cd82..dd30db26f 100644
--- a/src/www/system_gateways_edit.php
+++ b/src/www/system_gateways_edit.php
@@ -239,11 +239,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
} elseif (!empty($pconfig['latencylow'])) {
if (is_numeric($pconfig['latencylow']) && $pconfig['latencylow'] > $apinger_default['latencyhigh']) {
- $input_errors[] = gettext(sprintf("The low latency threshold needs to be less than the default high latency threshold (%d)", $apinger_default['latencyhigh']));
+ $input_errors[] = sprintf(gettext('The low latency threshold needs to be less than the default high latency threshold (%d)'), $apinger_default['latencyhigh']);
}
} elseif (!empty($pconfig['latencyhigh'])) {
if (is_numeric($_POST['latencyhigh']) && $_POST['latencyhigh'] < $apinger_default['latencylow']) {
- $input_errors[] = gettext(sprintf("The high latency threshold needs to be higher than the default low latency threshold (%d)", $apinger_default['latencylow']));
+ $input_errors[] = sprintf(gettext('The high latency threshold needs to be higher than the default low latency threshold (%d)'), $apinger_default['latencylow']);
}
}
@@ -253,11 +253,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
} elseif (!empty($pconfig['losslow'])) {
if (is_numeric($pconfig['losslow']) && $pconfig['losslow'] > $apinger_default['losshigh']) {
- $input_errors[] = gettext(sprintf("The low Packet Loss threshold needs to be less than the default high Packet Loss threshold (%d)", $apinger_default['losshigh']));
+ $input_errors[] = sprintf(gettext('The low Packet Loss threshold needs to be less than the default high Packet Loss threshold (%d)'), $apinger_default['losshigh']);
}
} elseif (!empty($pconfig['losshigh'])) {
if (is_numeric($pconfig['losshigh']) && $pconfig['losshigh'] < $apinger_default['losslow']) {
- $input_errors[] = gettext(sprintf("The high Packet Loss threshold needs to be higher than the default low Packet Loss threshold (%d)", $apinger_default['losslow']));
+ $input_errors[] = sprintf(gettext('The high Packet Loss threshold needs to be higher than the default low Packet Loss threshold (%d)'), $apinger_default['losslow']);
}
}
@@ -283,11 +283,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
} elseif (!empty($pconfig['interval'])) {
if (is_numeric($pconfig['interval']) && $pconfig['interval'] > $apinger_default['down']) {
- $input_errors[] = gettext(sprintf("The probe interval needs to be less than the default down time setting (%d)", $apinger_default['down']));
+ $input_errors[] = sprintf(gettext('The probe interval needs to be less than the default down time setting (%d)'), $apinger_default['down']);
}
} elseif (!empty($pconfig['down'])) {
if (is_numeric($pconfig['down']) && $pconfig['down'] < $apinger_default['interval']) {
- $input_errors[] = gettext(sprintf("The down time setting needs to be higher than the default probe interval (%d)", $apinger_default['interval']));
+ $input_errors[] = sprintf(gettext('The down time setting needs to be higher than the default probe interval (%d)'), $apinger_default['interval']);
}
}
@@ -728,7 +728,7 @@ $( document ).ready(function() {
- =gettext(sprintf("Low and high thresholds for latency in milliseconds. Default is %d/%d.", $apinger_default['latencylow'], $apinger_default['latencyhigh']));?>
+ = sprintf(gettext('Low and high thresholds for latency in milliseconds. Default is %d/%d.'), $apinger_default['latencylow'], $apinger_default['latencyhigh']) ?>
- =gettext(sprintf("Low and high thresholds for packet loss in %%. Default is %d/%d.", $apinger_default['losslow'], $apinger_default['losshigh']));?>
+ = sprintf(gettext('Low and high thresholds for packet loss in %%. Default is %d/%d.'), $apinger_default['losslow'], $apinger_default['losshigh']) ?>
- =gettext(sprintf("How often that an ICMP probe will be sent in seconds. Default is %d.", $apinger_default['interval']));?>
+ = sprintf(gettext('How often that an ICMP probe will be sent in seconds. Default is %d.'), $apinger_default['interval']) ?>
=gettext("NOTE: The quality graph is averaged over seconds, not intervals, so as the probe interval is increased the accuracy of the quality graph is decreased.");?>
- =gettext(sprintf("The number of seconds of failed probes before the alarm will fire. Default is %d.", $apinger_default['down']));?>
+ = sprintf(gettext('The number of seconds of failed probes before the alarm will fire. Default is %d.'), $apinger_default['down']) ?>
- =gettext(sprintf("How many replies should be used to compute average delay for controlling \"delay\" alarms? Default is %d.", $apinger_default['avg_delay_samples']));?>
+ = sprintf(gettext('How many replies should be used to compute average delay for controlling "delay" alarms? Default is %d.'), $apinger_default['avg_delay_samples']) ?>
- =gettext(sprintf("How many probes should be used to compute average packet loss? Default is %d.", $apinger_default['avg_loss_samples']));?>
+ = sprintf(gettext('How many probes should be used to compute average packet loss? Default is %d.'), $apinger_default['avg_loss_samples']) ?>
- =gettext(sprintf("The delay (in qty of probe samples) after which loss is computed. Without this, delays longer than the probe interval would be treated as packet loss. Default is %d.", $apinger_default['avg_loss_delay_samples']));?>
+ = sprintf(gettext('The delay (in qty of probe samples) after which loss is computed. Without this, delays longer than the probe interval would be treated as packet loss. Default is %d.'), $apinger_default['avg_loss_delay_samples']) ?>