start of translation to portuguese from Portugal (pt-pt)
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
//v_voicemail_greetings
|
||||
$contentvoicemail_greetings['title']['en-us'] = 'Voicemail Greetings';
|
||||
$contentvoicemail_greetings['title']['pt-pt'] = 'Saudações de correio de voz';
|
||||
|
||||
$contentvoicemail_greetings['description']['en-us'] = 'Select the active greeting message to play for extension:';
|
||||
$contentvoicemail_greetings['description']['pt-pt'] = 'Selecione e active mensagem de saudação para executar na extensão:';
|
||||
|
||||
$contentvoicemail_greetings['label-upload']['en-us'] = 'File to Upload';
|
||||
$contentvoicemail_greetings['label-upload']['pt-pt'] = 'Ficheiro a Carregar';
|
||||
|
||||
$contentvoicemail_greetings['table-choose']['en-us'] = 'Choose';
|
||||
$contentvoicemail_greetings['table-choose']['pt-pt'] = 'Escolher';
|
||||
|
||||
$contentvoicemail_greetings['table-name']['en-us'] = 'Name';
|
||||
$contentvoicemail_greetings['table-name']['pt-pt'] = 'Nome';
|
||||
|
||||
$contentvoicemail_greetings['table-download']['en-us'] = 'Download';
|
||||
$contentvoicemail_greetings['table-download']['pt-pt'] = 'Descarregar';
|
||||
|
||||
$contentvoicemail_greetings['table-size']['en-us'] = 'Size';
|
||||
$contentvoicemail_greetings['table-size']['pt-pt'] = 'Tamanho';
|
||||
|
||||
$contentvoicemail_greetings['table-description']['en-us'] = 'Description';
|
||||
$contentvoicemail_greetings['table-description']['pt-pt'] = 'Descrição';
|
||||
|
||||
$contentvoicemail_greetings['button-back']['en-us'] = 'Back';
|
||||
$contentvoicemail_greetings['button-back']['pt-pt'] = 'Voltar';
|
||||
|
||||
$contentvoicemail_greetings['button-save']['en-us'] = 'Save';
|
||||
$contentvoicemail_greetings['button-save']['pt-pt'] = 'Guardar';
|
||||
|
||||
|
||||
//v_voicemail_greetings_delete
|
||||
$contentvoicemail_greetings['confirm-delete2']['en-us'] = 'Delete Complete';
|
||||
$contentvoicemail_greetings['confirm-delete2']['pt-pt'] = 'Eliminação Completa';
|
||||
|
||||
|
||||
//v_voicemail_greetings_edit
|
||||
$contentvoicemail_greetings['confirm-name']['en-us'] = 'Please provide: Greeting Name (play)';
|
||||
$contentvoicemail_greetings['confirm-name']['pt-pt'] = 'Por favor, forneça: Nome da saudação (execução)';
|
||||
|
||||
$contentvoicemail_greetings['confirm-add']['en-us'] = 'Add Complete';
|
||||
$contentvoicemail_greetings['confirm-add']['pt-pt'] = 'Adição Completa';
|
||||
|
||||
$contentvoicemail_greetings['confirm-update']['en-us'] = 'Update Complete';
|
||||
$contentvoicemail_greetings['confirm-update']['pt-pt'] = 'Actualização Completa';
|
||||
|
||||
$contentvoicemail_greetings['label-add']['en-us'] = 'Add Greeting';
|
||||
$contentvoicemail_greetings['label-add']['pt-pt'] = 'Adição de Saudação';
|
||||
|
||||
$contentvoicemail_greetings['label-edit']['en-us'] = 'Edit Greeting';
|
||||
$contentvoicemail_greetings['label-edit']['pt-pt'] = 'Edição de Saudação';
|
||||
|
||||
$contentvoicemail_greetings['label-name']['en-us'] = 'Greeting Name';
|
||||
$contentvoicemail_greetings['label-name']['pt-pt'] = 'Nome da Saudação';
|
||||
|
||||
$contentvoicemail_greetings['label-nameinfo']['en-us'] = 'Greeting Name. example: greeting_x';
|
||||
$contentvoicemail_greetings['label-nameinfo']['pt-pt'] = 'Nome da Saudação. exemplo: saudação_x';
|
||||
|
||||
$contentvoicemail_greetings['label-description']['en-us'] = 'Description';
|
||||
$contentvoicemail_greetings['label-description']['pt-pt'] = 'Descrição';
|
||||
|
||||
$contentvoicemail_greetings['label-descriptioninfo']['en-us'] = 'You may enter a description here for your reference (not parsed).';
|
||||
$contentvoicemail_greetings['label-descriptioninfo']['pt-pt'] = 'Pode inserir aqui uma descrição para referência.';
|
||||
|
||||
|
||||
?>
|
||||
@@ -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('voicemail_greetings_view')) {
|
||||
//access granted
|
||||
}
|
||||
@@ -34,6 +35,10 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($contentvoicemail_greetings as $key => $value) {
|
||||
$contentvoicemail_greetings[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
require_once "includes/paging.php";
|
||||
|
||||
//set the max php execution time
|
||||
@@ -221,20 +226,20 @@ require_once "includes/paging.php";
|
||||
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' width=\"50%\">\n";
|
||||
echo " <strong>Voicemail Greetings:</strong><br>\n";
|
||||
echo " <strong>".$contentvoicemail_greetings['title'].":</strong><br>\n";
|
||||
echo " </td>";
|
||||
echo " <td width='50%' align='right'>\n";
|
||||
echo " <label for=\"file\">File to Upload:</label>\n";
|
||||
echo " <label for=\"file\">".$contentvoicemail_greetings['label-upload'].":</label>\n";
|
||||
echo " <input name=\"file\" type=\"file\" class=\"btn\" id=\"file\">\n";
|
||||
echo " <input name=\"type\" type=\"hidden\" value=\"rec\">\n";
|
||||
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"Save\">\n";
|
||||
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"".$contentvoicemail_greetings['button-save']."\">\n";
|
||||
echo " \n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"javascript:history.back();\" value='Back'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"javascript:history.back();\" value='".$contentvoicemail_greetings['button-back']."'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
echo " <tr>";
|
||||
echo " <td align='left' colspan='2'>\n";
|
||||
echo " Select the active greeting message to play for extension $user_id. <br />\n";
|
||||
echo " ".$contentvoicemail_greetings['description']." $user_id. <br />\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
@@ -310,11 +315,11 @@ require_once "includes/paging.php";
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th>Choose</th>\n";
|
||||
echo th_order_by('greeting_name', 'Name', $order_by, $order);
|
||||
echo "<th align='right'>Download</th>\n";
|
||||
echo "<th width=\"50px\" class=\"listhdr\" nowrap=\"nowrap\">Size</th>\n";
|
||||
echo th_order_by('greeting_description', 'Description', $order_by, $order);
|
||||
echo "<th>".$contentvoicemail_greetings['table-choose']."</th>\n";
|
||||
echo th_order_by('greeting_name', $contentvoicemail_greetings['table-name'], $order_by, $order);
|
||||
echo "<th align='right'>".$contentvoicemail_greetings['table-download']."</th>\n";
|
||||
echo "<th width=\"50px\" class=\"listhdr\" nowrap=\"nowrap\">".$contentvoicemail_greetings['table-size']."</th>\n";
|
||||
echo th_order_by('greeting_description', $contentvoicemail_greetings['table-description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
//if (permission_exists('voicemail_greetings_add')) {
|
||||
// echo " <a href='v_voicemail_greetings_edit.php?&user_id=".$user_id."' alt='add'>$v_link_label_add</a>\n";
|
||||
|
||||
@@ -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('voicemail_greetings_delete')) {
|
||||
//access granted
|
||||
}
|
||||
@@ -34,6 +35,10 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($contentvoicemail_greetings as $key => $value) {
|
||||
$contentvoicemail_greetings[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
if (count($_GET)>0) {
|
||||
$id = $_GET["id"];
|
||||
$user_id = $_GET["user_id"];
|
||||
@@ -76,7 +81,7 @@ if (strlen($id)>0) {
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_voicemail_greetings.php?id=$user_id\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Delete Complete\n";
|
||||
echo "".$contentvoicemail_greetings['confirm-delete2']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
|
||||
@@ -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('voicemail_greetings_add') || permission_exists('voicemail_greetings_edit')) {
|
||||
//access granted
|
||||
}
|
||||
@@ -34,6 +35,10 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($contentvoicemail_greetings as $key => $value) {
|
||||
$contentvoicemail_greetings[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//set the action as an add or an update
|
||||
if (isset($_REQUEST["id"])) {
|
||||
$action = "update";
|
||||
@@ -63,7 +68,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//check for all required data
|
||||
//if (strlen($domain_uuid) == 0) { $msg .= "Please provide: domain_uuid<br>\n"; }
|
||||
if (strlen($greeting_name) == 0) { $msg .= "Please provide: Greeting Name (play)<br>\n"; }
|
||||
if (strlen($greeting_name) == 0) { $msg .= "".$contentvoicemail_greetings['confirm-name']."<br>\n"; }
|
||||
//if (strlen($greeting_description) == 0) { $msg .= "Please provide: Description<br>\n"; }
|
||||
if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
require_once "includes/header.php";
|
||||
@@ -102,7 +107,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_voicemail_greetings.php?id=".$user_id."\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Add Complete\n";
|
||||
echo "".$contentvoicemail_greetings['confirm-add']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
@@ -143,7 +148,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_voicemail_greetings.php?id=".$user_id."\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Update Complete\n";
|
||||
echo "".$contentvoicemail_greetings['confirm-update']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
@@ -186,33 +191,33 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
echo "<tr>\n";
|
||||
if ($action == "add") {
|
||||
echo "<td align='left' width='30%' nowrap><b>Add Greeting</b></td>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$contentvoicemail_greetings['label-add']."</b></td>\n";
|
||||
}
|
||||
if ($action == "update") {
|
||||
echo "<td align='left' width='30%' nowrap><b>Edit Greeting</b></td>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$contentvoicemail_greetings['label-edit']['en-us']."</b></td>\n";
|
||||
}
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_voicemail_greetings.php?id=".$user_id."'\" value='Back'></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_voicemail_greetings.php?id=".$user_id."'\" value='".$contentvoicemail_greetings['button-back']."'></td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Greeting Name:\n";
|
||||
echo " ".$contentvoicemail_greetings['label-name'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='greeting_name' maxlength='255' value=\"$greeting_name\">\n";
|
||||
echo "<br />\n";
|
||||
echo "Greeting Name. example: greeting_x\n";
|
||||
echo "".$contentvoicemail_greetings['label-nameinfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Description:\n";
|
||||
echo " ".$contentvoicemail_greetings['label-description'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='greeting_description' maxlength='255' value=\"$greeting_description\">\n";
|
||||
echo "<br />\n";
|
||||
echo "You may enter a description here for your reference (not parsed).\n";
|
||||
echo "".$contentvoicemail_greetings['label-descriptioninfo']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo " <tr>\n";
|
||||
@@ -221,7 +226,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo " <input type='hidden' name='greeting_uuid' value='$greeting_uuid'>\n";
|
||||
}
|
||||
echo " <input type='hidden' name='user_id' value='$user_id'>\n";
|
||||
echo " <input type='submit' name='submit' class='btn' value='Save'>\n";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$contentvoicemail_greetings['button-save']."'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
|
||||
Reference in New Issue
Block a user