Revision 170fbb18
Added by Phil Davis about 9 years ago
src/etc/inc/shaper.inc | ||
---|---|---|
4667 | 4667 |
} |
4668 | 4668 |
|
4669 | 4669 |
$default_shaper_msg = sprintf(gettext("Welcome to the %s Traffic Shaper."), $g['product_name']) . "<br />"; |
4670 |
$default_shaper_msg .= gettext("The tree on the left navigates through the queues.<br />" |
|
4671 |
. "Buttons at the bottom represent queue actions and are activated accordingly."); |
|
4672 |
|
|
4673 | 4670 |
$dn_default_shaper_msg = $default_shaper_msg; |
4674 | 4671 |
|
4672 |
$shaper_msg = gettext("The tree on the left navigates through the %s."); |
|
4673 |
$default_shaper_msg .= sprintf($shaper_msg, gettext("queues")) . "<br />"; |
|
4674 |
$dn_default_shaper_msg .= sprintf($shaper_msg, gettext("limiters")) . "<br />"; |
|
4675 |
|
|
4676 |
$shaper_msg = gettext("Buttons at the bottom represent %s actions and are activated accordingly."); |
|
4677 |
$default_shaper_msg .= sprintf($shaper_msg, gettext("queue")); |
|
4678 |
$dn_default_shaper_msg .= sprintf($shaper_msg, gettext("limiter")); |
|
4679 |
|
|
4675 | 4680 |
?> |
Also available in: Unified diff
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)