diff --git a/app/calls_active/app_languages.php b/app/calls_active/app_languages.php index 04a0829c35..ea2444233f 100644 --- a/app/calls_active/app_languages.php +++ b/app/calls_active/app_languages.php @@ -34,5 +34,74 @@ $content_calls_active['check-donotdisturbstatus']['en-us'] = 'Do Not Disturb'; $content_calls_active['check-donotdisturbstatus']['pt-pt'] = 'Não Perturbar'; + + //v_calls_active_assigned_extensions_inc + $content_calls_active['label-time']['en-us'] = 'Time'; + $content_calls_active['label-time']['pt-pt'] = 'Tempo'; + + $content_calls_active['label-cidname']['en-us'] = 'CID Name'; + $content_calls_active['label-cidname']['pt-pt'] = 'Nome CID'; + + $content_calls_active['label-cidnum']['en-us'] = 'CID Number'; + $content_calls_active['label-cidnum']['pt-pt'] = 'Numero CID'; + + $content_calls_active['label-dest']['en-us'] = 'Dest'; + $content_calls_active['label-dest']['pt-pt'] = 'Destino'; + + $content_calls_active['label-app']['en-us'] = 'Application'; + $content_calls_active['label-app']['pt-pt'] = 'Aplicação'; + + $content_calls_active['label-secure']['en-us'] = 'Secure'; + $content_calls_active['label-secure']['pt-pt'] = 'Seguro'; + + $content_calls_active['label-name']['en-us'] = 'Name'; + $content_calls_active['label-name']['pt-pt'] = 'Nome'; + + $content_calls_active['label-opt']['en-us'] = 'Options'; + $content_calls_active['label-opt']['pt-pt'] = 'Opções'; + + $content_calls_active['label-transf']['en-us'] = 'Transfer'; + $content_calls_active['label-transf']['pt-pt'] = 'Transferir'; + + $content_calls_active['label-park']['en-us'] = 'park'; + $content_calls_active['label-park']['pt-pt'] = 'parquear'; + + $content_calls_active['confirm-hangup']['en-us'] = 'Do you really want to hangup this call?'; + $content_calls_active['confirm-hangup']['pt-pt'] = 'Quer realmente terminar esta chamada?'; + + $content_calls_active['label-hangup']['en-us'] = 'hangup'; + $content_calls_active['label-hangup']['pt-pt'] = 'terminar'; + + $content_calls_active['label-stop']['en-us'] = 'stop record'; + $content_calls_active['label-stop']['pt-pt'] = 'parar de gravar'; + + $content_calls_active['label-start']['en-us'] = 'start record'; + $content_calls_active['label-start']['pt-pt'] = 'iniciar a gravação'; + + + //v_calls_active_extensions_inc + $content_calls_active['confirm-socket']['en-us'] = 'Connection to Event Socket failed.'; + $content_calls_active['confirm-socket']['pt-pt'] = 'Conexão com socket falhou.'; + + $content_calls_active['label-message']['en-us'] = 'Message'; + $content_calls_active['label-message']['pt-pt'] = 'Mensagem'; + + $content_calls_active['label-ext']['en-us'] = 'Ext'; + $content_calls_active['label-ext']['pt-pt'] = 'Extensão'; + + $content_calls_active['label-parkext']['en-us'] = 'Park'; + $content_calls_active['label-parkext']['pt-pt'] = 'Parquear Extensão'; + + $content_calls_active['label-profile']['en-us'] = 'Profile'; + $content_calls_active['label-profile']['pt-pt'] = 'Perfil'; + + $content_calls_active['label-created']['en-us'] = 'Created'; + $content_calls_active['label-created']['pt-pt'] = 'Criado'; + + $content_calls_active['label-num']['en-us'] = 'Number'; + $content_calls_active['label-num']['pt-pt'] = 'Numero'; + + $content_calls_active['label-codec']['en-us'] = 'Read / Write Codec'; + $content_calls_active['label-codec']['pt-pt'] = 'Codec de Leitura / Escrita '; ?> diff --git a/app/calls_active/v_calls_active_assigned_extensions_inc.php b/app/calls_active/v_calls_active_assigned_extensions_inc.php index 4adb9c2f03..7eea168d8e 100644 --- a/app/calls_active/v_calls_active_assigned_extensions_inc.php +++ b/app/calls_active/v_calls_active_assigned_extensions_inc.php @@ -51,16 +51,16 @@ if (permission_exists('extensions_active_assigned_view')) { else { echo "".$content_calls_active['label-status']."\n"; } - echo "Time\n"; + echo "".$content_calls_active['label-time']."\n"; //echo "Direction\n"; //echo "Profile\n"; - echo "CID Name\n"; - echo "CID Number\n"; - echo "Dest\n"; - echo "Application\n"; - echo "Secure\n"; - echo "Name\n"; - echo "Options\n"; + echo "".$content_calls_active['label-cidname']."\n"; + echo "".$content_calls_active['label-cidnum']."\n"; + echo "".$content_calls_active['label-dest']."\n"; + echo "".$content_calls_active['label-app']."\n"; + echo "".$content_calls_active['label-secure']."\n"; + echo "".$content_calls_active['label-name']."\n"; + echo "".$content_calls_active['label-opt']."\n"; echo "\n"; foreach ($_SESSION['extension_array'] as $row) { $domain_uuid = $row['domain_uuid']; @@ -161,20 +161,20 @@ if (permission_exists('extensions_active_assigned_view')) { echo "\n"; echo "\n"; //transfer - echo " Transfer To';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">transfer \n"; + echo " ".$content_calls_active['label-transfer']."';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']." \n"; //park - echo " park \n"; + echo " ".$content_calls_active['label-park']." \n"; //hangup - echo " hangup \n"; + echo " ".$content_calls_active['label-hangup']." \n"; //record start/stop $tmp_file = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/".$uuid.".wav"; if (file_exists($tmp_file)) { //stop - echo " stop record \n"; + echo " ".$content_calls_active['label-stop']." \n"; } else { //start - echo " start record \n"; + echo " ".$content_calls_active['label-start']." \n"; } echo "  "; echo "\n"; diff --git a/app/calls_active/v_calls_active_extensions_inc.php b/app/calls_active/v_calls_active_extensions_inc.php index e77c7443a0..a480c1c15a 100644 --- a/app/calls_active/v_calls_active_extensions_inc.php +++ b/app/calls_active/v_calls_active_extensions_inc.php @@ -26,6 +26,7 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; +include "app_languages.php"; if (permission_exists('extensions_active_view')) { //access granted } @@ -34,6 +35,10 @@ else { exit; } + foreach($content_calls_active as $key => $value) { + $content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //set debug to true or false $debug = false; @@ -94,11 +99,11 @@ else { //get information over event socket if (!$fp) { - $msg = "
Connection to Event Socket failed.
"; + $msg = "
".$content_calls_active['confirm-socket']."
"; echo "
\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -325,27 +330,27 @@ else { echo "
Message".$content_calls_active['label-message']."
$msg
\n"; echo "\n"; - echo "\n"; + echo "\n"; if ($_SESSION['user_status_display'] == "false") { //hide the user_status when it is set to false } else { - echo "\n"; + echo "\n"; } - echo "\n"; + echo "\n"; if (if_group("admin") || if_group("superadmin")) { if (strlen(($_GET['rows'])) == 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"; if (if_group("admin") || if_group("superadmin")) { if (strlen(($_GET['rows'])) == 0) { - echo "\n"; + echo "\n"; } } echo "\n"; @@ -457,20 +462,20 @@ else { if ($found_extension) { echo "\n"; @@ -493,27 +498,27 @@ else { echo "
Ext".$content_calls_active['label-ext']."Status".$content_calls_active['label-status']."Time".$content_calls_active['label-time']."CID NameCID NumberDestAppSecure".$content_calls_active['label-cidname']."".$content_calls_active['label-cidnum']."".$content_calls_active['label-dest']."".$content_calls_active['label-app']."".$content_calls_active['label-secure']."Name".$content_calls_active['label-name']."Options".$content_calls_active['label-opt']."
\n"; //transfer - echo " transfer \n"; + echo " ".$content_calls_active['label-transf']." \n"; //park - echo " park \n"; + echo " ".$content_calls_active['label-park']." \n"; //hangup - echo " hangup \n"; + echo " ".$content_calls_active['label-hangup']." \n"; //record start/stop $tmp_file = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d")."/".$uuid.".wav"; if (file_exists($tmp_file)) { //stop - echo " stop record \n"; + echo " ".$content_calls_active['label-stop']." \n"; } else { //start - echo " start record \n"; + echo " ".$content_calls_active['label-start']." \n"; } echo "  "; echo "
\n"; echo "\n"; - echo "\n"; + echo "\n"; if ($_SESSION['user_status_display'] == "false") { //hide the user_status when it is set to false } else { - echo "\n"; + echo "\n"; } - echo "\n"; + echo "\n"; if (if_group("admin") || if_group("superadmin")) { if ($_GET['rows'] == 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"; if (if_group("admin") || if_group("superadmin")) { if ($_GET['rows'] == 0) { - echo "\n"; + echo "\n"; } } echo "\n"; @@ -528,10 +533,10 @@ else { //valet park echo "
Ext".$content_calls_active['label-ext']."Status".$content_calls_active['label-status']."Time".$content_calls_active['label-time']."CID NameCID NumberDestAppSecure".$content_calls_active['label-cidname']."".$content_calls_active['label-cidnum']."".$content_calls_active['label-dest']."".$content_calls_active['label-app']."".$content_calls_active['label-secure']."Name".$content_calls_active['label-name']."Options".$content_calls_active['label-opt']."
\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; foreach ($valet_array as $row) { if (strlen($row['extension']) > 0) { diff --git a/app/calls_active/v_calls_active_inc.php b/app/calls_active/v_calls_active_inc.php index 65864277c0..7f0100999d 100644 --- a/app/calls_active/v_calls_active_inc.php +++ b/app/calls_active/v_calls_active_inc.php @@ -26,6 +26,7 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; +include "app_languages.php"; if (permission_exists('calls_active_view')) { //access granted } @@ -34,17 +35,21 @@ else { exit; } + foreach($content_calls_active as $key => $value) { + $content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //set the command $switch_cmd = 'show channels'; //create the event socket connection $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); //if the connnection is available then run it and return the results if (!$fp) { - $msg = "
Connection to Event Socket failed.
"; + $msg = "
".$content_calls_active['confirm-socket']."
"; echo "
\n"; echo "
Park ExtensionTimeCID NameCID Number".$content_calls_active['label-parkext']."".$content_calls_active['label-time']."".$content_calls_active['label-cidname']."".$content_calls_active['label-cidnum']."
\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -74,25 +79,25 @@ else { //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"; + echo "\n"; echo "\n"; foreach ($result_array as $row) { @@ -143,22 +148,22 @@ else { echo "\n"; echo "\n"; diff --git a/app/fax/app_languages.php b/app/fax/app_languages.php index 13c7e69e5d..d64c55d7bd 100644 --- a/app/fax/app_languages.php +++ b/app/fax/app_languages.php @@ -1,39 +1,150 @@  diff --git a/app/fax/fax.php b/app/fax/fax.php index a024ae8fcb..14b4001f8a 100644 --- a/app/fax/fax.php +++ b/app/fax/fax.php @@ -26,6 +26,7 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; +require_once "includes/Logging.php"; if (permission_exists('fax_extension_view')) { //access granted @@ -38,11 +39,8 @@ require_once "includes/header.php"; require_once "includes/paging.php"; //prepare the languages - echo "\n"; - foreach($content as $key => $value) { - $content[$key] = $value[$_SESSION['domain']['language']['code']]; + foreach($content_fax as $key => $value) { + $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; } //get the http get values and set them as php variables @@ -59,7 +57,7 @@ require_once "includes/paging.php"; echo " \n"; echo " \n"; echo " \n"; @@ -125,10 +123,10 @@ require_once "includes/paging.php"; echo "
\n"; echo "
Message".$content_calls_active['label-message']."
$msgIDUUIDDirProfileCreated".$content_calls_active['label-profile']."".$content_calls_active['label-created']."Created EpochNameNumber".$content_calls_active['label-num']."StateCID NameCID Number".$content_calls_active['label-cidname']."".$content_calls_active['label-cidnum']."IP AddrDestApplication".$content_calls_active['label-dest']."".$content_calls_active['label-app']."DialplanContextRead / Write Codec".$content_calls_active['label-codec']."Read RateWrite CodecWrite RateSecureOptions".$content_calls_active['label-secure']."".$content_calls_active['label-opt']."
$secure  \n"; //transfer - echo " Transfer To';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">xfer \n"; + echo " ".$content_calls_active['label-transfer']."';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']." \n"; //park - echo " park \n"; + echo " ".$content_calls_active['label-park']." \n"; //hangup - echo " hangup \n"; + echo " ".$content_calls_active['label-hangup']." \n"; //record start/stop $tmp_dir = $_SESSION['switch']['recordings']['dir']."/archive/".date("Y")."/".date("M")."/".date("d"); mkdir($tmp_dir, 0777, true); $tmp_file = $tmp_dir."/".$uuid.".wav"; if (file_exists($tmp_file)) { //stop - echo " stop rec \n"; + echo " ".$content_calls_active['label-stop']." \n"; } else { //start - echo " rec \n"; + echo " ".$content_calls_active['label-start']." \n"; } echo "  "; echo "
\n"; echo "

FAX
\n"; - echo " To receive a FAX setup a fax extension and then direct the incoming to it.\n"; + echo " ".$content_fax['description']."\n"; echo "

\n"; echo "
\n"; echo "\n"; - echo th_order_by('fax_extension', 'Extension', $order_by, $order); - echo th_order_by('fax_name', 'Name', $order_by, $order); - echo th_order_by('fax_email', 'Email', $order_by, $order); - echo th_order_by('fax_description', 'Description', $order_by, $order); + echo th_order_by('fax_extension', $content_fax['label-extension'], $order_by, $order); + echo th_order_by('fax_name', $content_fax['label-name'], $order_by, $order); + echo th_order_by('fax_email', $content_fax['label-email'], $order_by, $order); + echo th_order_by('fax_description', $content_fax['label-description'], $order_by, $order); echo "\n"; echo "\n"; diff --git a/app/fax/fax_copy.php b/app/fax/fax_copy.php index bbe3d6f9e2..73fa574e88 100644 --- a/app/fax/fax_copy.php +++ b/app/fax/fax_copy.php @@ -27,6 +27,7 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; require_once "includes/paging.php"; +require_once "app_languages.php"; if (permission_exists('fax_extension_add')) { //access granted } @@ -35,6 +36,10 @@ else { exit; } + foreach($content_fax as $key => $value) { + $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //set the http get/post variable(s) to a php variable if (isset($_REQUEST["id"])) { $fax_uuid = check_str($_REQUEST["id"]); @@ -105,7 +110,7 @@ else { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Copy Complete\n"; + echo "".$content_fax['confirm-copy']."\n"; echo "
\n"; require_once "includes/footer.php"; return; diff --git a/app/fax/fax_delete.php b/app/fax/fax_delete.php index d11cc78a83..d2d42e148d 100644 --- a/app/fax/fax_delete.php +++ b/app/fax/fax_delete.php @@ -26,6 +26,7 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; +require_once "app_languages.php"; if (permission_exists('fax_extension_delete')) { //access granted } @@ -34,6 +35,11 @@ else { exit; } + //prepare the languages + foreach($content_fax as $key => $value) { + $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //get the http get value and set it as a php variable if (count($_GET)>0) { $fax_uuid = check_str($_GET["id"]); @@ -86,7 +92,7 @@ else { require_once "includes/header.php"; echo "\n"; echo "
\n"; - echo "Delete Complete\n"; + echo "".$content_fax['confirm-delete']."\n"; echo "
\n"; require_once "includes/footer.php"; return; diff --git a/app/fax/fax_edit.php b/app/fax/fax_edit.php index 1d5dd40dd7..09b763f2c4 100644 --- a/app/fax/fax_edit.php +++ b/app/fax/fax_edit.php @@ -26,6 +26,7 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; +require_once "app_languages.php"; if (permission_exists('fax_extension_add') || permission_exists('fax_extension_edit') || permission_exists('fax_extension_delete')) { //access granted } @@ -34,6 +35,11 @@ else { exit; } + //prepare the languages + foreach($content_fax as $key => $value) { + $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //get the fax_extension and save it as a variable if (strlen($_REQUEST["fax_extension"]) > 0) { $fax_extension = check_str($_REQUEST["fax_extension"]); @@ -125,7 +131,7 @@ else { //redirect the browser require_once "includes/header.php"; echo "\n"; - echo "
Delete Complete
"; + echo "
".$content_fax['confirm-delete']."
"; require_once "includes/footer.php"; return; } @@ -154,7 +160,7 @@ else { //redirect the browser require_once "includes/header.php"; echo "\n"; - echo "
Add Complete
"; + echo "
".$content_fax['confirm-add']."
"; require_once "includes/footer.php"; return; } @@ -170,8 +176,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { } //check for all required data - if (strlen($fax_extension) == 0) { $msg .= "Please provide: Extension
\n"; } - if (strlen($fax_name) == 0) { $msg .= "Please provide: A file to Fax
\n"; } + if (strlen($fax_extension) == 0) { $msg .= "".$content_fax['confirm-ext']."
\n"; } + if (strlen($fax_name) == 0) { $msg .= "".$content_fax['confirm-fax']."
\n"; } //if (strlen($fax_email) == 0) { $msg .= "Please provide: Email
\n"; } //if (strlen($fax_pin_number) == 0) { $msg .= "Please provide: Pin Number
\n"; } //if (strlen($fax_caller_id_name) == 0) { $msg .= "Please provide: Caller ID Name
\n"; } @@ -448,10 +454,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "
\n"; if ($action == "update" && permission_exists('fax_extension_edit')) { - echo "Update Complete\n"; + echo "".$content_fax['confirm-update']."\n"; } if ($action == "add" && permission_exists('fax_extension_add')) { - echo "Add Complete\n"; + echo "".$content_fax['confirm-add']."\n"; } echo "
\n"; require_once "includes/footer.php"; @@ -502,109 +508,98 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "
\n"; if (permission_exists('fax_extension_add')) { echo " $v_link_label_add\n"; @@ -148,7 +146,7 @@ require_once "includes/paging.php"; echo " $v_link_label_edit\n"; } if (permission_exists('fax_extension_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } 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"; 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"; if (if_group("admin") || if_group("superadmin")) { if ($action == "update") { echo " "; - echo " "; + echo " "; echo " \n"; echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -379,7 +385,7 @@ else { echo " \n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
Fax Add".$content_fax['confirm-faxadd']."Fax Edit".$content_fax['confirm-faxedit']."\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; - echo " Name:\n"; + echo " ".$content_fax['label-name'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the name.\n"; + echo "".$content_fax['label-nameinfo']."\n"; echo "
\n"; - echo " Extension:\n"; + echo " ".$content_fax['label-extension'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the fax extension number.\n"; + echo "".$content_fax['label-extensioninfo']."\n"; echo "
\n"; - echo " Destination Number:\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo "Enter the fax destination number.\n"; - echo "
\n"; - echo " Email:\n"; + echo " ".$content_fax['label-email'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo " Enter the email address to send the FAX to.\n"; + echo " ".$content_fax['label-emailinfo']."\n"; echo "
\n"; - echo " PIN Number:\n"; + echo " ".$content_fax['label-pin'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the PIN number.\n"; + echo "".$content_fax['label-pininfo']."\n"; echo "
\n"; - echo " Caller ID Name:\n"; + echo " ".$content_fax['label-calleridname'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the Caller ID Name.\n"; + echo "".$content_fax['label-calleridnameinfo']."\n"; echo "
\n"; - echo " Caller ID Number:\n"; + echo " ".$content_fax['label-calleridnumber'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the Caller ID Number.\n"; + echo "".$content_fax['label-calleridnumberinfo']."\n"; echo "
\n"; - echo " Forward Number:\n"; + echo " ".$content_fax['label-forward'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the forward number. Used to forward the fax to a registered extension or external number.\n"; + echo "".$content_fax['label-forwardinfo']."\n"; echo "
User List:".$content_fax['label-userlist'].":"; echo " \n"; @@ -620,7 +615,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; echo " \n"; echo " \n"; } @@ -638,10 +633,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; } echo " "; - echo " \n"; + echo " \n"; unset($sql, $result); echo "
\n"; - echo " Assign the users that are can manage this fax extension.\n"; + echo " ".$content_fax['label-addinfo']."\n"; echo "
\n"; echo " "; echo " "; @@ -650,12 +645,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo " \n"; @@ -664,7 +659,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo " \n"; echo " \n"; } - echo " \n"; + echo " \n"; echo " \n"; echo " "; echo "
".$field['username']."\n"; - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; echo "
\n"; - echo " Description:\n"; + echo " ".$content_fax['label-description'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the description.\n"; + echo "".$content_fax['label-descriptioninfo']."\n"; echo "
"; @@ -676,4 +671,4 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //show the footer require_once "includes/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/fax/fax_view.php b/app/fax/fax_view.php index a615984cb6..d46e601053 100644 --- a/app/fax/fax_view.php +++ b/app/fax/fax_view.php @@ -26,6 +26,7 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; +require_once "app_languages.php"; if (permission_exists('fax_extension_view')) { //access granted } @@ -34,6 +35,11 @@ else { exit; } + //prepare the languages + foreach($content_fax as $key => $value) { + $content_fax[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //get the fax_extension and save it as a variable if (strlen($_REQUEST["fax_extension"]) > 0) { $fax_extension = check_str($_REQUEST["fax_extension"]); @@ -154,7 +160,7 @@ else { fpassthru($fd); } else { - echo "File not found."; + echo "".$content_fax['label-file'].""; } exit; } @@ -325,13 +331,13 @@ else { echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "
\n"; - echo " Fax Server\n"; + echo " ".$content_fax['title']."\n"; echo " \n"; if (permission_exists('fax_extension_add') || permission_exists('fax_extension_edit')) { - echo " \n"; + echo " \n"; } - echo " \n"; + echo " \n"; echo "
\n"; @@ -343,33 +349,33 @@ else { echo "
\n"; //pkg_add -r ghostscript8-nox11; rehash - echo " To send a fax you can upload a .tif file or if ghost script has been installed then you can also send a fax by uploading a PDF. \n"; - echo " When sending a fax you can view status of the transmission by viewing the logs from the Status tab or by watching the response from the console.\n"; + echo " ".$content_fax['description2']." \n"; + echo " ".$content_fax['description3']."\n"; echo "

\n"; echo "
\n"; - echo " Fax Number:\n"; + echo " ".$content_fax['label-faxnumber'].":\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the Number here.\n"; + echo "".$content_fax['label-faxnumberinfo']."\n"; echo "
\n"; - echo " Upload:\n"; + echo " ".$content_fax['label-upload'].":\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; - echo " Select the file to upload and send as a fax.\n"; + echo " ".$content_fax['label-uploadinfo']."\n"; echo "
"; @@ -399,7 +405,7 @@ else { echo " \n"; echo " "; if ($v_path_show) { - echo "location: "; + echo "".$content_fax['label-location'].": "; echo $dir_fax_inbox."     "; } echo " \n"; @@ -414,10 +420,10 @@ else { echo "
\n"; echo " \n"; echo " \n"; - echo " "; @@ -513,7 +519,7 @@ else { echo "
File Name (download)\n"; - echo " View\n"; - echo " Last Modified\n"; - echo " Size\n"; + echo " ".$content_fax['tabel-file']."\n"; + echo " ".$content_fax['tabel-view']."\n"; + echo " ".$content_fax['tabel-modified']."\n"; + echo " Size".$content_fax['tabel-size']."\n"; echo "
\n"; echo " \n"; if (permission_exists('fax_inbox_delete')) { - echo " \n"; + echo " \n"; } echo " \n"; echo "
$v_link_label_delete$v_link_label_delete
\n"; @@ -542,7 +548,7 @@ else { echo " \n"; echo " \n"; if ($v_path_show) { - echo "location: \n"; + echo "".$content_fax['label-location'].": \n"; echo $dir_fax_sent."     \n"; } echo " \n"; @@ -551,10 +557,10 @@ else { echo "\n"; echo " \n"; echo " \n"; - echo " "; if ($handle = opendir($dir_fax_sent)) { @@ -647,7 +653,7 @@ else { echo "
File Name (download)\n"; - echo " View\n"; - echo " Last Modified\n"; - echo " Size\n"; + echo " ".$content_fax['tabel-file']."\n"; + echo " ".$content_fax['tabel-view']."\n"; + echo " ".$content_fax['tabel-modified']."\n"; + echo " ".$content_fax['tabel-size']."\n"; echo "
\n"; echo " \n"; if (permission_exists('fax_sent_delete')) { - echo " \n"; + echo " \n"; } echo " \n"; echo "
$v_link_label_delete$v_link_label_delete
\n";