diff --git a/app/conferences/app_languages.php b/app/conferences/app_languages.php index ce131b2ce6..4f451c876e 100644 --- a/app/conferences/app_languages.php +++ b/app/conferences/app_languages.php @@ -1,123 +1,123 @@ \ No newline at end of file diff --git a/app/conferences/conference_delete.php b/app/conferences/conference_delete.php index 5bb6cf7c16..f67530a044 100644 --- a/app/conferences/conference_delete.php +++ b/app/conferences/conference_delete.php @@ -26,7 +26,6 @@ require_once "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; -include "app_languages.php"; if (permission_exists('conference_delete')) { //access granted } @@ -35,8 +34,10 @@ else { exit; } - foreach($content_conferences as $key => $value) { - $content_conferences[$key] = $value[$_SESSION['domain']['language']['code']]; +//add multi-lingual support + require_once "app/calls/app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } if (count($_GET)>0) { @@ -88,7 +89,7 @@ if (strlen($id)>0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "".$content_conferences['confirm-delete']."\n"; + echo "".$text['confirm-delete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; diff --git a/app/conferences/conference_edit.php b/app/conferences/conference_edit.php index 3f9a450214..1e588d128a 100644 --- a/app/conferences/conference_edit.php +++ b/app/conferences/conference_edit.php @@ -26,7 +26,6 @@ require_once "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; -include "app_languages.php"; if (permission_exists('conference_add') || permission_exists('conference_edit')) { //access granted } @@ -35,8 +34,10 @@ else { exit; } - foreach($content_conferences as $key => $value) { - $content_conferences[$key] = $value[$_SESSION['domain']['language']['code']]; +//add multi-lingual support + require_once "app/calls/app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //action add or update @@ -79,7 +80,7 @@ else { //redirect the browser require_once "includes/header.php"; echo "\n"; - echo "
".$content_conferences['confirm-delete']."
"; + echo "
".$text['confirm-delete']."
"; require_once "includes/footer.php"; return; } @@ -108,7 +109,7 @@ else { //redirect the browser require_once "includes/header.php"; echo "\n"; - echo "
".$content_conferences['confirm-add']."
"; + echo "
".$text['confirm-add']."
"; require_once "includes/footer.php"; return; } @@ -122,14 +123,14 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //check for all required data //if (strlen($dialplan_uuid) == 0) { $msg .= "Please provide: Dialplan UUID
\n"; } - if (strlen($conference_name) == 0) { $msg .= "".$content_conferences['confirm-name']."
\n"; } - if (strlen($conference_extension) == 0) { $msg .= "".$content_conferences['confirm-extension']."
\n"; } + if (strlen($conference_name) == 0) { $msg .= "".$text['confirm-name']."
\n"; } + if (strlen($conference_extension) == 0) { $msg .= "".$text['confirm-extension']."
\n"; } //if (strlen($conference_pin_number) == 0) { $msg .= "Please provide: Pin Number
\n"; } - if (strlen($conference_profile) == 0) { $msg .= "".$content_conferences['confirm-profile']."
\n"; } + if (strlen($conference_profile) == 0) { $msg .= "".$text['confirm-profile']."
\n"; } //if (strlen($conference_flags) == 0) { $msg .= "Please provide: Flags
\n"; } //if (strlen($conference_order) == 0) { $msg .= "Please provide: Order
\n"; } //if (strlen($conference_description) == 0) { $msg .= "Please provide: Description
\n"; } - if (strlen($conference_enabled) == 0) { $msg .= "".$content_conferences['confirm-enabled']."
\n"; } + if (strlen($conference_enabled) == 0) { $msg .= "".$text['confirm-enabled']."
\n"; } if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; require_once "includes/persistformvar.php"; @@ -226,7 +227,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "".$content_conferences['confirm-add']."\n"; + echo "".$text['confirm-add']."\n"; echo "
\n"; require_once "includes/footer.php"; return; @@ -294,7 +295,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "".$content_conferences['confirm-update']."\n"; + echo "".$text['confirm-update']."\n"; echo "
\n"; require_once "includes/footer.php"; return; @@ -344,51 +345,51 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; if ($action == "add") { - echo "\n"; + echo "\n"; } if ($action == "update") { - 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"; @@ -412,7 +413,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; echo " \n"; echo " \n"; } @@ -431,10 +432,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; } echo " "; - echo " \n"; + echo " \n"; unset($sql, $result); echo "
\n"; - echo " ".$content_conferences['description-useradd']."\n"; + echo " ".$text['description-user-add']."\n"; echo "
\n"; echo " "; echo " "; @@ -443,7 +444,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -466,13 +467,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { 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"; @@ -534,7 +535,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
".$content_conferences['label-confadd']."".$text['label-conference-add']."".$content_conferences['label-confedit']."".$text['label-conference-edit']."
\n"; - echo "".$content_conferences['description']." \n"; - echo "Click on ".$content_conferences['title3']." \n"; - echo "".$content_conferences['description3']."

\n"; + echo "".$text['description']." \n"; + echo "Click on ".$text['title-3']." \n"; + echo "".$text['description-3']."

\n"; echo "
\n"; - echo " ".$content_conferences['label-name'].":\n"; + echo " ".$text['label-name'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_conferences['description-name']."\n"; + echo "".$text['description-name']."\n"; echo "
\n"; - echo " ".$content_conferences['label-extension'].":\n"; + echo " ".$text['label-extension'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_conferences['description-extension']."\n"; + echo "".$text['description-extension']."\n"; echo "
\n"; - echo " ".$content_conferences['label-pin'].":\n"; + echo " ".$text['label-pin'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_conferences['description-pin']."\n"; + echo "".$text['description-pin']."\n"; echo "
".$field['username']."\n"; - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; echo "
\n"; - echo " ".$content_conferences['table-profile'].":\n"; + echo " ".$text['table-profile'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_conferences['description-profile']."\n"; + echo "".$text['description-profile']."\n"; echo "
\n"; echo " \n"; echo "
\n"; - echo "".$content_conferences['description-flags']."\n"; + echo "".$text['description-flags']."\n"; echo "
\n"; - echo " ".$content_conferences['label-order'].":\n"; + echo " ".$text['label-order'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_conferences['description-order']."\n"; + echo "".$text['description-order']."\n"; echo "
\n"; - echo " ".$content_conferences['table-enabled'].":\n"; + echo " ".$text['table-enabled'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_conferences['description-confenable']."\n"; + echo "".$text['description-conference-enable']."\n"; echo "
\n"; - echo " ".$content_conferences['label-description'].":\n"; + echo " ".$text['label-description'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "".$content_conferences['description-info']."\n"; + echo "".$text['description-info']."\n"; echo "
"; diff --git a/app/conferences/conferences.php b/app/conferences/conferences.php index 6f61e4646d..b91ee336b0 100644 --- a/app/conferences/conferences.php +++ b/app/conferences/conferences.php @@ -26,7 +26,6 @@ require_once "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; -include "app_languages.php"; if (permission_exists('conference_view')) { //access granted } @@ -35,8 +34,10 @@ else { exit; } - foreach($content_conferences as $key => $value) { - $content_conferences[$key] = $value[$_SESSION['domain']['language']['code']]; +//add multi-lingual support + require_once "app/calls/app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } require_once "includes/header.php"; @@ -55,14 +56,14 @@ require_once "includes/paging.php"; echo "\n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; @@ -130,13 +131,13 @@ require_once "includes/paging.php"; echo "
\n"; echo "
".$content_conferences['title']."".$text['title']." 
\n"; - echo " ".$content_conferences['description']." \n"; + echo " ".$text['description']." \n"; if (permission_exists('conferences_active_advanced_view')) { - echo " Show ".$content_conferences['title2']." ".$content_conferences['description2']."

\n"; + echo " Show ".$text['title-2']." ".$text['description-2']."

\n"; } echo "
\n"; echo "\n"; - echo th_order_by('conference_name', $content_conferences['table-name'], $order_by, $order); - echo th_order_by('conference_extension', $content_conferences['table-extension'], $order_by, $order); - echo th_order_by('conference_profile', $content_conferences['table-profile'], $order_by, $order); + echo th_order_by('conference_name', $text['table-name'], $order_by, $order); + echo th_order_by('conference_extension', $text['table-extension'], $order_by, $order); + echo th_order_by('conference_profile', $text['table-profile'], $order_by, $order); //echo th_order_by('conference_flags', 'Flags', $order_by, $order); - echo th_order_by('conference_order', $content_conferences['table-order'], $order_by, $order); - echo th_order_by('conference_enabled', $content_conferences['table-enabled'], $order_by, $order); - echo th_order_by('conference_description', $content_conferences['table-description'], $order_by, $order); + echo th_order_by('conference_order', $text['table-order'], $order_by, $order); + echo th_order_by('conference_enabled', $text['table-enabled'], $order_by, $order); + echo th_order_by('conference_description', $text['table-description'], $order_by, $order); echo "
\n"; if (permission_exists('conference_add')) { echo " $v_link_label_add\n";