summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-05-15 14:34:57 +0930
committerPhil Davis <phil.davis@inf.org>2016-05-15 14:34:57 +0930
commitaadc135856a0dc2cb131aeda3fd7bc44c11ab123 (patch)
tree10bb0a169f5a729ae887496b0462c57d35991a13
parentc7759e4efae8b60311204a2957a7177aaa07f771 (diff)
downloadpfsense-aadc135856a0dc2cb131aeda3fd7bc44c11ab123.zip
pfsense-aadc135856a0dc2cb131aeda3fd7bc44c11ab123.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.
-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