diff --git a/app/ivr_menu/ivr_menu_copy.php b/app/ivr_menu/ivr_menu_copy.php index ad81288940..5e531f16f9 100644 --- a/app/ivr_menu/ivr_menu_copy.php +++ b/app/ivr_menu/ivr_menu_copy.php @@ -35,6 +35,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //set the http get/post variable(s) to a php variable if (isset($_REQUEST["id"])) { $ivr_menu_uuid = $_GET["id"]; diff --git a/app/ivr_menu/ivr_menu_delete.php b/app/ivr_menu/ivr_menu_delete.php index 0b61cc3779..67522dd641 100644 --- a/app/ivr_menu/ivr_menu_delete.php +++ b/app/ivr_menu/ivr_menu_delete.php @@ -34,6 +34,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + if (count($_GET)>0) { $id = check_str($_GET["id"]); } diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php index 95d1e562cb..cbc9377c98 100644 --- a/app/ivr_menu/ivr_menu_edit.php +++ b/app/ivr_menu/ivr_menu_edit.php @@ -34,6 +34,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + function recur_sounds_dir($dir) { global $dir_array; global $dir_path; diff --git a/app/ivr_menu/ivr_menu_option_delete.php b/app/ivr_menu/ivr_menu_option_delete.php index 531ae2b7b8..d53cab97c7 100644 --- a/app/ivr_menu/ivr_menu_option_delete.php +++ b/app/ivr_menu/ivr_menu_option_delete.php @@ -34,6 +34,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //set the http values as variables if (count($_GET)>0) { $id = check_str($_GET["id"]); diff --git a/app/ivr_menu/ivr_menu_option_edit.php b/app/ivr_menu/ivr_menu_option_edit.php index af7449c82f..dac2226669 100644 --- a/app/ivr_menu/ivr_menu_option_edit.php +++ b/app/ivr_menu/ivr_menu_option_edit.php @@ -34,6 +34,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //action add or update if (isset($_REQUEST["id"])) { $action = "update"; diff --git a/app/ivr_menu/ivr_menu_options.php b/app/ivr_menu/ivr_menu_options.php index 44623277e2..c55af57a39 100644 --- a/app/ivr_menu/ivr_menu_options.php +++ b/app/ivr_menu/ivr_menu_options.php @@ -34,7 +34,8 @@ else { exit; } -require_once "includes/paging.php"; +//additional includes + require_once "includes/paging.php"; //get the http values and set them as variables if (isset($_GET["order_by"])) { diff --git a/app/ivr_menu/ivr_menus.php b/app/ivr_menu/ivr_menus.php index 5b5efa64f7..55754b376f 100644 --- a/app/ivr_menu/ivr_menus.php +++ b/app/ivr_menu/ivr_menus.php @@ -33,8 +33,16 @@ else { echo "access denied"; exit; } -require_once "includes/header.php"; -require_once "includes/paging.php"; + +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + +//additional includes + require_once "includes/header.php"; + require_once "includes/paging.php"; //get the http values and set them as variables if (isset($_GET["order_by"])) { diff --git a/app/music_on_hold/resources/classes/switch_music_on_hold.php b/app/music_on_hold/resources/classes/switch_music_on_hold.php index 5a865c11e2..d0e9aac93b 100644 --- a/app/music_on_hold/resources/classes/switch_music_on_hold.php +++ b/app/music_on_hold/resources/classes/switch_music_on_hold.php @@ -54,9 +54,14 @@ include "root.php"; $music_on_hold_dir = $music_on_hold_dir."/".$_SESSION['domain_name']; } + //add multi-lingual support + require_once "app/music_on_hold/app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //start the select - $select = ""; - $select .= " \n"; $select .= " \n"; //categories