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
+90
View File
@@ -0,0 +1,90 @@
<?php
$content_calls['title']['en-us'] = 'Calls';
$content_calls['title']['pt-pt'] = 'Chamadas';
$content_calls['description']['en-us'] = 'Directs incoming calls for extension:';
$content_calls['description']['pt-pt'] = 'Direciona as chamadas recebidas para a extensão:';
$content_calls['description2']['en-us'] = 'Use the links to configure call forward follow me, or do no disturb.';
$content_calls['description2']['pt-pt'] = 'Utilizar os links para definir as funcinalidades de encaminhamento de chamada, segue-me, ou não perturbar.';
$content_calls['description3']['en-us'] = 'The following list the extensions that have been assigned to this user account.';
$content_calls['description3']['pt-pt'] = 'A tabela a seguir lista as extensões que foram atribuídas a esta conta de utilizador.';
$content_calls['lable-callforward']['en-us'] = 'Call Forward';
$content_calls['lable-callforward']['pt-pt'] = 'Encaminhamento de Chamada';
$content_calls['lable-enabled']['en-us'] = 'Enabled';
$content_calls['lable-enabled']['pt-pt'] = 'Activo';
$content_calls['lable-enable']['en-us'] = 'Enable';
$content_calls['lable-enable']['pt-pt'] = 'Activar';
$content_calls['lable-disabled']['en-us'] = 'Disabled';
$content_calls['lable-disabled']['pt-pt'] = 'Desactivo';
$content_calls['lable-disable']['en-us'] = 'Disabled';
$content_calls['lable-disable']['pt-pt'] = 'Desactivar';
$content_calls['lable-number']['en-us'] = 'Number';
$content_calls['lable-number']['pt-pt'] = 'Numero';
$content_calls['lable-followme']['en-us'] = 'Follow Me';
$content_calls['lable-followme']['pt-pt'] = 'Segue-me';
$content_calls['lable-ring1']['en-us'] = 'Ring 1st Number';
$content_calls['lable-ring1']['pt-pt'] = '1º Numero a Tocar';
$content_calls['lable-ring2']['en-us'] = 'Ring 2st Number';
$content_calls['lable-ring2']['pt-pt'] = '2º Numero a Tocar';
$content_calls['lable-ring3']['en-us'] = 'Ring 3st Number';
$content_calls['lable-ring3']['pt-pt'] = '3º Numero a Tocar';
$content_calls['lable-ring4']['en-us'] = 'Ring 4st Number';
$content_calls['lable-ring4']['pt-pt'] = '4º Numero a Tocar';
$content_calls['lable-ring5']['en-us'] = 'Ring 5st Number';
$content_calls['lable-ring5']['pt-pt'] = '5º Numero a Tocar';
$content_calls['lable-ringorder']['en-us'] = 'Ring Order';
$content_calls['lable-ringorder']['pt-pt'] = 'Ordem de chamada';
$content_calls['check-sequence']['en-us'] = 'sequence';
$content_calls['ckeck-sequence']['pt-pt'] = 'sequêncial';
$content_calls['check-simultaneous']['en-us'] = 'simultaneous';
$content_calls['ckeck-simultaneous']['pt-pt'] = 'simultâneo';
$content_calls['lable-prompt']['en-us'] = 'Prompt to accept the call';
$content_calls['lable-prompt']['pt-pt'] = 'Perguntar para aceitar a chamada';
$content_calls['check-true']['en-us'] = 'true';
$content_calls['ckeck-true']['pt-pt'] = 'verdadeiro';
$content_calls['check-false']['en-us'] = 'false';
$content_calls['ckeck-false']['pt-pt'] = 'falso';
$content_calls['lable-dnd']['en-us'] = 'Do Not Disturb';
$content_calls['lable-dnd']['pt-pt'] = 'Não Perturbar';
$content_calls['button-back']['en-us'] = 'Back';
$content_calls['button-back']['pt-pt'] = 'Voltar';
$content_calls['button-save']['en-us'] = 'Save';
$content_calls['button-save']['pt-pt'] = 'Guardar';
$content_calls['confirm-update']['en-us'] = 'Update Complete';
$content_calls['confirm-update']['pt-pt'] = 'Actualização Completa';
$content_calls['table-extension']['en-us'] = 'Extension';
$content_calls['table-extension']['pt-pt'] = 'Extensão';
$content_calls['table-tools']['en-us'] = 'Tools';
$content_calls['table-tools']['pt-pt'] = 'Ferramentas';
$content_calls['table-description']['en-us'] = 'Description';
$content_calls['table-description']['pt-pt'] = 'Descrição';
?>
+33 -28
View File
@@ -26,6 +26,7 @@
require_once "root.php";
require_once "includes/require.php";
require_once "includes/checkauth.php";
require_once "app_languages.php";
if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
//access granted
}
@@ -33,6 +34,10 @@ else {
echo "access denied";
exit;
}
foreach($content_calls as $key => $value) {
$content_calls[$key] = $value[$_SESSION['domain']['language']['code']];
}
//define the destination_select function
function destination_select($select_name, $select_value, $select_default) {
@@ -384,7 +389,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"3;url=".PROJECT_PATH."/app/calls/v_calls.php\">\n";
echo "<div align='center'>\n";
echo "Update Complete<br />\n";
echo "".$content_calls['confirm-update']."<br />\n";
echo "</div>\n";
require_once "includes/footer.php";
return;
@@ -491,21 +496,21 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap>\n";
echo " <b>Calls</b>\n";
echo " <b>".$content_calls['title']."</b>\n";
echo "</td>\n";
echo "<td width='70%' align='right'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_calls.php'\" value='Back'>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_calls.php'\" value='".$content_calls['button-back']."'>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='left' colspan='2'>\n";
echo " Directs incoming calls for extension $extension.<br /><br />\n";
echo " ".$content_calls['description']." $extension.<br /><br />\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " <strong>Call Forward:</strong>\n";
echo " <strong>".$content_calls['lable-callforward'].":</strong>\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$on_click = "document.getElementById('follow_me_enabled').checked=true;";
@@ -513,16 +518,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$on_click .= "document.getElementById('dnd_enabled').checked=false;";
$on_click .= "document.getElementById('dnd_disabled').checked=true;";
if ($call_forward_enabled == "true") {
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' checked='checked'/> Enabled \n";
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' checked='checked'/> ".$content_calls['lable-enabled']." \n";
}
else {
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' /> Enable \n";
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' /> ".$content_calls['lable-enable']." \n";
}
if ($call_forward_enabled == "false" || $call_forward_enabled == "") {
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' checked='checked' /> Disabled \n";
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' checked='checked' /> ".$content_calls['lable-disabled']." \n";
}
else {
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' /> Disable \n";
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' /> ".$content_calls['lable-disable']." \n";
}
unset($on_click);
echo "<br />\n";
@@ -533,7 +538,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Number:\n";
echo " ".$content_calls['lable-number'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='call_forward_number' maxlength='255' value=\"$call_forward_number\">\n";
@@ -550,7 +555,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " <strong>Follow Me:</strong>\n";
echo " <strong>".$content_calls['lable-followme'].":</strong>\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$on_click = "document.getElementById('call_forward_enabled').checked=true;";
@@ -558,16 +563,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$on_click .= "document.getElementById('dnd_enabled').checked=false;";
$on_click .= "document.getElementById('dnd_disabled').checked=true;";
if ($follow_me_enabled == "true") {
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" checked='checked'/> Enabled \n";
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" checked='checked'/> ".$content_calls['lable-enabled']." \n";
}
else {
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" /> Enable \n";
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" /> ".$content_calls['lable-enable']." \n";
}
if ($follow_me_enabled == "false" || $follow_me_enabled == "") {
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" checked='checked' /> Disabled \n";
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" checked='checked' /> ".$content_calls['lable-disabled']." \n";
}
else {
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" /> Disable \n";
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" /> ".$content_calls['lable-disable']." \n";
}
unset($on_click);
echo "<br />\n";
@@ -577,7 +582,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 1st Number:\n";
echo " ".$content_calls['lable-ring1'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_1' maxlength='255' value=\"$destination_data_1\">\n";
@@ -590,7 +595,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 2nd Number:\n";
echo " ".$content_calls['lable-ring2'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_2' maxlength='255' value=\"$destination_data_2\">\n";
@@ -603,7 +608,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 3rd Number:\n";
echo " ".$content_calls['lable-ring3'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_3' maxlength='255' value=\"$destination_data_3\">\n";
@@ -616,7 +621,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 4th Number:\n";
echo " ".$content_calls['lable-ring4'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_4' maxlength='255' value=\"$destination_data_4\">\n";
@@ -629,7 +634,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring 5th Number:\n";
echo " ".$content_calls['lable-ring5'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='destination_data_5' maxlength='255' value=\"$destination_data_5\">\n";
@@ -642,7 +647,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Ring Order:\n";
echo " ".$content_calls['lable-ringorder'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "<select class='formfld' name='follow_me_type'>\n";
@@ -667,7 +672,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " Prompt to accept the call:\n";
echo " ".$content_calls['lable-prompt'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo "<select class='formfld' name='hunt_group_call_prompt'>\n";
@@ -698,7 +703,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
echo " <strong>Do Not Disturb:</strong>\n";
echo " <strong>".$content_calls['lable-dnd'].":</strong>\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
$on_click = "document.getElementById('call_forward_enabled').checked=true;";
@@ -706,16 +711,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$on_click .= "document.getElementById('follow_me_enabled').checked=true;";
$on_click .= "document.getElementById('follow_me_disabled').checked=true;";
if ($dnd_enabled == "true") {
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\" checked='checked'/> Enabled \n";
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\" checked='checked'/> ".$content_calls['lable-enabled']." \n";
}
else {
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\"/> Enable \n";
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\"/> ".$content_calls['lable-enable']." \n";
}
if ($dnd_enabled == "false" || $dnd_enabled == "") {
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" checked='checked' /> Disabled \n";
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" checked='checked' /> ".$content_calls['lable-disabled']." \n";
}
else {
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" /> Disable \n";
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" /> ".$content_calls['lable-disable']." \n";
}
echo " <br />\n";
echo "</td>\n";
@@ -738,7 +743,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update") {
echo " <input type='hidden' name='id' value='$extension_uuid'>\n";
}
echo " <input type='submit' name='submit' class='btn' value='Save'>\n";
echo " <input type='submit' name='submit' class='btn' value='".$content_calls['button-save']."'>\n";
echo " </td>\n";
echo " </tr>";
echo "</table>";
+15 -10
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('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
//access granted
}
@@ -37,7 +38,11 @@ require_once "includes/header.php";
require_once "includes/paging.php";
$order_by = $_GET["order_by"];
$order = $_GET["order"];
$order = $_GET["order"];
foreach($content_calls as $key => $value) {
$content_calls[$key] = $value[$_SESSION['domain']['language']['code']];
}
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
@@ -48,9 +53,9 @@ $order = $_GET["order"];
if ($is_included != "true") {
echo " <table width=\"100%\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align='left'><b>Calls</b><br>\n";
echo " Use the links to configure call forward follow me, or do no disturb.\n";
echo " The following list the extensions that have been assigned to this user account. \n";
echo " <td align='left'><b>".$content_calls['title']."</b><br>\n";
echo " ".$content_calls['description2']."\n";
echo " ".$content_calls['description3']." \n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
@@ -133,9 +138,9 @@ $order = $_GET["order"];
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th>Extension</th>\n";
echo "<th>Tools</th>\n";
echo "<th>Description</th>\n";
echo "<th>".$content_calls['table-extension']."</th>\n";
echo "<th>".$content_calls['table-tools']."</th>\n";
echo "<th>".$content_calls['table-description']."</th>\n";
echo "</tr>\n";
if ($result_count > 0) {
@@ -144,15 +149,15 @@ $order = $_GET["order"];
echo " <td valign='top' class='".$row_style[$c]."'>".$row['extension']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>\n";
if (permission_exists('call_forward')) {
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row['extension_uuid']."&a=call_forward' alt='Call Forward'>Call Forward</a> \n";
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=call_forward' alt='Call Forward'>".$content_calls['lable-callforward']."</a> \n";
echo " &nbsp;&nbsp;\n";
}
if (permission_exists('follow_me')) {
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row['extension_uuid']."&a=follow_me' alt='Follow Me'>Follow Me</a> \n";
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=follow_me' alt='Follow Me'>".$content_calls['lable-followme']."</a> \n";
echo " &nbsp;&nbsp;\n";
}
if (permission_exists('do_not_disturb')) {
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row['extension_uuid']."&a=do_not_disturb' alt='Do Not Disturb'>Do Not Disturb</a> \n";
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=do_not_disturb' alt='Do Not Disturb'>".$content_calls['lable-dnd']."</a> \n";
}
echo " </td>\n";
echo " <td valign='top' class='row_stylebg' width='40%'>".$row['description']."&nbsp;</td>\n";