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 "
Time Conditions\n";
+echo " | ".$text['title-time-condition-add']."\n";
echo " \n";
echo " | \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 " Name:\n"; +echo " ".$text['label-name'].":\n"; echo " | \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";
@@ -759,12 +764,12 @@ echo "||||||||
| \n"; -echo " Extension:\n"; +echo " ".$text['label-extension'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; -echo " Enter the extension number. \n"; +echo " ".$text['description-extension']." \n"; echo " | \n";
echo "||||||||
| \n"; -echo " Template:\n"; +echo " ".$text['label-template'].":\n"; echo " | \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 "||||||||
| \n"; -echo " Day of Month:\n"; +echo " ".$text['label-day-of-month'].":\n"; echo " | \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 "||||||||
| \n"; -echo " Day of Week:\n"; +echo " ".$text['label-day-of-week'].":\n"; echo " | \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 "||||||||
| \n"; -echo " Minute of Day:\n"; +echo " ".$text['label-minute-of-day'].":\n"; echo " | \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 "||||||||
| \n"; -echo " Month:\n"; +echo " ".$text['label-month'].":\n"; echo " | \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 "||||||||
| \n"; -echo " Week of Month:\n"; +echo " ".$text['label-week-of-month'].":\n"; echo " | \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 "||||||||
| Show Advanced: | \n"; + echo "".$text['label-show-advanced'].": | \n"; echo "\n"; - echo " \n"; + echo " \n"; echo " | \n"; echo "