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'; /> @@ -182,13 +182,13 @@ include 'head.inc'; 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() { @@ -754,7 +754,7 @@ $( document ).ready(function() { @@ -763,7 +763,7 @@ $( document ).ready(function() { @@ -773,7 +773,7 @@ $( document ).ready(function() { @@ -784,7 +784,7 @@ $( document ).ready(function() { onclick="calculated_change()" /> @@ -796,7 +796,7 @@ $( document ).ready(function() { @@ -808,7 +808,7 @@ $( document ).ready(function() {