Ignore:
Timestamp:
Jan 20, 2016, 11:16:40 AM (8 years ago)
Author:
chronos
Message:
  • Added: More page redirections.
  • Modified: Translated Log module and part of Admin module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Log/Log.php

    r843 r857  
    140140    if($this->System->User->Licence(LICENCE_MODERATOR))
    141141    {
    142       $Output = '<strong>Filtr:</strong>';
    143         $Item = '<a href="'.$this->System->Link('/log/?type=').'" title="Bez filtrování">Všechny</a>';
     142      $Output = '<strong>'.T('Filter').':</strong>';
     143        $Item = '<a href="'.$this->System->Link('/log/?type=').'" title="Bez filtrování">'.T('All').'</a>';
    144144      if($_SESSION['type'] == '') $Item = '<strong>'.$Item.'</strong>';
    145145      $Output .= ' '.$Item;
     
    148148      {
    149149        $Item = '<a href="'.$this->System->Link('/log/?type='.$LogType['Id']).'" style="color:'.
    150           $LogType['Color'].'" title="'.$LogType['Name'].'">'.$LogType['Name'].'</a>';
     150          $LogType['Color'].'" title="'.$LogType['Name'].'">'.T($LogType['Name']).'</a>';
    151151        if($_SESSION['type'] == $LogType['Id']) $Item = '<strong>'.$Item.'</strong>';
    152152        $Output .= ' '.$Item;
     
    170170
    171171    $TableColumns = array(
    172       array('Name' => 'Date', 'Title' => 'Čas'),
     172      array('Name' => 'Date', 'Title' => T('Time')),
    173173    );
    174174    if($_SESSION['type'] == '') $TableColumns[] =
    175       array('Name' => 'LogName', 'Title' => 'Typ');
     175      array('Name' => 'LogName', 'Title' => T('Type'));
    176176    $TableColumns = array_merge($TableColumns, array(
    177       array('Name' => 'Text', 'Title' => 'Text'),
    178       array('Name' => 'UserName', 'Title' => 'Uživatel'),
    179       array('Name' => 'IP', 'Title' => 'Adresa'),
    180       array('Name' => 'URL', 'Title' => 'URL'),
     177      array('Name' => 'Text', 'Title' => T('Content')),
     178      array('Name' => 'UserName', 'Title' => T('User')),
     179      array('Name' => 'IP', 'Title' => T('Address')),
     180      array('Name' => 'URL', 'Title' => T('URL')),
    181181    ));
    182182    $Order = GetOrderTableHeader($TableColumns, 'date', 1);
     
    190190    {
    191191      if($Line['Type'] == LOG_TYPE_ERROR) $Line['Text'] = htmlspecialchars($Line['Text']);
    192       $Line['Text'] = str_replace("\n", '<br>', $Line['Text']);
     192      $Line['Text'] = str_replace("\n", '<br/>', $Line['Text']);
    193193      $Output .= '<tr><td>'.$Line['Date'].'</td>';
    194       if($_SESSION['type'] == '') $Output .= '<td>'.$Line['LogName'].'</td>';
     194      if($_SESSION['type'] == '') $Output .= '<td>'.T($Line['LogName']).'</td>';
    195195      $Output .= '<td><span style="color: '.$Line['LogColor'].'">'.$Line['Text'].'</span></td>'.
    196196      '<td><a href="'.$this->System->Link('/user/?user='.$Line['User']).'">'.$Line['UserName'].'</a></td>'.
     
    202202      if($this->System->User->Licence(LICENCE_ADMIN))
    203203      {
    204         $Output .= '<div>Vymazat: <a href="'.$this->System->Link('/log/?a=delerrlog&amp;type='.LOG_TYPE_ERROR).'">Chybové záznamy</a> '.
    205           '<a href="'.$this->System->Link('/log/?a=delerrlog&amp;type='.LOG_TYPE_PAGE_NOT_FOUND).'">Neznámé stránky</a></div>';
     204        $Output .= '<div>'.T('Remove').': <a href="'.$this->System->Link('/log/?a=delerrlog&amp;type='.LOG_TYPE_ERROR).'">'.T('Error logs').'</a> '.
     205          '<a href="'.$this->System->Link('/log/?a=delerrlog&amp;type='.LOG_TYPE_PAGE_NOT_FOUND).'">'.T('Missing').'</a></div>';
    206206      }
    207207    } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
Note: See TracChangeset for help on using the changeset viewer.