diff --git a/app/destinations/app_languages.php b/app/destinations/app_languages.php new file mode 100644 index 0000000000..f2e25b1abf --- /dev/null +++ b/app/destinations/app_languages.php @@ -0,0 +1,116 @@ + \ No newline at end of file diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index d363e8a511..07834a8094 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -33,7 +33,16 @@ else { echo "access denied"; exit; } + +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + require_once "includes/header.php"; +$page["title"] = $text['title-destinations']; + require_once "includes/paging.php"; //get variables used to control the order @@ -49,12 +58,12 @@ require_once "includes/paging.php"; echo "
| Destinations | \n"; + echo "".$text['header-destinations']." | \n"; echo "\n"; echo " |
| \n";
- echo " Inbound destinations are the DID/DDI, DNIS or Alias for inbound calls. \n"; + echo " ".$text['description-destinations']." \n"; echo " | \n";
echo " ||
| \n"; - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; echo " | \n"; echo "||
| ".$row['destination_enabled']." | \n"; echo "".$row['destination_description']." | \n"; echo "\n"; - echo " $v_link_label_edit\n"; - echo " $v_link_label_delete\n"; + echo " $v_link_label_edit\n"; + echo " $v_link_label_delete\n"; echo " | \n"; echo "\n"; echo " | $paging_controls | \n"; echo "\n"; - echo " $v_link_label_add\n"; + echo " $v_link_label_add\n"; echo " | \n"; echo " \n"; echo "
| Destination | \n"; - echo "\n"; + if ($action == "add") { + echo " | ".$text['header-destination-add']." | \n"; + } + if ($action == "update") { + echo "".$text['header-destination-edit']." | \n"; + } + echo "\n"; echo " |
| \n";
- echo "An alias for a call destination. The destination will use the dialplan to find it its target. \n"; + echo $text['description-destinations']." \n"; echo " | \n";
echo "||||
| \n"; - echo " Type:\n"; + echo " ".$text['label-destination_type'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Select the type.\n"; + echo $text['description-destination_type']."\n"; echo " | \n";
echo "|||
| \n"; - echo " Destination:\n"; + echo " ".$text['label-destination_number'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the destination.\n"; + echo $text['description-destination_number']."\n"; echo " | \n";
echo "|||
| \n"; - echo " Caller ID Name:\n"; + echo " ".$text['label-destination_caller_id_name'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the caller id name.\n"; + echo $text['description-destination_caller_id_name']."\n"; echo " | \n";
echo "|||
| \n"; - echo " Caller ID Number:\n"; + echo " ".$text['label-destination_caller_id_number'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the caller id number.\n"; + echo $text['description-destination_caller_id_number']."\n"; echo " | \n";
echo "|||
| \n"; - echo " Context:\n"; + echo " ".$text['label-destination_context'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the context.\n"; + echo $text['description-destination_context']."\n"; echo " | \n";
echo "|||
| \n"; - echo " Fax Destination:\n"; + echo " ".$text['label-fax_uuid'].":\n"; echo " | \n"; echo "\n";
$sql = "select * from v_fax ";
@@ -311,42 +324,38 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " \n";
unset ($prep_statement, $extension);
echo " \n"; - echo " Select the fax destination to enable fax detection.\n"; + echo " ".$text['description-fax_uuid']."\n"; echo " | \n";
echo "|||
| \n"; - echo " Enabled:\n"; + echo " ".$text['label-destination_enabled'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; + echo $text['description-destination_enabled']."\n"; echo " | \n";
echo "|||
| \n"; - echo " Description:\n"; + echo " ".$text['label-destination_description'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo "Enter the description.\n"; + echo $text['description-destination_description']."\n"; echo " | \n";
echo "|||