Changeset 12338

Show
Ignore:
Timestamp:
07/29/11 14:20:55 (2 years ago)
Author:
mickecarlsson
Message:

cdr, more localization stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/cdr/i18n/cdr.pot

    r12337 r12338  
    2121"Project-Id-Version: PACKAGE VERSION\n" 
    2222"Report-Msgid-Bugs-To: \n" 
    23 "POT-Creation-Date: 2011-07-29 18:38+0200\n" 
     23"POT-Creation-Date: 2011-07-29 19:43+0200\n" 
    2424"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    2525"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    265265msgid "Account" 
    266266msgstr "" 
     267 
     268msgid "Call Detail Record - Call Graph by" 
     269msgstr "" 
     270 
     271msgid "Total Calls" 
     272msgstr "" 
     273 
     274msgid "Max Calls" 
     275msgstr "" 
     276 
     277msgid "Total Duration" 
     278msgstr "" 
     279 
     280msgid "Average Call Time" 
     281msgstr "" 
     282 
     283msgid "Go to the top of the CDR table" 
     284msgstr "" 
     285 
     286msgid "Go to the CDR Graph" 
     287msgstr "" 
     288 
     289msgid "Call Detail Record - Concurrent Calls by" 
     290msgstr "" 
     291 
     292msgid "Max Calls" 
     293msgstr "" 
     294 
     295msgid "Time" 
     296msgstr "" 
  • modules/branches/2.10/cdr/i18n/sv_SE/LC_MESSAGES/cdr.po

    r12337 r12338  
    2121"Project-Id-Version: cdr\n" 
    2222"Report-Msgid-Bugs-To: \n" 
    23 "POT-Creation-Date: 2011-07-29 18: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" 
    2525"Last-Translator: Mikael Carlsson <mickecamino@gmail.com>\n" 
    2626"Language-Team: LANGUAGE <LL@li.org>\n" 
     
    204204 
    205205msgid "Group By" 
    206 msgstr "Gruppera med
     206msgstr "Gruppera enligt
    207207 
    208208msgid "Account Information" 
     
    225225 
    226226msgid "Hour of day" 
    227 msgstr "Timvis
     227msgstr "Per timme
    228228 
    229229msgid "Day of week" 
    230 msgstr "Dagsvis
     230msgstr "Veckodag
    231231 
    232232msgid "Day" 
     
    265265msgid "Account" 
    266266msgstr "Konto" 
     267 
     268msgid "Call Detail Record - Call Graph by" 
     269msgstr "Samtalsrapport - graf - sorterad pÃ¥" 
     270 
     271msgid "Total Calls" 
     272msgstr "Antal samtal" 
     273 
     274msgid "Max Calls" 
     275msgstr "Max samtal" 
     276 
     277msgid "Total Duration" 
     278msgstr "Total lÀngd" 
     279 
     280msgid "Average Call Time" 
     281msgstr "Genomsnittlig tid" 
     282 
     283msgid "Go to the top of the CDR table" 
     284msgstr "GÃ¥ till toppen av tabellen" 
     285 
     286msgid "Go to the CDR Graph" 
     287msgstr "GÃ¥ till grafen" 
     288 
     289msgid "Call Detail Record - Concurrent Calls by" 
     290msgstr "Samtalsrapport - samtidiga samtal sorterad pÃ¥" 
     291 
     292msgid "Time" 
     293msgstr "Tid" 
     294 
     295msgid "Monday" 
     296msgstr "MÃ¥ndag" 
  • modules/branches/2.10/cdr/page.cdr.php

    r12337 r12338  
    470470//NEW GRAPHS 
    471471$group_by_field = $group; 
    472 // ConcurentCalls 
     472// ConcurrentCalls 
    473473$group_by_field_php = array( '', 32, '' ); 
    474474 
    475475switch ($group) { 
    476476  case "accountcode": 
    477     $graph_col_title = 'Account Code'
     477    $graph_col_title = _("Account Code")
    478478  break; 
    479479  case "dst": 
    480     $graph_col_title = 'Destination Number'
     480    $graph_col_title = _("Destination Number")
    481481  break; 
    482482  case "src": 
    483     $graph_col_title = 'Source Number'
     483    $graph_col_title = _("Source Number")
    484484  break; 
    485485  case "userfield": 
    486     $graph_col_title = 'User Field'
     486    $graph_col_title = _("User Field")
    487487  break; 
    488488  case "hour": 
    489489    $group_by_field_php = array( '%Y-%m-%d %H', 13, '' ); 
    490490    $group_by_field = "DATE_FORMAT(calldate, '$group_by_field_php[0]')"; 
    491     $graph_col_title = 'Hour'
     491    $graph_col_title = _("Hour")
    492492  break; 
    493493  case "hour_of_day": 
    494494    $group_by_field_php = array('%H',2,''); 
    495495    $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")
    497497  break; 
    498498  case "week": 
    499499    $group_by_field_php = array('%V',2,''); 
    500500    $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 )")
    502502  break; 
    503503  case "month": 
    504504    $group_by_field_php = array('%Y-%m',7,''); 
    505505    $group_by_field = "DATE_FORMAT(calldate, '$group_by_field_php[0]')"; 
    506     $graph_col_title = 'Month'
     506    $graph_col_title = _("Month")
    507507  break; 
    508508  case "day_of_week": 
    509509    $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")
    512512  break; 
    513513  case "minutes1": 
    514514    $group_by_field_php = array( '%Y-%m-%d %H:%M', 16, '' ); 
    515515    $group_by_field = "DATE_FORMAT(calldate, '%Y-%m-%d %H:%i')"; 
    516     $graph_col_title = 'Minute'
     516    $graph_col_title = _("Minute")
    517517  break; 
    518518  case "minutes10": 
    519519    $group_by_field_php = array('%Y-%m-%d %H:%M',15,'0'); 
    520520    $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")
    522522  break; 
    523523  case "day": 
     
    525525    $group_by_field_php = array('%Y-%m-%d',10,''); 
    526526    $group_by_field = "DATE_FORMAT(calldate, '$group_by_field_php[0]')"; 
    527     $graph_col_title = 'Day'
     527    $graph_col_title = _("Day")
    528528} 
    529529 
     
    552552 
    553553  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
    562562   
    563563    foreach ($result_array as $row) { 
     
    652652  } 
    653653  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
    660660   
    661661    ksort($result_array_cc);