start of translation to portuguese from Portugal (pt-pt)

This commit is contained in:
Nuno Miguel Reis
2012-10-06 18:00:11 +00:00
parent 74a7f0bb7f
commit e1a3d90cfe
21 changed files with 626 additions and 147 deletions
+38
View File
@@ -0,0 +1,38 @@
<?php
//v_calls_active
$content_calls_active['title']['en-us'] = 'Active Calls';
$content_calls_active['title']['pt-pt'] = 'Chamadas Activas';
$content_calls_active['description']['en-us'] = 'Use this to monitor and interact with the active calls.';
$content_calls_active['description']['pt-pt'] = 'Utilize este menu para monitorizar e interagir com as chamadas ativas.';
//v_calls_active_extensions
$content_calls_active['title2']['en-us'] = 'Active Extensions';
$content_calls_active['title2']['pt-pt'] = 'Extensões Activas';
$content_calls_active['label-status']['en-us'] = 'Status';
$content_calls_active['label-status']['pt-pt'] = 'Estado';
$content_calls_active['label-transfer']['en-us'] = 'Transfer To';
$content_calls_active['label-transfer']['pt-pt'] = 'Transferir para';
$content_calls_active['description2']['en-us'] = 'Use this to view all extensions and monitor and interact with active calls.';
$content_calls_active['description2']['pt-pt'] = 'Utilize este menu para ver todas as extensões, monitorizar e interagir com as chamadas ativas.';
$content_calls_active['check-availablestatus']['en-us'] = 'Available';
$content_calls_active['check-availablestatus']['pt-pt'] = 'Disponível';
$content_calls_active['check-availableondemandstatus']['en-us'] = 'Available (On Demand)';
$content_calls_active['check-availableondemandstatus']['pt-pt'] = 'Disponível (A pedido)';
$content_calls_active['check-logedoutstatus']['en-us'] = 'Logged Out';
$content_calls_active['check-logedoutstatus']['pt-pt'] = 'Desligado';
$content_calls_active['check-onbreakstatus']['en-us'] = 'On Break';
$content_calls_active['check-onbreakstatus']['pt-pt'] = 'Em Pausa';
$content_calls_active['check-donotdisturbstatus']['en-us'] = 'Do Not Disturb';
$content_calls_active['check-donotdisturbstatus']['pt-pt'] = 'Não Perturbar';
?>
+7 -2
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,6 +35,10 @@ else {
exit;
}
foreach($content_calls_active as $key => $value) {
$content_calls_active[$key] = $value[$_SESSION['domain']['language']['code']];
}
$conference_name = trim($_REQUEST["c"]);
$tmp_conference_name = str_replace("_", " ", $conference_name);
@@ -110,8 +115,8 @@ echo "<div align='center'>";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align='left'><b>Active Calls</b><br>\n";
echo " Use this to monitor and interact with the active calls.\n";
echo " <td align='left'><b>".$content_calls_active['title']."</b><br>\n";
echo " ".$content_calls_active['description']."\n";
echo " </td>\n";
echo " <td align='right'>\n";
+19 -14
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('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']];
}
//http get and set variables
$event_type = $_GET['event_type']; //open_window //iframe
if ($event_type=="iframe") {
@@ -201,7 +206,7 @@ echo "<div align='center'>";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align='left' colspan='2' nowrap='nowrap'>\n";
echo " <b>Active Extensions</b><br>\n";
echo " <b>".$content_calls_active['title2']."</b><br>\n";
echo " </td>\n";
//get the user status when the page loads
@@ -228,40 +233,40 @@ else {
echo " <td class='' valign='bottom' align='right' style='width:200px' nowrap='nowrap'>\n";
//status list
echo " &nbsp;";
echo " <strong>Status</strong>&nbsp;\n";
echo " <strong>".$content_calls_active['label-status']."</strong>&nbsp;\n";
$cmd = "'v_calls_exec.php?action=user_status&data='+this.value+'";
$cmd .= "&cmd=callcenter_config+agent+set+status+".$_SESSION['username']."@".$_SESSION['domain_name']."+'+this.value";
echo " <select id='agent_status' name='agent_status' class='formfld' style='width:125px' nowrap='nowrap' onchange=\"send_cmd($cmd);\">\n";
echo " <option value=' '></option>\n";
if ($user_status == "Available") {
echo " <option value='Available' selected='selected'>Available</option>\n";
echo " <option value='Available' selected='selected'>".$content_calls_active['check-availablestatus']."</option>\n";
}
else {
echo " <option value='Available'>Available</option>\n";
echo " <option value='Available'>".$content_calls_active['check-availablestatus']."</option>\n";
}
if ($user_status == "Available (On Demand)") {
echo " <option value='Available_On_Demand' selected='selected'>Available (On Demand)</option>\n";
echo " <option value='Available_On_Demand' selected='selected'>".$content_calls_active['check-availableondemandstatus']."</option>\n";
}
else {
echo " <option value='Available_On_Demand'>Available (On Demand)</option>\n";
echo " <option value='Available_On_Demand'>".$content_calls_active['check-availableondemandstatus']."</option>\n";
}
if ($user_status == "Logged Out") {
echo " <option value='Logged_Out' selected='selected'>Logged Out</option>\n";
echo " <option value='Logged_Out' selected='selected'>".$content_calls_active['check-logedoutstatus']."</option>\n";
}
else {
echo " <option value='Logged_Out'>Logged Out</option>\n";
echo " <option value='Logged_Out'>".$content_calls_active['check-logedoutstatus']."</option>\n";
}
if ($user_status == "On Break") {
echo " <option value='On_Break' selected='selected'>On Break</option>\n";
echo " <option value='On_Break' selected='selected'>".$content_calls_active['check-onbreakstatus']."</option>\n";
}
else {
echo " <option value='On_Break'>On Break</option>\n";
echo " <option value='On_Break'>".$content_calls_active['check-onbreakstatus']."</option>\n";
}
if ($user_status == "Do Not Disturb") {
echo " <option value='Do_Not_Disturb' selected='selected'>Do Not Disturb</option>\n";
echo " <option value='Do_Not_Disturb' selected='selected'>".$content_calls_active['check-donotdisturbstatus']."</option>\n";
}
else {
echo " <option value='Do_Not_Disturb'>Do Not Disturb</option>\n";
echo " <option value='Do_Not_Disturb'>".$content_calls_active['check-donotdisturbstatus']."</option>\n";
}
echo " </select>\n";
echo " </td>\n";
@@ -269,13 +274,13 @@ else {
echo " <td align='right' nowrap='nowrap'>\n";
echo " &nbsp;";
echo " <strong>Transfer To</strong>\n";
echo " <strong>".$content_calls_active['label-transfer']."</strong>\n";
echo " <input type=\"text\" id=\"form_value\" name=\"form_value\" class='formfld' style='width:125px'/>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align='left' colspan='99'>\n";
echo " Use this to view all extensions and monitor and interact with active calls.\n";
echo " ".$content_calls_active['description2']."\n";
echo " </td>\n";
echo " </tr>\n";
echo "</table>\n";