more work in translation to portuguese from Portugal (pt-pt)

This commit is contained in:
Nuno Miguel Reis
2012-10-06 18:01:45 +00:00
parent 42db314c54
commit ba56a2ab8a
10 changed files with 362 additions and 162 deletions
+69
View File
@@ -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 ';
?>
@@ -51,16 +51,16 @@ if (permission_exists('extensions_active_assigned_view')) {
else {
echo "<th>".$content_calls_active['label-status']."</th>\n";
}
echo "<th>Time</th>\n";
echo "<th>".$content_calls_active['label-time']."</th>\n";
//echo "<th>Direction</th>\n";
//echo "<th>Profile</th>\n";
echo "<th>CID Name</th>\n";
echo "<th>CID Number</th>\n";
echo "<th>Dest</th>\n";
echo "<th>Application</th>\n";
echo "<th>Secure</th>\n";
echo "<th>Name</th>\n";
echo "<th>Options</th>\n";
echo "<th>".$content_calls_active['label-cidname']."</th>\n";
echo "<th>".$content_calls_active['label-cidnum']."</th>\n";
echo "<th>".$content_calls_active['label-dest']."</th>\n";
echo "<th>".$content_calls_active['label-app']."</th>\n";
echo "<th>".$content_calls_active['label-secure']."</th>\n";
echo "<th>".$content_calls_active['label-name']."</th>\n";
echo "<th>".$content_calls_active['label-opt']."</th>\n";
echo "</tr>\n";
foreach ($_SESSION['extension_array'] as $row) {
$domain_uuid = $row['domain_uuid'];
@@ -161,20 +161,20 @@ if (permission_exists('extensions_active_assigned_view')) {
echo "</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
//transfer
echo " <a href='javascript:void(0);' style='color: #444444;' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>Transfer To</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">transfer</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>".$content_calls_active['label-transfer']."</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']."</a>&nbsp;\n";
//park
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">park</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$content_calls_active['label-park']."</a>&nbsp;\n";
//hangup
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('Do you really want to hangup this call?');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">hangup</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$content_calls_active['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$content_calls_active['label-hangup']."</a>&nbsp;\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 " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">stop record</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$content_calls_active['label-stop']."</a>&nbsp;\n";
}
else {
//start
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">start record</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$content_calls_active['label-start']."</a>&nbsp;\n";
}
echo " &nbsp;";
echo "</td>\n";
@@ -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 = "<div align='center'>Connection to Event Socket failed.<br /></div>";
$msg = "<div align='center'>".$content_calls_active['confirm-socket']."<br /></div>";
echo "<div align='center'>\n";
echo "<table width='40%'>\n";
echo "<tr>\n";
echo "<th align='left'>Message</th>\n";
echo "<th align='left'>".$content_calls_active['label-message']."</th>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='row_style1'><strong>$msg</strong></td>\n";
@@ -325,27 +330,27 @@ else {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th width='50px;'>Ext</th>\n";
echo "<th width='50px;'>".$content_calls_active['label-ext']."</th>\n";
if ($_SESSION['user_status_display'] == "false") {
//hide the user_status when it is set to false
}
else {
echo "<th>Status</th>\n";
echo "<th>".$content_calls_active['label-status']."</th>\n";
}
echo "<th>Time</th>\n";
echo "<th>".$content_calls_active['label-time']."</th>\n";
if (if_group("admin") || if_group("superadmin")) {
if (strlen(($_GET['rows'])) == 0) {
echo "<th>CID Name</th>\n";
echo "<th>CID Number</th>\n";
echo "<th>Dest</th>\n";
echo "<th>App</th>\n";
echo "<th>Secure</th>\n";
echo "<th>".$content_calls_active['label-cidname']."</th>\n";
echo "<th>".$content_calls_active['label-cidnum']."</th>\n";
echo "<th>".$content_calls_active['label-dest']."</th>\n";
echo "<th>".$content_calls_active['label-app']."</th>\n";
echo "<th>".$content_calls_active['label-secure']."</th>\n";
}
}
echo "<th>Name</th>\n";
echo "<th>".$content_calls_active['label-name']."</th>\n";
if (if_group("admin") || if_group("superadmin")) {
if (strlen(($_GET['rows'])) == 0) {
echo "<th>Options</th>\n";
echo "<th>".$content_calls_active['label-opt']."</th>\n";
}
}
echo "</tr>\n";
@@ -457,20 +462,20 @@ else {
if ($found_extension) {
echo "<td valign='top' class='".$row_style[$c]."' $style_alternate>\n";
//transfer
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">transfer</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']."</a>&nbsp;\n";
//park
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">park</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$content_calls_active['label-park']."</a>&nbsp;\n";
//hangup
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('Do you really want to hangup this call?');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">hangup</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"confirm_response = confirm('".$content_calls_active['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$content_calls_active['label-hangup']."</a>&nbsp;\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 " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">stop record</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_extensions_&name='+escape('$cid_num'));\">".$content_calls_active['label-stop']."</a>&nbsp;\n";
}
else {
//start
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">start record</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_extensions_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_extensions_');\">".$content_calls_active['label-start']."</a>&nbsp;\n";
}
echo " &nbsp;";
echo "</td>\n";
@@ -493,27 +498,27 @@ else {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>Ext</th>\n";
echo "<th>".$content_calls_active['label-ext']."</th>\n";
if ($_SESSION['user_status_display'] == "false") {
//hide the user_status when it is set to false
}
else {
echo "<th>Status</th>\n";
echo "<th>".$content_calls_active['label-status']."</th>\n";
}
echo "<th>Time</th>\n";
echo "<th>".$content_calls_active['label-time']."</th>\n";
if (if_group("admin") || if_group("superadmin")) {
if ($_GET['rows'] == 0) {
echo "<th>CID Name</th>\n";
echo "<th>CID Number</th>\n";
echo "<th>Dest</th>\n";
echo "<th>App</th>\n";
echo "<th>Secure</th>\n";
echo "<th>".$content_calls_active['label-cidname']."</th>\n";
echo "<th>".$content_calls_active['label-cidnum']."</th>\n";
echo "<th>".$content_calls_active['label-dest']."</th>\n";
echo "<th>".$content_calls_active['label-app']."</th>\n";
echo "<th>".$content_calls_active['label-secure']."</th>\n";
}
}
echo "<th>Name</th>\n";
echo "<th>".$content_calls_active['label-name']."</th>\n";
if (if_group("admin") || if_group("superadmin")) {
if ($_GET['rows'] == 0) {
echo "<th>Options</th>\n";
echo "<th>".$content_calls_active['label-opt']."</th>\n";
}
}
echo "</tr>\n";
@@ -528,10 +533,10 @@ else {
//valet park
echo "<table width='100%' border='0' cellpadding='5' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th valign='top'>Park Extension</th>\n";
echo "<th valign='top'>Time</th>\n";
echo "<th valign='top'>CID Name</th>\n";
echo "<th valign='top'>CID Number</th>\n";
echo "<th valign='top'>".$content_calls_active['label-parkext']."</th>\n";
echo "<th valign='top'>".$content_calls_active['label-time']."</th>\n";
echo "<th valign='top'>".$content_calls_active['label-cidname']."</th>\n";
echo "<th valign='top'>".$content_calls_active['label-cidnum']."</th>\n";
echo "</tr>\n";
foreach ($valet_array as $row) {
if (strlen($row['extension']) > 0) {
+22 -17
View File
@@ -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 = "<div align='center'>Connection to Event Socket failed.<br /></div>";
$msg = "<div align='center'>".$content_calls_active['confirm-socket']."<br /></div>";
echo "<div align='center'>\n";
echo "<table width='40%'>\n";
echo "<tr>\n";
echo "<th align='left'>Message</th>\n";
echo "<th align='left'>".$content_calls_active['label-message']."</th>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='row_style1'><strong>$msg</strong></td>\n";
@@ -74,25 +79,25 @@ else {
//echo "<th>ID</th>\n";
//echo "<th>UUID</th>\n";
//echo "<th>Dir</th>\n";
echo "<th>Profile</th>\n";
echo "<th>Created</th>\n";
echo "<th>".$content_calls_active['label-profile']."</th>\n";
echo "<th>".$content_calls_active['label-created']."</th>\n";
//echo "<th>Created Epoch</th>\n";
//echo "<th>Name</th>\n";
echo "<th>Number</th>\n";
echo "<th>".$content_calls_active['label-num']."</th>\n";
//echo "<th>State</th>\n";
echo "<th>CID Name</th>\n";
echo "<th>CID Number</th>\n";
echo "<th>".$content_calls_active['label-cidname']."</th>\n";
echo "<th>".$content_calls_active['label-cidnum']."</th>\n";
//echo "<th>IP Addr</th>\n";
echo "<th>Dest</th>\n";
echo "<th>Application</th>\n";
echo "<th>".$content_calls_active['label-dest']."</th>\n";
echo "<th>".$content_calls_active['label-app']."</th>\n";
//echo "<th>Dialplan</th>\n";
//echo "<th>Context</th>\n";
echo "<th>Read / Write Codec</th>\n";
echo "<th>".$content_calls_active['label-codec']."</th>\n";
//echo "<th>Read Rate</th>\n";
//echo "<th>Write Codec</th>\n";
//echo "<th>Write Rate</th>\n";
echo "<th>Secure</th>\n";
echo "<th>Options</th>\n";
echo "<th>".$content_calls_active['label-secure']."</th>\n";
echo "<th>".$content_calls_active['label-opt']."</th>\n";
echo "</tr>\n";
foreach ($result_array as $row) {
@@ -143,22 +148,22 @@ else {
echo "<td valign='top' class='".$row_style[$c]."'>$secure &nbsp;</td>\n";
echo "<td valign='top' class='".$row_style[$c]."' style='text-align:center;'>\n";
//transfer
echo " <a href='javascript:void(0);' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>Transfer To</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">xfer</a>&nbsp;\n";
echo " <a href='javascript:void(0);' onMouseover=\"document.getElementById('form_label').innerHTML='<strong>".$content_calls_active['label-transfer']."</strong>';\" onclick=\"send_cmd('v_calls_exec.php?cmd='+get_transfer_cmd(escape('$uuid')));\">".$content_calls_active['label-transf']."</a>&nbsp;\n";
//park
echo " <a href='javascript:void(0);' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">park</a>&nbsp;\n";
echo " <a href='javascript:void(0);' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_park_cmd(escape('$uuid')));\">".$content_calls_active['label-park']."</a>&nbsp;\n";
//hangup
echo " <a href='javascript:void(0);' onclick=\"confirm_response = confirm('Do you really want to hangup this call?');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">hangup</a>&nbsp;\n";
echo " <a href='javascript:void(0);' onclick=\"confirm_response = confirm('".$content_calls_active['confirm-hangup']."');if (confirm_response){send_cmd('v_calls_exec.php?cmd=uuid_kill%20'+(escape('$uuid')));}\">".$content_calls_active['label-hangup']."</a>&nbsp;\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 " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_calls_&name='+escape('$cid_num'));\">stop rec</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=stop&prefix=active_calls_&name='+escape('$cid_num'));\">".$content_calls_active['label-stop']."</a>&nbsp;\n";
}
else {
//start
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_calls_');\">rec</a>&nbsp;\n";
echo " <a href='javascript:void(0);' style='color: #444444;' onclick=\"send_cmd('v_calls_exec.php?cmd='+get_record_cmd(escape('$uuid'), 'active_calls_', escape('$cid_num'))+'&uuid='+escape('$uuid')+'&action=record&action2=start&prefix=active_calls_');\">".$content_calls_active['label-start']."</a>&nbsp;\n";
}
echo " &nbsp;";
echo "</td>\n";