Changeset 12338
- Timestamp:
- 07/29/11 14:20:55 (2 years ago)
- Files:
-
- modules/branches/2.10/cdr/i18n/cdr.pot (modified) (2 diffs)
- modules/branches/2.10/cdr/i18n/sv_SE/LC_MESSAGES/cdr.mo (modified) (previous)
- modules/branches/2.10/cdr/i18n/sv_SE/LC_MESSAGES/cdr.po (modified) (4 diffs)
- modules/branches/2.10/cdr/page.cdr.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.10/cdr/i18n/cdr.pot
r12337 r12338 21 21 "Project-Id-Version: PACKAGE VERSION\n" 22 22 "Report-Msgid-Bugs-To: \n" 23 "POT-Creation-Date: 2011-07-29 1 8:38+0200\n"23 "POT-Creation-Date: 2011-07-29 19:43+0200\n" 24 24 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 25 25 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 265 265 msgid "Account" 266 266 msgstr "" 267 268 msgid "Call Detail Record - Call Graph by" 269 msgstr "" 270 271 msgid "Total Calls" 272 msgstr "" 273 274 msgid "Max Calls" 275 msgstr "" 276 277 msgid "Total Duration" 278 msgstr "" 279 280 msgid "Average Call Time" 281 msgstr "" 282 283 msgid "Go to the top of the CDR table" 284 msgstr "" 285 286 msgid "Go to the CDR Graph" 287 msgstr "" 288 289 msgid "Call Detail Record - Concurrent Calls by" 290 msgstr "" 291 292 msgid "Max Calls" 293 msgstr "" 294 295 msgid "Time" 296 msgstr "" modules/branches/2.10/cdr/i18n/sv_SE/LC_MESSAGES/cdr.po
r12337 r12338 21 21 "Project-Id-Version: cdr\n" 22 22 "Report-Msgid-Bugs-To: \n" 23 "POT-Creation-Date: 2011-07-29 1 8:38+0200\n"24 "PO-Revision-Date: 2011-07-29 15:48+0200\n"23 "POT-Creation-Date: 2011-07-29 19:43+0200\n" 24 "PO-Revision-Date: 2011-07-29 20:45+0200\n" 25 25 "Last-Translator: Mikael Carlsson <mickecamino@gmail.com>\n" 26 26 "Language-Team: LANGUAGE <LL@li.org>\n" … … 204 204 205 205 msgid "Group By" 206 msgstr "Gruppera med"206 msgstr "Gruppera enligt" 207 207 208 208 msgid "Account Information" … … 225 225 226 226 msgid "Hour of day" 227 msgstr " Timvis"227 msgstr "Per timme" 228 228 229 229 msgid "Day of week" 230 msgstr " Dagsvis"230 msgstr "Veckodag" 231 231 232 232 msgid "Day" … … 265 265 msgid "Account" 266 266 msgstr "Konto" 267 268 msgid "Call Detail Record - Call Graph by" 269 msgstr "Samtalsrapport - graf - sorterad pÃ¥" 270 271 msgid "Total Calls" 272 msgstr "Antal samtal" 273 274 msgid "Max Calls" 275 msgstr "Max samtal" 276 277 msgid "Total Duration" 278 msgstr "Total lÀngd" 279 280 msgid "Average Call Time" 281 msgstr "Genomsnittlig tid" 282 283 msgid "Go to the top of the CDR table" 284 msgstr "GÃ¥ till toppen av tabellen" 285 286 msgid "Go to the CDR Graph" 287 msgstr "GÃ¥ till grafen" 288 289 msgid "Call Detail Record - Concurrent Calls by" 290 msgstr "Samtalsrapport - samtidiga samtal sorterad pÃ¥" 291 292 msgid "Time" 293 msgstr "Tid" 294 295 msgid "Monday" 296 msgstr "MÃ¥ndag" modules/branches/2.10/cdr/page.cdr.php
r12337 r12338 470 470 //NEW GRAPHS 471 471 $group_by_field = $group; 472 // Concur entCalls472 // ConcurrentCalls 473 473 $group_by_field_php = array( '', 32, '' ); 474 474 475 475 switch ($group) { 476 476 case "accountcode": 477 $graph_col_title = 'Account Code';477 $graph_col_title = _("Account Code"); 478 478 break; 479 479 case "dst": 480 $graph_col_title = 'Destination Number';480 $graph_col_title = _("Destination Number"); 481 481 break; 482 482 case "src": 483 $graph_col_title = 'Source Number';483 $graph_col_title = _("Source Number"); 484 484 break; 485 485 case "userfield": 486 $graph_col_title = 'User Field';486 $graph_col_title = _("User Field"); 487 487 break; 488 488 case "hour": 489 489 $group_by_field_php = array( '%Y-%m-%d %H', 13, '' ); 490 490 $group_by_field = "DATE_FORMAT(calldate, '$group_by_field_php[0]')"; 491 $graph_col_title = 'Hour';491 $graph_col_title = _("Hour"); 492 492 break; 493 493 case "hour_of_day": 494 494 $group_by_field_php = array('%H',2,''); 495 495 $group_by_field = "DATE_FORMAT(calldate, '$group_by_field_php[0]')"; 496 $graph_col_title = 'Hour of day';496 $graph_col_title = _("Hour of day"); 497 497 break; 498 498 case "week": 499 499 $group_by_field_php = array('%V',2,''); 500 500 $group_by_field = "DATE_FORMAT(calldate, '$group_by_field_php[0]') "; 501 $graph_col_title = 'Week ( Sun-Sat )';501 $graph_col_title = _("Week ( Sun-Sat )"); 502 502 break; 503 503 case "month": 504 504 $group_by_field_php = array('%Y-%m',7,''); 505 505 $group_by_field = "DATE_FORMAT(calldate, '$group_by_field_php[0]')"; 506 $graph_col_title = 'Month';506 $graph_col_title = _("Month"); 507 507 break; 508 508 case "day_of_week": 509 509 $group_by_field_php = array('%w - %A',20,''); 510 $group_by_field = "DATE_FORMAT( calldate, '% w - %W' )";511 $graph_col_title = 'Day of week';510 $group_by_field = "DATE_FORMAT( calldate, '%W' )"; 511 $graph_col_title = _("Day of week"); 512 512 break; 513 513 case "minutes1": 514 514 $group_by_field_php = array( '%Y-%m-%d %H:%M', 16, '' ); 515 515 $group_by_field = "DATE_FORMAT(calldate, '%Y-%m-%d %H:%i')"; 516 $graph_col_title = 'Minute';516 $graph_col_title = _("Minute"); 517 517 break; 518 518 case "minutes10": 519 519 $group_by_field_php = array('%Y-%m-%d %H:%M',15,'0'); 520 520 $group_by_field = "CONCAT(SUBSTR(DATE_FORMAT(calldate, '%Y-%m-%d %H:%i'),1,15), '0')"; 521 $graph_col_title = '10 Minutes';521 $graph_col_title = _("10 Minutes"); 522 522 break; 523 523 case "day": … … 525 525 $group_by_field_php = array('%Y-%m-%d',10,''); 526 526 $group_by_field = "DATE_FORMAT(calldate, '$group_by_field_php[0]')"; 527 $graph_col_title = 'Day';527 $graph_col_title = _("Day"); 528 528 } 529 529 … … 552 552 553 553 if ( $tot_calls ) { 554 echo '<p class="center title">Call Detail Record - Call Graph by '.$graph_col_title.'</p><table class="cdr">555 <tr>556 <th class="end_col">'. $graph_col_title . '</th>557 <th class="center_col">Total Calls: '. $tot_calls .' / Max Calls: '. $max_calls .' / Total Duration: '. $tot_duration .'</th>558 <th class="end_col">Average Call Time</th>559 <th class="img_col"><a href="#CDR" title="Go to the top of the CDR table"><img src="images/scrollup.gif" alt="CDR Table" /></a></th>560 <th class="img_col"><a href="#Graph" title="Go to the CDR Graph"><img src="images/scrolldown.gif" alt="CDR Graph" /></a></th>561 </tr>';554 $html = "<p class=\"center title\">"._("Call Detail Record - Call Graph by")." ".$graph_col_title."</p><table class=\"cdr\">"; 555 $html .= "<tr><th class=\"end_col\">". $graph_col_title . "</th>"; 556 $html .= "<th class=\"center_col\">"._("Total Calls").": ". $tot_calls ." / "._("Max Calls").": ". $max_calls ." / "._("Total Duration").": ". $tot_duration ."</th>"; 557 $html .= "<th class=\"end_col\">"._("Average Call Time")."</th>"; 558 $html .= "<th class=\"img_col\"><a href=\"#CDR\" title=\""._("Go to the top of the CDR table")."\"><img src=\"images/scrollup.gif\" alt=\"CDR Table\" /></a></th>"; 559 $html .= "<th class=\"img_col\"><a href=\"#Graph\" title=\""._("Go to the CDR Graph")."\"><img src=\"images/scrolldown.gif\" alt=\"CDR Graph\" /></a></th>"; 560 $html .= "</tr>"; 561 echo $html; 562 562 563 563 foreach ($result_array as $row) { … … 652 652 } 653 653 if ( $tot_calls ) { 654 echo '<p class="center title">Call Detail Record - Concurent Calls by '.$graph_col_title.'</p><table class="cdr">655 <tr>656 <th class="end_col">'. $graph_col_title . '</th>657 <th class="center_col">Total Calls: '. $tot_calls .' / Max Calls: '. $max_calls .'</th>658 <th class="end_col">Time</th>659 </tr>';654 $html = "<p class=\"center title\">"._("Call Detail Record - Concurrent Calls by")." ".$graph_col_title."</p><table class=\"cdr\">"; 655 $html .= "<tr><th class=\"end_col\">". $graph_col_title . "</th>"; 656 $html .= "<th class=\"center_col\">"._("Total Calls").": ". $tot_calls ." / "._("Max Calls").": ". $max_calls ."</th>"; 657 $html .= "<th class=\"end_col\">"._("Time")."</th>"; 658 $html .= "</tr>"; 659 echo $html; 660 660 661 661 ksort($result_array_cc);
