Translation to portuguese from Portugal (pt-pt) in app xml_cdr

This commit is contained in:
Nuno Miguel Reis
2012-10-06 18:02:17 +00:00
parent ba56a2ab8a
commit df9175de27
4 changed files with 93 additions and 75 deletions

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('xml_cdr_view')) {
//access granted
}
@@ -34,6 +35,11 @@ else {
exit;
}
//prepare the languages
foreach($content_cdr as $key => $value) {
$content_cdr[$key] = $value[$_SESSION['domain']['language']['code']];
}
//import xml_cdr files
require_once "v_xml_cdr_import.php";
@@ -65,12 +71,12 @@ else {
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='50%' nowrap='nowrap'><b>Call Detail Records</b></td>\n";
echo "<td align='left' width='50%' nowrap='nowrap'><b>".$content_cdr['title']."</b></td>\n";
echo "<td align='right' width='100%'>\n";
echo "<table>\n";
echo "<tr>\n";
echo "<td>\n";
echo " <input type='button' class='btn' value='Statistics' onclick=\"document.location.href='xml_cdr_statistics.php';\">\n";
echo " <input type='button' class='btn' value='".$content_cdr['label-statistics']."' onclick=\"document.location.href='xml_cdr_statistics.php';\">\n";
echo "</td>\n";
echo "<form method='post' action='xml_cdr_csv.php'>";
echo "<td>\n";
@@ -102,10 +108,10 @@ else {
echo "<tr>\n";
echo "<td align='left' colspan='2'>\n";
echo "Call Detail Records (CDRs) are detailed information on the calls. \n";
echo "The information contains source, destination, duration, and other useful call details. \n";
echo "Use the fields to filter the information for the specific call records that are desired. \n";
echo "Then view the calls in the list or download them as comma seperated file by using the 'csv' button. \n";
echo "".$content_cdr['description']." \n";
echo "".$content_cdr['description2']." \n";
echo "".$content_cdr['description3']." \n";
echo "".$content_cdr['description4']." \n";
//To do an advanced search of the call detail records click on the following advanced button.
echo "<br />\n";
@@ -123,34 +129,34 @@ else {
echo "<td width='33.3%'>\n";
echo "<table width='100%' border='0'>\n";
echo " <tr>\n";
echo " <td align='left' width='25%'>Direction:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-description'].":</td>\n";
echo " <td align='left' width='75%'>\n";
echo " <select name='direction' style='width:100%' class='formfld'>\n";
echo " <option value=''> </option>\n";
if ($direction == "inbound") {
echo " <option value='inbound' selected='selected'>inbound</option>\n";
echo " <option value='inbound' selected='selected'>".$content_cdr['label-inbound']."</option>\n";
}
else {
echo " <option value='inbound'>inbound</option>\n";
echo " <option value='inbound'>".$content_cdr['label-inbound']."</option>\n";
}
if ($direction == "outbound") {
echo " <option value='outbound' selected='selected'>outbound</option>\n";
echo " <option value='outbound' selected='selected'>".$content_cdr['label-outbound']."</option>\n";
}
else {
echo " <option value='outbound'>outbound</option>\n";
echo " <option value='outbound'>".$content_cdr['label-outbound']."</option>\n";
}
if ($direction == "local") {
echo " <option value='local' selected='selected'>local</option>\n";
echo " <option value='local' selected='selected'>".$content_cdr['label-local']."</option>\n";
}
else {
echo " <option value='local'>local</option>\n";
echo " <option value='local'>".$content_cdr['label-local']."</option>\n";
}
echo " </select>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\">CID Name:</td>\n";
echo " <td align=\"left\">".$content_cdr['label-cidname'].":</td>\n";
echo " <td align=\"left\"><input type='text' class='formfld' name='caller_id_name' style='width:100%' value='$caller_id_name'></td>\n";
echo " </tr>\n";
@@ -161,11 +167,11 @@ else {
echo "<table width='100%'>\n";
echo " <tr>\n";
echo " <td align='left' width='25%'>Source:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-source'].":</td>\n";
echo " <td align='left' width='75%'><input type='text' class='formfld' name='caller_id_number' style='width:100%' value='$caller_id_number'></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align='left' width='25%'>Destination:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-destination'].":</td>\n";
echo " <td align='left' width='75%'><input type='text' class='formfld' name='destination_number' style='width:100%' value='$destination_number'></td>\n";
echo " </tr>\n";
echo "</table>\n";
@@ -188,12 +194,12 @@ else {
//echo " </tr>";
echo " <tr>\n";
echo " <td align='left' width='25%'>Start:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-start'].":</td>\n";
echo " <td align='left' width='75%'><input type='text' class='formfld' name='start_stamp' style='width:100%' value='$start_stamp'></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align='left' width='25%'>Status:</td>\n";
echo " <td align='left' width='25%'>".$content_cdr['label-status'].":</td>\n";
echo " <td align='left' width='75%'>\n";
echo " <select name=\"hangup_cause\" style='width:100%' class='formfld'>\n";
echo " <option value='".$hangup_cause."' selected='selected'>".$hangup_cause."</option>\n";
@@ -313,16 +319,16 @@ else {
//echo th_order_by('default_language', 'Language', $order_by, $order);
//echo th_order_by('context', 'Context', $order_by, $order);
//echo th_order_by('leg', 'Leg', $order_by, $order);
echo th_order_by('caller_id_name', 'Name', $order_by, $order);
echo th_order_by('caller_id_number', 'Number', $order_by, $order);
echo th_order_by('destination_number', 'Destination', $order_by, $order);
echo th_order_by('start_stamp', 'Start', $order_by, $order);
echo th_order_by('caller_id_name', $content_cdr['label-name'], $order_by, $order);
echo th_order_by('caller_id_number', $content_cdr['label-number'], $order_by, $order);
echo th_order_by('destination_number', $content_cdr['label-destination'], $order_by, $order);
echo th_order_by('start_stamp', $content_cdr['label-start'], $order_by, $order);
//echo th_order_by('end_stamp', 'End', $order_by, $order);
echo th_order_by('duration', 'Length', $order_by, $order);
echo th_order_by('duration', $content_cdr['label-length'], $order_by, $order);
if (if_group("admin") || if_group("superadmin")) {
echo th_order_by('pdd_ms', 'PDD', $order_by, $order);
}
echo th_order_by('hangup_cause', 'Status', $order_by, $order);
echo th_order_by('hangup_cause', $content_cdr['label-status'], $order_by, $order);
echo "</tr>\n";
if ($result_count > 0) {