From bf772f049007e7489c10b259213bfdfadec74d73 Mon Sep 17 00:00:00 2001 From: Rinor Hoxha Date: Sat, 24 Nov 2012 20:30:26 +0000 Subject: [PATCH] App->Time Conditions Multi lang rev.01 --- app/time_conditions/app_languages.php | 88 ++++++++++++++++ app/time_conditions/time_condition_add.php | 117 +++++++++++---------- 2 files changed, 149 insertions(+), 56 deletions(-) create mode 100644 app/time_conditions/app_languages.php diff --git a/app/time_conditions/app_languages.php b/app/time_conditions/app_languages.php new file mode 100644 index 0000000000..04a0bd823a --- /dev/null +++ b/app/time_conditions/app_languages.php @@ -0,0 +1,88 @@ + \ No newline at end of file diff --git a/app/time_conditions/time_condition_add.php b/app/time_conditions/time_condition_add.php index 23141d6dbb..9f1e85866f 100644 --- a/app/time_conditions/time_condition_add.php +++ b/app/time_conditions/time_condition_add.php @@ -1,4 +1,4 @@ - $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; +} + $order_by = $_GET["order_by"]; $order = $_GET["order"]; @@ -79,8 +85,8 @@ $order = $_GET["order"]; if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //check for all required data - if (strlen($domain_uuid) == 0) { $msg .= "Please provide: domain_uuid
\n"; } - if (strlen($dialplan_name) == 0) { $msg .= "Please provide: Extension Name
\n"; } + if (strlen($domain_uuid) == 0) { $msg .= "".$text['label-required-domain_uuid']."
\n"; } + if (strlen($dialplan_name) == 0) { $msg .= "".$text['label-required-dialplan_name']."
\n"; } //if (strlen($condition_field_1) == 0) { $msg .= "Please provide: Condition Field
\n"; } //if (strlen($condition_expression_1) == 0) { $msg .= "Please provide: Condition Expression
\n"; } //if (strlen($action_application_1) == 0) { $msg .= "Please provide: Action Application
\n"; } @@ -472,7 +478,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Update Complete\n"; + echo "".$text['confirm-update-complete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; @@ -722,18 +728,17 @@ echo "
\n"; echo " \n"; echo " \n"; -echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; @@ -746,12 +751,12 @@ echo "
Time Conditions\n"; +echo " ".$text['title-time-condition-add']."\n"; echo " \n"; echo " \n"; -echo " \n"; +echo " \n"; echo "
\n"; echo " \n"; -echo " Time conditions route calls based on time conditions. You can use time conditions to \n"; -echo " send calls to gateways, auto attendants, external numbers, to scripts, or any destination.\n"; +echo " ".$text['description-time-condition-add']."\n"; echo " \n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; @@ -759,12 +764,12 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -795,86 +800,86 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -886,9 +891,9 @@ echo "\n"; echo "
\n"; echo "
\n"; -echo " Name:\n"; +echo " ".$text['label-name'].":\n"; echo "\n"; echo " \n"; echo "
\n"; -echo " Enter the name for the time condition.\n"; +echo " ".$text['description-name']."\n"; echo "
\n"; echo "\n"; echo "
\n"; -echo " Extension:\n"; +echo " ".$text['label-extension'].":\n"; echo "\n"; echo " \n"; echo "
\n"; -echo " Enter the extension number.
\n"; +echo " ".$text['description-extension']."
\n"; echo "
\n"; -echo " Template:\n"; +echo " ".$text['label-template'].":\n"; echo "\n"; echo " \n"; echo "
\n"; -echo "The templates provides a list of preset time conditions.\n"; +echo "".$text['description-template']."\n"; echo "
\n"; -echo " Day of Month:\n"; +echo " ".$text['label-day-of-month'].":\n"; echo "\n"; echo " \n"; echo "
\n"; -echo " Enter the day of the month. 1-31 mday
\n"; +echo " ".$text['description-day-of-month']." 1-31 mday
\n"; echo "
\n"; -echo " Day of Week:\n"; +echo " ".$text['label-day-of-week'].":\n"; echo "\n"; echo " \n"; echo "
\n"; -echo " Enter the day of the week. 1-7 (Sun=1, Mon=2, Tues=3) wday\n"; +echo " ".$text['description-day-of-week']." wday\n"; echo "
\n"; echo "
\n"; -echo " Minute of Day:\n"; +echo " ".$text['label-minute-of-day'].":\n"; echo "\n"; echo " \n"; echo "
\n"; -echo " Enter the minute of the day. 1-1440 (midnight = 1, 8am=480, 9am=540, 6pm=1080) minute-of-day
\n"; +echo " ".$text['description-minute-of-day']." minute-of-day
\n"; echo "
\n"; -echo " Month:\n"; +echo " ".$text['label-month'].":\n"; echo "\n"; echo " \n"; echo "
\n"; -echo " Enter the month. 1-12 (Jan=1, Feb=2, Mar=3, April=4, May=5, Jun=6, July=7 etc.) mon
\n"; +echo " ".$text['description-month']." mon
\n"; echo "
\n"; -echo " Week of Month:\n"; +echo " ".$text['label-week-of-month'].":\n"; echo "\n"; echo " \n"; echo "
\n"; -echo " Enter the week of the month. 1-6 mweek
\n"; +echo " ".$text['description-week-of-month']." 1-6 mweek
\n"; echo "
\n"; echo "
\n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo "
Show Advanced:".$text['label-show-advanced'].":\n"; - echo " \n"; + echo " \n"; echo "
\n"; @@ -904,60 +909,60 @@ echo "\n"; echo "\n"; echo "\n"; - echo " Day of Year:\n"; + echo " ".$text['label-day-of-year'].":\n"; echo "\n"; echo "\n"; echo " \n"; echo "
\n"; - echo " Enter the day of the year. 1-365 yday\n"; + echo " ".$text['description-day-of-year']." 1-365 yday\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo " Hour:\n"; + echo " ".$text['label-hour'].":\n"; echo "\n"; echo "\n"; echo " \n"; echo "
\n"; - echo " Enter the hour. 0-23 hour\n"; + echo " ".$text['description-hour']." 0-23 hour\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo " Minute:\n"; + echo " ".$text['label-minute'].":\n"; echo "\n"; echo "\n"; echo " \n"; echo "
\n"; - echo " Enter the minute. 0-59 minute\n"; + echo " ".$text['description-minute']." 0-59 minute\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo " Week:\n"; + echo " ".$text['label-week'].":\n"; echo "\n"; echo "\n"; echo " \n"; echo "
\n"; - echo " Enter the week. 1-52 week\n"; + echo " ".$text['description-week']." 1-52 week\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo " Year:\n"; + echo " ".$text['label-year'].":\n"; echo "\n"; echo "\n"; echo " \n"; echo "
\n"; - echo " Enter the year. 0-9999 year\n"; + echo " ".$text['description-year']." 0-9999 year\n"; echo "
\n"; echo "\n"; echo "\n"; @@ -971,7 +976,7 @@ echo "\n"; echo "\n"; echo "\n"; -echo " Action when True:\n"; +echo " ".$text['label-action-when-true'].":\n"; echo "\n"; echo "\n"; @@ -983,7 +988,7 @@ echo "\n"; echo "\n"; echo "\n"; -echo " Action when False:\n"; +echo " ".$text['label-action-when-false'].":\n"; echo "\n"; echo "\n"; @@ -996,7 +1001,7 @@ echo "\n"; echo "\n"; echo "\n"; -echo " Order:\n"; +echo " ".$text['label-order'].":\n"; echo "\n"; echo "\n"; echo " \n"; @@ -1042,7 +1047,7 @@ echo "\n"; echo "\n"; echo "\n"; -echo " Description:\n"; +echo " ".$text['label-description'].":\n"; echo "\n"; echo "\n"; echo " \n"; @@ -1056,7 +1061,7 @@ echo " \n"; if ($action == "update") { echo " \n"; } -echo " \n"; +echo " \n"; echo " \n"; echo "";