diff --git a/app/calls/app_languages.php b/app/calls/app_languages.php index 0a9e7296da..dcdab4d5d8 100644 --- a/app/calls/app_languages.php +++ b/app/calls/app_languages.php @@ -1,90 +1,90 @@ \ No newline at end of file diff --git a/app/calls/v_call_edit.php b/app/calls/v_call_edit.php index 6f9fdbb98a..ad3131222c 100644 --- a/app/calls/v_call_edit.php +++ b/app/calls/v_call_edit.php @@ -34,9 +34,10 @@ else { echo "access denied"; exit; } - - foreach($content_calls as $key => $value) { - $content_calls[$key] = $value[$_SESSION['domain']['language']['code']]; + +//add multi-lingual support + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //define the destination_select function @@ -389,7 +390,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "".$content_calls['confirm-update']."
\n"; + echo "".$text['confirm-update']."
\n"; echo "
\n"; require_once "includes/footer.php"; return; @@ -496,21 +497,21 @@ 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"; 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"; @@ -743,7 +744,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
\n"; - echo " ".$content_calls['title']."\n"; + echo " ".$text['title']."\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; - echo " ".$content_calls['description']." $extension.

\n"; + echo " ".$text['description']." $extension.

\n"; echo "
\n"; - echo " ".$content_calls['label-callforward'].":\n"; + echo " ".$text['label-call-forward'].":\n"; echo "\n"; $on_click = "document.getElementById('follow_me_enabled').checked=true;"; @@ -518,16 +519,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $on_click .= "document.getElementById('dnd_enabled').checked=false;"; $on_click .= "document.getElementById('dnd_disabled').checked=true;"; if ($call_forward_enabled == "true") { - echo " ".$content_calls['label-enabled']." \n"; + echo " ".$text['label-enabled']." \n"; } else { - echo " ".$content_calls['label-enable']." \n"; + echo " ".$text['label-enable']." \n"; } if ($call_forward_enabled == "false" || $call_forward_enabled == "") { - echo " ".$content_calls['label-disabled']." \n"; + echo " ".$text['label-disabled']." \n"; } else { - echo " ".$content_calls['label-disable']." \n"; + echo " ".$text['label-disable']." \n"; } unset($on_click); echo "
\n"; @@ -538,7 +539,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " ".$content_calls['label-number'].":\n"; + echo " ".$text['label-number'].":\n"; echo "\n"; echo " \n"; @@ -555,7 +556,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " ".$content_calls['label-followme'].":\n"; + echo " ".$text['label-follow-me'].":\n"; echo "\n"; $on_click = "document.getElementById('call_forward_enabled').checked=true;"; @@ -563,16 +564,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $on_click .= "document.getElementById('dnd_enabled').checked=false;"; $on_click .= "document.getElementById('dnd_disabled').checked=true;"; if ($follow_me_enabled == "true") { - echo " ".$content_calls['label-enabled']." \n"; + echo " ".$text['label-enabled']." \n"; } else { - echo " ".$content_calls['label-enable']." \n"; + echo " ".$text['label-enable']." \n"; } if ($follow_me_enabled == "false" || $follow_me_enabled == "") { - echo " ".$content_calls['label-disabled']." \n"; + echo " ".$text['label-disabled']." \n"; } else { - echo " ".$content_calls['label-disable']." \n"; + echo " ".$text['label-disable']." \n"; } unset($on_click); echo "
\n"; @@ -582,7 +583,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " ".$content_calls['label-ring1'].":\n"; + echo " ".$text['label-ring-1'].":\n"; echo "\n"; echo " \n"; @@ -595,7 +596,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " ".$content_calls['label-ring2'].":\n"; + echo " ".$text['label-ring-2'].":\n"; echo "\n"; echo " \n"; @@ -608,7 +609,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " ".$content_calls['label-ring3'].":\n"; + echo " ".$text['label-ring-3'].":\n"; echo "\n"; echo " \n"; @@ -621,7 +622,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " ".$content_calls['label-ring4'].":\n"; + echo " ".$text['label-ring-4'].":\n"; echo "\n"; echo " \n"; @@ -634,7 +635,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " ".$content_calls['label-ring5'].":\n"; + echo " ".$text['label-ring-5'].":\n"; echo "\n"; echo " \n"; @@ -647,7 +648,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; - echo " ".$content_calls['label-ringorder'].":\n"; + echo " ".$text['label-ring-order'].":\n"; echo "\n"; echo "
\n"; - echo " ".$content_calls['label-prompt'].":\n"; + echo " ".$text['label-prompt'].":\n"; echo "\n"; echo "
\n"; - echo " ".$content_calls['label-dnd'].":\n"; + echo " ".$text['label-dnd'].":\n"; echo "\n"; $on_click = "document.getElementById('call_forward_enabled').checked=true;"; @@ -711,16 +712,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $on_click .= "document.getElementById('follow_me_enabled').checked=true;"; $on_click .= "document.getElementById('follow_me_disabled').checked=true;"; if ($dnd_enabled == "true") { - echo " ".$content_calls['label-enabled']." \n"; + echo " ".$text['label-enabled']." \n"; } else { - echo " ".$content_calls['label-enable']." \n"; + echo " ".$text['label-enable']." \n"; } if ($dnd_enabled == "false" || $dnd_enabled == "") { - echo " ".$content_calls['label-disabled']." \n"; + echo " ".$text['label-disabled']." \n"; } else { - echo " ".$content_calls['label-disable']." \n"; + echo " ".$text['label-disable']." \n"; } echo "
\n"; echo "
"; diff --git a/app/calls/v_calls.php b/app/calls/v_calls.php index 04397f8edf..506eab3be4 100644 --- a/app/calls/v_calls.php +++ b/app/calls/v_calls.php @@ -42,8 +42,8 @@ $order = check_str($_GET["order"]); echo "\n"; - foreach($content_calls as $key => $value) { - $content_calls[$key] = $value[$_SESSION['domain']['language']['code']]; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; } //begin the content @@ -58,9 +58,9 @@ $order = check_str($_GET["order"]); if ($is_included != "true") { echo " \n"; echo " \n"; - echo " \n"; echo " \n"; echo "
".$content_calls['title']."
\n"; - echo " ".$content_calls['description2']."\n"; - echo " ".$content_calls['description3']." \n"; + echo "
".$text['title']."
\n"; + echo " ".$text['description2']."\n"; + echo " ".$text['description-3']." \n"; echo "
\n"; @@ -143,9 +143,9 @@ $order = check_str($_GET["order"]); echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; if ($result_count > 0) { @@ -154,15 +154,15 @@ $order = check_str($_GET["order"]); echo " \n"; echo " \n"; echo " \n";
".$content_calls['table-extension']."".$content_calls['table-tools']."".$content_calls['table-description']."".$text['table-extension']."".$text['table-tools']."".$text['table-description']."
".$row['extension']."\n"; if (permission_exists('call_forward')) { - echo " ".$content_calls['label-callforward']." \n"; + echo " ".$text['label-call-forward']." \n"; echo "   \n"; } if (permission_exists('follow_me')) { - echo " ".$content_calls['label-followme']." \n"; + echo " ".$text['label-follow-me']." \n"; echo "   \n"; } if (permission_exists('do_not_disturb')) { - echo " ".$content_calls['label-dnd']." \n"; + echo " ".$text['label-dnd']." \n"; } echo " ".$row['description']."