summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-05-15 14:34:57 +0930
committerStephen Beaver <sbeaver@netgate.com>2016-05-16 07:39:16 -0400
commit170fbb18b7bb89eb258cf8ee54c38f9b8125cf09 (patch)
treec27a34a940f6558bb0ea2bd75b534b8583be4699
parent8c95f1fe56a98ca6d53fd66277f3987b2293fb82 (diff)
downloadpfsense-170fbb18b7bb89eb258cf8ee54c38f9b8125cf09.zip
pfsense-170fbb18b7bb89eb258cf8ee54c38f9b8125cf09.tar.gz
Customize limiter info message
The $dn_default_shaper_msg is what is displayed on the Limiters tab. It needs to talk about "limiter" rather than "queue". This code builds up each message using the same base template sentences, inserting "queue" or "limiter" in the appropriate place. (cherry picked from commit aadc135856a0dc2cb131aeda3fd7bc44c11ab123)
-rw-r--r--src/etc/inc/shaper.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/etc/inc/shaper.inc b/src/etc/inc/shaper.inc
index b6cffe3..317b6ac 100644
--- a/src/etc/inc/shaper.inc
+++ b/src/etc/inc/shaper.inc
@@ -4667,9 +4667,14 @@ function build_iface_without_this_queue($iface, $qname) {
}
$default_shaper_msg = sprintf(gettext("Welcome to the %s Traffic Shaper."), $g['product_name']) . "<br />";
-$default_shaper_msg .= gettext("The tree on the left navigates through the queues.<br />"
- . "Buttons at the bottom represent queue actions and are activated accordingly.");
-
$dn_default_shaper_msg = $default_shaper_msg;
+$shaper_msg = gettext("The tree on the left navigates through the %s.");
+$default_shaper_msg .= sprintf($shaper_msg, gettext("queues")) . "<br />";
+$dn_default_shaper_msg .= sprintf($shaper_msg, gettext("limiters")) . "<br />";
+
+$shaper_msg = gettext("Buttons at the bottom represent %s actions and are activated accordingly.");
+$default_shaper_msg .= sprintf($shaper_msg, gettext("queue"));
+$dn_default_shaper_msg .= sprintf($shaper_msg, gettext("limiter"));
+
?>
OpenPOWER on IntegriCloud