From 5d8a530e210c08d78ac7e17cebd318d830e5912a Mon Sep 17 00:00:00 2001 From: Rafael Lucas Date: Thu, 24 Jun 2010 11:02:40 -0300 Subject: Implement gettext() calls --- usr/local/www/firewall_schedule_edit.php | 74 ++++++++++++++++---------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/usr/local/www/firewall_schedule_edit.php b/usr/local/www/firewall_schedule_edit.php index 62f0d99..cfbf7d9 100644 --- a/usr/local/www/firewall_schedule_edit.php +++ b/usr/local/www/firewall_schedule_edit.php @@ -53,7 +53,7 @@ function schedule_sort(){ usort($config['schedules']['schedule'], "schedulecmp"); } -$pgtitle = array("Firewall","Schedules","Edit"); +$pgtitle = array(gettext("Firewall"),gettext("Schedules"),gettext("Edit")); require("guiconfig.inc"); require_once("functions.inc"); require_once("filter.inc"); @@ -65,8 +65,8 @@ $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 +89,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 +109,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 +166,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) { @@ -186,7 +186,7 @@ if ($_POST) { filter_configure(); - header("Location: firewall_schedule.php"); + header(gettext("Location: firewall_schedule.php")); exit; } @@ -766,33 +766,33 @@ EOD;
- +
Schedule information
- + - + @@ -800,7 +800,7 @@ EOD; - + - - - - - - - + + + + + + +
- Click individual date to select that date only. Click the appropriate weekday Header to select all occurences of that weekday. + - + - + @@ -983,18 +983,18 @@ EOD; - + - +
Schedule Name

- NOTE: This schedule is in use so the name may not be modified! +


- The name of the alias may only consist of the characters a-z, A-Z and 0-9 +
Description
- You may enter a description here for your reference (not parsed). +
Month
MonTueWedThuFriSatSun
Time - +
Start TimeStop Time
@@ -959,14 +959,14 @@ EOD;

- Select the time range for the day(s) selected on the Month(s) above. A full day is 0:00-23:59. +
Time Range Description
- You may enter a description here for your reference (not parsed). +
Schedule repeat
Configured Ranges - - - - + + + +
Day(s)Start TimeStop TimeDescription