Revision 18efed8b
Added by Carlos Eduardo Ramos about 15 years ago
etc/inc/shaper.inc | ||
---|---|---|
1086 | 1086 |
$form .= "</td></tr>"; |
1087 | 1087 |
$form .= "<tr>"; |
1088 | 1088 |
$form .= "<td width=\"22%\" valign=\"center\" class=\"vncellreq\">"; |
1089 |
$form .= "Queue Name</td><td width=\"78%\" class=\"vtable\">";
|
|
1089 |
$form .= gettext("Queue Name") . "</td><td width=\"78%\" class=\"vtable\">";
|
|
1090 | 1090 |
$form .= "<input name=\"name\" type=\"text\" id=\"name\" class=\"formfld unknown\" size=\"15\" maxlength=\"15\" value=\""; |
1091 | 1091 |
$form .= htmlspecialchars($this->GetQname()); |
1092 | 1092 |
$form .= "\">"; |
1093 | 1093 |
$form .= "<br /> <span class=\"vexpl\">" . gettext("Enter the name of the queue here. Do not use spaces and limit the size to 15 characters."); |
1094 | 1094 |
$form .= "</span><br /></td>"; |
1095 | 1095 |
$form .= "</tr><tr>"; |
1096 |
$form .= "<td width=\"22%\" valign=\"center\" class=\"vncellreq\">Priority</td>";
|
|
1096 |
$form .= "<td width=\"22%\" valign=\"center\" class=\"vncellreq\">" . gettext("Priority") . "</td>";
|
|
1097 | 1097 |
$form .= "<td width=\"78%\" class=\"vtable\"> <input name=\"priority\" type=\"text\" id=\"priority\" size=\"5\" value=\""; |
1098 | 1098 |
$form .= htmlspecialchars($this->GetQpriority()); |
1099 | 1099 |
$form .= "\">"; |
... | ... | |
1813 | 1813 |
$form .= "<option value=\"Gb\""; |
1814 | 1814 |
if ($this->GetBwscale() == "Gb") |
1815 | 1815 |
$form .= " selected=\"yes\""; |
1816 |
$form .= ">Gbit/s</option>";
|
|
1816 |
$form .= ">" . gettext("Gbit/s") . "</option>";
|
|
1817 | 1817 |
$form .= "<option value=\"Mb\""; |
1818 | 1818 |
if ($this->GetBwscale() == "Mb") |
1819 | 1819 |
$form .= " selected=\"yes\""; |
1820 |
$form .= ">Mbit/s</option>";
|
|
1820 |
$form .= ">" . gettext("Mbit/s") . "</option>";
|
|
1821 | 1821 |
$form .= "<option value=\"Kb\""; |
1822 | 1822 |
if ($this->GetBwscale() == "Kb") |
1823 | 1823 |
$form .= " selected=\"yes\""; |
1824 |
$form .= ">Kbit/s</option>";
|
|
1824 |
$form .= ">" . gettext("Kbit/s") . "</option>";
|
|
1825 | 1825 |
$form .= "<option value=\"\""; |
1826 | 1826 |
if ($this->GetBwscale() == "b") |
1827 | 1827 |
$form .= " selected=\"yes\""; |
1828 |
$form .= ">Bit/s</option>";
|
|
1828 |
$form .= ">" . gettext("Bit/s") . "</option>";
|
|
1829 | 1829 |
$form .= "<option value=\"%\""; |
1830 | 1830 |
if ($this->GetBwscale() == "%") |
1831 | 1831 |
$form .= " selected=\"yes\""; |
... | ... | |
1841 | 1841 |
$form .= "<tr><td><input type=\"checkbox\" id=\"upperlimit\" name=\"upperlimit\""; |
1842 | 1842 |
if($this->GetUpperlimit()<> "") |
1843 | 1843 |
$form .= " CHECKED "; |
1844 |
$form .= "onChange=\"enable_upperlimit()\"> Upperlimit:</td><td><input size=\"6\" value=\"";
|
|
1844 |
$form .= "onChange=\"enable_upperlimit()\"> " . gettext("Upperlimit:") . "</td><td><input size=\"6\" value=\"";
|
|
1845 | 1845 |
$form .= htmlspecialchars($this->GetU_m1()); |
1846 | 1846 |
$form .= "\" id=\"upperlimit1\" name=\"upperlimit1\" "; |
1847 | 1847 |
if ($this->GetUpperlimit() == "") |
... | ... | |
1860 | 1860 |
$form .= "<tr><td><input type=\"checkbox\" id=\"realtime\" name=\"realtime\""; |
1861 | 1861 |
if($this->GetRealtime() <> "") |
1862 | 1862 |
$form .= " CHECKED "; |
1863 |
$form .= "onChange=\"enable_realtime()\"> Real time:</td><td><input size=\"6\" value=\"";
|
|
1863 |
$form .= "onChange=\"enable_realtime()\"> " . gettext("Real time:") . "</td><td><input size=\"6\" value=\"";
|
|
1864 | 1864 |
$form .= htmlspecialchars($this->GetR_m1()); |
1865 | 1865 |
$form .= "\" id=\"realtime1\" name=\"realtime1\" "; |
1866 | 1866 |
if ($this->GetRealtime() == "") |
... | ... | |
2290 | 2290 |
$form .= "<option value=\"Gb\""; |
2291 | 2291 |
if ($this->GetBwscale() == "Gb") |
2292 | 2292 |
$form .= " selected=\"yes\""; |
2293 |
$form .= ">Gbit/s</option>";
|
|
2293 |
$form .= ">" . gettext("Gbit/s") . "</option>";
|
|
2294 | 2294 |
$form .= "<option value=\"Mb\""; |
2295 | 2295 |
if ($this->GetBwscale() == "Mb") |
2296 | 2296 |
$form .= " selected=\"yes\""; |
2297 |
$form .= ">Mbit/s</option>";
|
|
2297 |
$form .= ">" . gettext("Mbit/s") . "</option>";
|
|
2298 | 2298 |
$form .= "<option value=\"Kb\""; |
2299 | 2299 |
if ($this->GetBwscale() == "Kb") |
2300 | 2300 |
$form .= " selected=\"yes\""; |
2301 |
$form .= ">Kbit/s</option>";
|
|
2301 |
$form .= ">" . gettext("Kbit/s") . "</option>";
|
|
2302 | 2302 |
$form .= "<option value=\"\""; |
2303 | 2303 |
if ($this->GetBwscale() == "b") |
2304 | 2304 |
$form .= " selected=\"yes\""; |
2305 |
$form .= ">Bit/s</option>";
|
|
2305 |
$form .= ">" . gettext("Bit/s") . "</option>";
|
|
2306 | 2306 |
$form .= "<option value=\"%\""; |
2307 | 2307 |
if ($this->GetBwscale() == "%") |
2308 | 2308 |
$form .= " selected=\"yes\""; |
... | ... | |
2557 | 2557 |
$form .= "<option value=\"Gb\""; |
2558 | 2558 |
if ($this->GetBwscale() == "Gb") |
2559 | 2559 |
$form .= " selected=\"yes\""; |
2560 |
$form .= ">Gbit/s</option>";
|
|
2560 |
$form .= ">" . gettext("Gbit/s") . "</option>";
|
|
2561 | 2561 |
$form .= "<option value=\"Mb\""; |
2562 | 2562 |
if ($this->GetBwscale() == "Mb") |
2563 | 2563 |
$form .= " selected=\"yes\""; |
2564 |
$form .= ">Mbit/s</option>";
|
|
2564 |
$form .= ">" . gettext("Mbit/s") . "</option>";
|
|
2565 | 2565 |
$form .= "<option value=\"Kb\""; |
2566 | 2566 |
if ($this->GetBwscale() == "Kb") |
2567 | 2567 |
$form .= " selected=\"yes\""; |
2568 |
$form .= ">Kbit/s</option>";
|
|
2568 |
$form .= ">" . gettext("Kbit/s") . "</option>";
|
|
2569 | 2569 |
$form .= "<option value=\"\""; |
2570 | 2570 |
if ($this->GetBwscale() == "b") |
2571 | 2571 |
$form .= " selected=\"yes\""; |
2572 |
$form .= ">Bit/s</option>";
|
|
2572 |
$form .= ">" . gettext("Bit/s") . "</option>";
|
|
2573 | 2573 |
$form .= "<option value=\"%\""; |
2574 | 2574 |
if ($this->GetBwscale() == "%") |
2575 | 2575 |
$form .= " selected=\"yes\""; |
... | ... | |
2962 | 2962 |
$form .= "<option value=\"Kb\""; |
2963 | 2963 |
if ($this->GetBwscale() == "Kb") |
2964 | 2964 |
$form .= " selected=\"yes\""; |
2965 |
$form .= ">Kbit/s</option>";
|
|
2965 |
$form .= ">" .gettext( "Kbit/s") . "</option>";
|
|
2966 | 2966 |
$form .= "<option value=\"Mb\""; |
2967 | 2967 |
if ($this->GetBwscale() == "Mb") |
2968 | 2968 |
$form .= " selected=\"yes\""; |
2969 |
$form .= ">Mbit/s</option>";
|
|
2969 |
$form .= ">" . gettext("Mbit/s") . "</option>";
|
|
2970 | 2970 |
$form .= "<option value=\"Gb\""; |
2971 | 2971 |
if ($this->GetBwscale() == "Gb") |
2972 | 2972 |
$form .= " selected=\"yes\""; |
2973 |
$form .= ">Gbit/s</option>";
|
|
2973 |
$form .= ">" . gettext("Gbit/s") . "</option>";
|
|
2974 | 2974 |
$form .= "<option value=\"\""; |
2975 | 2975 |
if ($this->GetBwscale() == "b") |
2976 | 2976 |
$form .= " selected=\"yes\""; |
... | ... | |
3016 | 3016 |
$form .= "</div></td></tr>"; |
3017 | 3017 |
$form .= "<tr style=\"display:none\" id=\"sprtable\" name=\"sprtable\">"; |
3018 | 3018 |
|
3019 |
$form .= "<td valign=\"center\" class=\"vncellreq\">Delay</td>";
|
|
3019 |
$form .= "<td valign=\"center\" class=\"vncellreq\">" . gettext("Delay") . "</td>";
|
|
3020 | 3020 |
$form .= "<td valign=\"center\" class=\"vncellreq\">"; |
3021 | 3021 |
$form .= "<input name=\"delay\" type=\"text\" id=\"delay\" size=\"5\" value=\""; |
3022 | 3022 |
$form .= $this->GetDelay() . "\">"; |
... | ... | |
3024 | 3024 |
. "should specify 0 here (or leave the field empty)") . "</span>"; |
3025 | 3025 |
$form .= "</td></tr><br/>"; |
3026 | 3026 |
$form .= "<tr style=\"display:none\" id=\"sprtable1\" name=\"sprtable1\">"; |
3027 |
$form .= "<td valign=\"center\" class=\"vncellreq\">Packet loss rate</td>";
|
|
3027 |
$form .= "<td valign=\"center\" class=\"vncellreq\">" . gettext("Packet loss rate") . "</td>";
|
|
3028 | 3028 |
$form .= "<td valign=\"center\" class=\"vncellreq\">"; |
3029 | 3029 |
$form .= "<input name=\"plr\" type=\"text\" id=\"plr\" size=\"5\" value=\""; |
3030 | 3030 |
$form .= $this->GetPlr() . "\">"; |
... | ... | |
3657 | 3657 |
/* Only reread the configuration rather than restart to avoid loosing information. */ |
3658 | 3658 |
exec("/bin/pgrep -f 'ipfw-classifyd .* -p ". $l7rules->GetRPort() . "'", $l7pid); |
3659 | 3659 |
if (count($l7pid) > 0) { |
3660 |
log_error("Sending HUP signal to {$l7pid[0]}");
|
|
3660 |
log_error(sprintf(gettext("Sending HUP signal to %s"), $l7pid[0]));
|
|
3661 | 3661 |
mwexec("/bin/kill -HUP {$l7pid[0]}"); |
3662 | 3662 |
} else { |
3663 | 3663 |
// XXX: Hardcoded number of packets to garbage collect and queue length.. |
Also available in: Unified diff
Fix gettext on shaper.inc