diff options
Diffstat (limited to 'usr/local/www/firewall_shaper.php')
-rwxr-xr-x | usr/local/www/firewall_shaper.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php index e456c61..26954c2 100755 --- a/usr/local/www/firewall_shaper.php +++ b/usr/local/www/firewall_shaper.php @@ -51,7 +51,7 @@ if($_GET['reset'] <> "") { exit; } -$pgtitle = array("Firewall","Traffic Shaper"); +$pgtitle = array(gettext("Firewall"),gettext("Traffic Shaper")); $statusurl = "status_queues.php"; $shaperIFlist = get_configured_interface_with_descr(); @@ -156,7 +156,7 @@ if ($_GET) { } else if ($addnewaltq) { $q = new altq_root_queue(); } else - $input_errors[] = "Could not create new queue/discipline!"; + $input_errors[] = gettext("Could not create new queue/discipline!"); if ($q) { $q->SetInterface($interface); @@ -172,7 +172,7 @@ if ($_GET) { if ($queue) $output_form .= $queue->build_form(); else - $input_errors[] = "Queue not found!"; + $input_errors[] = gettext("Queue not found!"); break; case "enable": if ($queue) { @@ -181,7 +181,7 @@ if ($_GET) { write_config(); mark_subsystem_dirty('shaper'); } else - $input_errors[] = "Queue not found!"; + $input_errors[] = gettext("Queue not found!"); break; case "disable": if ($queue) { @@ -190,7 +190,7 @@ if ($_GET) { write_config(); mark_subsystem_dirty('shaper'); } else - $input_errors[] = "Queue not found!"; + $input_errors[] = gettext("Queue not found!"); break; default: $output_form .= "<p class=\"pgtitle\">" . $default_shaper_msg."</p>"; @@ -267,7 +267,7 @@ if ($_GET) { read_altq_config(); $output_form .= $tmp->build_form(); } else - $input_errors[] = "Could not add new queue."; + $input_errors[] = gettext("Could not add new queue."); } else if ($_POST['apply']) { write_config(); @@ -342,7 +342,7 @@ $tree .= "</ul>"; if (!$dontshow || $newqueue) { $output_form .= "<tr><td width=\"22%\" valign=\"center\" class=\"vncellreq\">"; -$output_form .= "<br />Queue Actions<br />"; +$output_form .= "<br />" . gettext("Queue Actions") . "<br />"; $output_form .= "</td><td valign=\"center\" class=\"vncellreq\" width=\"78%\"><br />"; $output_form .= "<input type=\"submit\" name=\"Submit\" value=\"" . gettext("Save") . "\" class=\"formbtn\" />"; @@ -353,7 +353,7 @@ if ($can_add || $addnewaltq) { $output_form .= "&queue=" . $queue->GetQname(); } $output_form .= "&action=add\">"; - $output_form .= "<input type=\"button\" class=\"formbtn\" name=\"add\" value=\"Add new queue\">"; + $output_form .= "<input type=\"button\" class=\"formbtn\" name=\"add\" value=\"" . gettext("Add new queue") . "\">"; $output_form .= "</a>"; $output_form .= "<a href=\"firewall_shaper.php?interface="; $output_form .= $interface . "&queue="; @@ -363,9 +363,9 @@ if ($can_add || $addnewaltq) { $output_form .= "&action=delete\">"; $output_form .= "<input type=\"button\" class=\"formbtn\" name=\"delete\""; if ($queue) - $output_form .= " value=\"Delete this queue\">"; + $output_form .= " value=\"" . gettext("Delete this queue") . "\">"; else - $output_form .= " value=\"Disable shaper on interface\">"; + $output_form .= " value=\"" . gettext("Disable shaper on interface") . "\">"; $output_form .= "</a>"; } $output_form .= "<br /></td></tr>"; @@ -402,17 +402,17 @@ include("fbegin.inc"); <?php if ($savemsg) print_info_box($savemsg); ?> <?php if (is_subsystem_dirty('shaper')): ?><p> -<?php print_info_box_np("The traffic shaper configuration has been changed.<br>You must apply the changes in order for them to take effect.");?><br> +<?php print_info_box_np(gettext("The traffic shaper configuration has been changed.")."<br>".gettext("You must apply the changes in order for them to take effect."));?><br> <?php endif; ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <?php $tab_array = array(); - $tab_array[0] = array("By Interface", true, "firewall_shaper.php"); - $tab_array[1] = array("By Queue", false, "firewall_shaper_queues.php"); - $tab_array[2] = array("Limiter", false, "firewall_shaper_vinterface.php"); - $tab_array[3] = array("Layer7", false, "firewall_shaper_layer7.php"); - $tab_array[4] = array("Wizards", false, "firewall_shaper_wizards.php"); + $tab_array[0] = array(gettext("By Interface"), true, "firewall_shaper.php"); + $tab_array[1] = array(gettext("By Queue"), false, "firewall_shaper_queues.php"); + $tab_array[2] = array(gettext("Limiter"), false, "firewall_shaper_vinterface.php"); + $tab_array[3] = array(gettext("Layer7"), false, "firewall_shaper_layer7.php"); + $tab_array[4] = array(gettext("Wizards"), false, "firewall_shaper_wizards.php"); display_top_tabs($tab_array); ?> </td></tr> @@ -423,7 +423,7 @@ include("fbegin.inc"); <?php if (count($altq_list_queues) > 0): ?> <tr class="tabcont"><td width="25%" align="left"> <a href="firewall_shaper.php?action=resetall" > - <input type="button" value="Remove Shaper" class="formbtn"> + <input type="button" value="<?=gettext("Remove Shaper")?>" class="formbtn"> </a> </td><td width="75%"> </td></tr> <? endif; ?> |