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
+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";