diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-03 12:45:35 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-08-03 12:45:35 -0300 |
commit | ab07ca181d1223de148838a087d926f050d6f49b (patch) | |
tree | 43c8cdaa1b8e58919ce562ac079dbc9369aeab0f /usr/local/www/firewall_schedule_edit.php | |
parent | 6896444b50b50c187c69fedc511264cff5df1c44 (diff) | |
parent | 111887664a131d3fa1b45e089676802ef71efcf7 (diff) | |
download | pfsense-ab07ca181d1223de148838a087d926f050d6f49b.zip pfsense-ab07ca181d1223de148838a087d926f050d6f49b.tar.gz |
Merge remote branch 'mainline/master' into 3_interfaces
Conflicts:
usr/local/www/firewall_aliases.php
usr/local/www/firewall_aliases_edit.php
usr/local/www/firewall_aliases_import.php
usr/local/www/firewall_nat.php
usr/local/www/firewall_nat_1to1.php
usr/local/www/firewall_nat_1to1_edit.php
usr/local/www/firewall_nat_edit.php
usr/local/www/firewall_nat_out.php
usr/local/www/firewall_nat_out_edit.php
usr/local/www/firewall_rules.php
usr/local/www/firewall_rules_edit.php
usr/local/www/firewall_schedule.php
usr/local/www/firewall_schedule_edit.php
usr/local/www/firewall_shaper.php
usr/local/www/firewall_shaper_layer7.php
usr/local/www/firewall_shaper_vinterface.php
usr/local/www/firewall_shaper_wizards.php
usr/local/www/firewall_virtual_ip.php
usr/local/www/firewall_virtual_ip_edit.php
Diffstat (limited to 'usr/local/www/firewall_schedule_edit.php')
-rw-r--r-- | usr/local/www/firewall_schedule_edit.php | 89 |
1 files changed, 45 insertions, 44 deletions
diff --git a/usr/local/www/firewall_schedule_edit.php b/usr/local/www/firewall_schedule_edit.php index 62f0d99..74497c1 100644 --- a/usr/local/www/firewall_schedule_edit.php +++ b/usr/local/www/firewall_schedule_edit.php @@ -53,20 +53,21 @@ function schedule_sort(){ usort($config['schedules']['schedule'], "schedulecmp"); } -$pgtitle = array("Firewall","Schedules","Edit"); require("guiconfig.inc"); require_once("functions.inc"); require_once("filter.inc"); require_once("shaper.inc"); +$pgtitle = array(gettext("Firewall"),gettext("Schedules"),gettext("Edit")); + $starttimehr = 00; $starttimemin = 00; $stoptimehr = 23; $stoptimemin = 59; -$dayArray = array ('Mon','Tues','Wed','Thur','Fri','Sat','Sun'); -$monthArray = array ('January','February','March','April','May','June','July','August','September','October','November','December'); +$dayArray = array (gettext('Mon'),gettext('Tues'),gettext('Wed'),gettext('Thur'),gettext('Fri'),gettext('Sat'),gettext('Sun')); +$monthArray = array (gettext('January'),gettext('February'),gettext('March'),gettext('April'),gettext('May'),gettext('June'),gettext('July'),gettext('August'),gettext('September'),gettext('October'),gettext('November'),gettext('December')); if (!is_array($config['schedules']['schedule'])) $config['schedules']['schedule'] = array(); @@ -89,18 +90,18 @@ if (isset($id) && $a_schedules[$id]) { if ($_POST) { if(strtolower($_POST['name']) == "lan") - $input_errors[] = "Schedule may not be named LAN."; + $input_errors[] = gettext("Schedule may not be named LAN."); if(strtolower($_POST['name']) == "wan") - $input_errors[] = "Schedule may not be named WAN."; + $input_errors[] = gettext("Schedule may not be named WAN."); if(strtolower($_POST['name']) == "") - $input_errors[] = "Schedule name cannot be blank."; + $input_errors[] = gettext("Schedule name cannot be blank."); $x = is_validaliasname($_POST['name']); if (!isset($x)) { - $input_errors[] = "Reserved word used for schedule name."; + $input_errors[] = gettext("Reserved word used for schedule name."); } else { if (is_validaliasname($_POST['name']) == false) - $input_errors[] = "The schedule name may only consist of the characters a-z, A-Z, 0-9"; + $input_errors[] = gettext("The schedule name may only consist of the characters a-z, A-Z, 0-9"); } /* check for name conflicts */ @@ -109,7 +110,7 @@ if ($_POST) { continue; if ($schedule['name'] == $_POST['name']) { - $input_errors[] = "A Schedule with this name already exists."; + $input_errors[] = gettext("A Schedule with this name already exists."); break; } } @@ -166,7 +167,7 @@ if ($_POST) { } if (!$timerangeFound) - $input_errors[] = "The schedule must have at least one time range configured."; + $input_errors[] = gettext("The schedule must have at least one time range configured."); if (!$input_errors) { @@ -766,33 +767,33 @@ EOD; <form action="firewall_schedule_edit.php" method="post" name="iform" id="iform"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> - <td colspan="2" valign="top" class="listtopic">Schedule information</td> + <td colspan="2" valign="top" class="listtopic"><?=gettext("Schedule information");?></td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> - <td width="15%" valign="top" class="vncellreq">Schedule Name</td> + <td width="15%" valign="top" class="vncellreq"><?=gettext("Schedule Name");?></td> <td width="85%" class="vtable"> <?php if(is_schedule_inuse($pconfig['name']) == true): ?> <input name="name" type="hidden" id="name" size="40" value="<?=htmlspecialchars($pconfig['name']);?>" /> <?php echo $pconfig['name']; ?> <p> - <span class="vexpl">NOTE: This schedule is in use so the name may not be modified!</span> + <span class="vexpl"><?=gettext("NOTE: This schedule is in use so the name may not be modified!");?></span> </p> <?php else: ?> <input name="name" type="text" id="name" size="40" maxlength="40" class="formfld unknown" value="<?=htmlspecialchars($pconfig['name']);?>"><br> <span class="vexpl"> - The name of the alias may only consist of the characters a-z, A-Z and 0-9 + <?=gettext("The name of the alias may only consist of the characters a-z, A-Z and 0-9");?> </span> <?php endif; ?> </td> </tr> <tr> - <td width="15%" valign="top" class="vncell">Description</td> + <td width="15%" valign="top" class="vncell"><?=gettext("Description");?></td> <td width="85%" class="vtable"><input name="descr" type="text" id="descr" size="40" maxlength="40" class="formfld unknown" value="<?=htmlspecialchars($pconfig['descr']);?>"><br> <span class="vexpl"> - You may enter a description here for your reference (not parsed). + <?=gettext("You may enter a description here for your reference (not parsed).");?> </span> </td> @@ -800,7 +801,7 @@ EOD; <tr> </tr> <tr> - <td width="15%" valign="top" class="vncellreq">Month</td> + <td width="15%" valign="top" class="vncellreq"><?=gettext("Month");?></td> <td width="85%" class="vtable"> <select name="monthsel" class="formselect" id="monthsel" onchange="update_month();"> <?php @@ -842,13 +843,13 @@ EOD; <TR><TD COLSPAN="7" ALIGN=center class="listbg"><B><?php echo date("F Y", mktime(0, 0, 0, date($monthcounter), 1, date($yearcounter)));?></B></TD> </TR> <TR> - <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p1');"><u><b>Mon</b></u></TD> - <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p2');"><u><b>Tue</b></u></TD> - <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p3');"><u><b>Wed</b></u></TD> - <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p4');"><u><b>Thu</b></u></TD> - <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p5');"><u><b>Fri</b></u></TD> - <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p6');"><u><b>Sat</b></u></TD> - <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p7');"><u><b>Sun</b></u></TD> + <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p1');"><u><b><?=gettext("Mon");?></b></u></TD> + <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p2');"><u><b><?=gettext("Tue");?></b></u></TD> + <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p3');"><u><b><?=gettext("Wed");?></b></u></TD> + <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p4');"><u><b><?=gettext("Thu");?></b></u></TD> + <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p5');"><u><b><?=gettext("Fri");?></b></u></TD> + <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p6');"><u><b><?=gettext("Sat");?></b></u></TD> + <TD ALIGN=center class="listhdrr" style="cursor: pointer;" onClick="daytoggle('w1p7');"><u><b><?=gettext("Sun");?></b></u></TD> </TR> <?php $firstmonth = FALSE; @@ -902,15 +903,15 @@ EOD; } //end for loop ?> <br/> - Click individual date to select that date only. Click the appropriate weekday Header to select all occurences of that weekday. + <?=gettext("Click individual date to select that date only. Click the appropriate weekday Header to select all occurences of that weekday.");?> </td> </tr> <tr> - <td width="15%" valign="top" class="vncellreq">Time</td> + <td width="15%" valign="top" class="vncellreq"><?=gettext("Time");?></td> <td width="85%" class="vtable"> <table cellspacing=2 class="tabcont"> <tr> - <td class="listhdrr" align="center">Start Time</td><td></td><td class="listhdrr" align="center">Stop Time</td> + <td class="listhdrr" align="center"><?=gettext("Start Time");?></td><td></td><td class="listhdrr" align="center"><?=gettext("Stop Time");?></td> </tr> <tr> <td> @@ -923,14 +924,14 @@ EOD; echo "</option>"; } ?> - </select> Hr + </select> <?=gettext("Hr"); ?> <select name="starttimemin" class="formselect" id="starttimemin"> <option value="00">00</option> <option value="15">15</option> <option value="30">30</option> <option value="45">45</option> <option value="59">59</option> - </select> Min + </select> <?=gettext("Min"); ?> </td> <td></td> <td> @@ -948,33 +949,33 @@ EOD; echo "</option>"; } ?> - </select> Hr + </select> <?=gettext("Hr");?> <select name="stoptimemin" class="formselect" id="stoptimemin"> <option value="00">00</option> <option value="15">15</option> <option value="30">30</option> <option value="45">45</option> <option value="59" SELECTED>59</option> - </select> Min + </select> <?=gettext("Min");?> </td> </tr> </table><br> - Select the time range for the day(s) selected on the Month(s) above. A full day is 0:00-23:59. + <?=gettext("Select the time range for the day(s) selected on the Month(s) above. A full day is 0:00-23:59.")?> </td> </tr> <tr> - <td width="15%" valign="top" class="vncell">Time Range Description</td> + <td width="15%" valign="top" class="vncell"><?=gettext("Time Range Description")?></td> <td width="85%" class="vtable"><input name="timerangedescr" type="text" class="formfld unknown" id="timerangedescr" size="40" maxlength="40"><br> <span class="vexpl"> - You may enter a description here for your reference (not parsed). + <?=gettext("You may enter a description here for your reference (not parsed).")?> </span> </td> </tr> <tr> <td width="22%" valign="top"> </td> <td width="78%"> - <input type="button" value="Add Time" class="formbtn" onclick="javascript:processEntries();"> - <input type="button" value="Clear Selection" class="formbtn" onclick="javascript:clearCalendar(); clearTime(); clearDescr();"> + <input type="button" value="<?=gettext("Add Time");?>" class="formbtn" onclick="javascript:processEntries();"> + <input type="button" value="<?=gettext("Clear Selection");?>" class="formbtn" onclick="javascript:clearCalendar(); clearTime(); clearDescr();"> </td> </tr> <tr> @@ -983,18 +984,18 @@ EOD; </td> </tr> <tr> - <td colspan="2" valign="top" class="listtopic">Schedule repeat</td> + <td colspan="2" valign="top" class="listtopic"><?=gettext("Schedule repeat");?></td> </tr> <tr> - <td width="15%" valign="top" class="vncellreq">Configured Ranges</td> + <td width="15%" valign="top" class="vncellreq"><?=gettext("Configured Ranges");?></td> <td width="85%"> <table id="scheduletable"> <tbody> <tr> - <TD ALIGN="center" class="listbg" width="35%">Day(s)</td> - <TD ALIGN="center" class="listbg" width="12%">Start Time</td> - <TD ALIGN="center" class="listbg" width="11%">Stop Time</td> - <TD ALIGN="center" class="listbg" width="42%">Description</td> + <TD ALIGN="center" class="listbg" width="35%"><?=gettext("Day(s)");?></td> + <TD ALIGN="center" class="listbg" width="12%"><?=gettext("Start Time");?></td> + <TD ALIGN="center" class="listbg" width="11%"><?=gettext("Stop Time");?></td> + <TD ALIGN="center" class="listbg" width="42%"><?=gettext("Description");?></td> </tr> <?php if ($getSchedule){ @@ -1152,8 +1153,8 @@ EOD; <tr> <td width="15%" valign="top"> </td> <td width="85%"> - <input id="submit" name="submit" type="submit" onclick="return checkForRanges();" class="formbtn" value="Save" /> - <input id="cancelbutton" name="cancelbutton" type="button" class="formbtn" value="Cancel" onclick="history.back()" /> + <input id="submit" name="submit" type="submit" onclick="return checkForRanges();" class="formbtn" value="<?=gettext("Save"); ?>" /> + <input id="cancelbutton" name="cancelbutton" type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()" /> <?php if (isset($id) && $a_schedules[$id]): ?> <input name="id" type="hidden" value="<?=$id;?>" /> <?php endif; ?> |