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['title']."\n"; + echo " ".$text['title']."\n"; echo " | \n"; echo "\n"; - echo " \n"; + echo " \n"; echo " | \n"; echo "
| \n";
- echo " ".$content_calls['description']." $extension. \n"; + echo " ".$text['description']." $extension. \n"; echo " | \n";
echo "|
| \n"; - echo " ".$content_calls['label-callforward'].":\n"; + echo " ".$text['label-call-forward'].":\n"; echo " | \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"; 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"; 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"; 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"; 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"; 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"; 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"; 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['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";
echo "
| ".$content_calls['table-extension']." | \n"; - echo "".$content_calls['table-tools']." | \n"; - echo "".$content_calls['table-description']." | \n"; + echo "".$text['table-extension']." | \n"; + echo "".$text['table-tools']." | \n"; + echo "".$text['table-description']." | \n"; echo "".$row['extension']." | \n"; echo "\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 " | \n"; echo "".$row['description']." | \n";
|---|