Changeset 857 for trunk/Modules


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.
Location:
trunk/Modules
Files:
4 edited

Legend:

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

    r842 r857  
    1818    $this->System->RegisterMenuItem(array(
    1919      'Title' => T('Administration'),
    20       'Hint' => 'Volby pro správu',
     20      'Hint' => T('Administration tools'),
    2121      'Link' => $this->System->Link('/admin/'),
    2222      'Permission' => LICENCE_ADMIN,
     
    3131  function ShowMenu()
    3232  {
    33     $Output = '<h3>Volby pro správu</h3>';
     33    $Output = '<h3>'.T('Administration tools').'</h3>';
    3434
    3535    $Output .= '<br />'.
    36       '<a href="https://'.$this->System->Config['Web']['Host'].'/phpmyadmin/">Správa databáze</a><br/>'.
     36      '<a href="https://'.$this->System->Config['Web']['Host'].'/phpmyadmin/">'.T('Database management').'</a><br/>'.
    3737      '<small>Rozhraní phpMyAdmin pro přímou správu databáze</small><br/><br/>'.
    38       '<a href="'.$this->System->Link('/import/').'">Import textů</a><br/>'.
     38      '<a href="'.$this->System->Link('/import/').'">'.T('Text import').'</a><br/>'.
    3939      '<small>Načtení zdrojových textů do databáze</small><br/><br/>'.
    40       '<a href="'.$this->System->Link('/log/').'">Záznamy událostí</a><br/>'.
     40      '<a href="'.$this->System->Link('/log/').'">'.T('Event log').'</a><br/>'.
    4141      '<small>Procházení všech systémových záznamů akcí a událostí</small><br/><br/>'.
    42       '<a href="'.$this->System->Link('/admin/?action=testing').'">Testování</a><br/>'.
     42      '<a href="'.$this->System->Link('/admin/?action=testing').'">'.T('Testing').'</a><br/>'.
    4343      '<small>Testovací funkce</small><br/><br/>'.
    44       '<a href="'.$this->System->Link('/admin/?action=locale').'">Exportovat překlad rozhraní</a><br/>'.
     44      '<a href="'.$this->System->Link('/admin/?action=locale').'">'.T('Export of the web interface translation').'</a><br/>'.
    4545      '<small>Exportovat texty z PHP souborů pro překlad rozhraní</small><br/><br/>'.
    4646      '<a href="'.$this->System->Link('/admin/?action=uncomplete').'">Nastavit nekompletní texty</a><br/>'.
  • 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);
  • trunk/Modules/Redirection/Redirection.php

    r853 r857  
    2424    Header($_SERVER['SERVER_PROTOCOL'].' 301 Moved Permanently');
    2525    Header('Location: '.$Location);
    26     return('<h3 align="center">Požadovaná stránka byla přesunuta do nového umístění.</h3>');
     26    return('<h3 align="center">'.T('').'</h3>');
    2727  }
    2828
     
    4444      if($this->System->PathItems[0] == 'download.php') $Output = $this->Redirect($this->System->Link('/download/'));
    4545      if($this->System->PathItems[0] == 'serverlist.php') $Output = $this->Redirect($this->System->Link('/server/'));
     46      if($this->System->PathItems[0] == 'info.php') $Output = $this->Redirect($this->System->Link('/info/'));
     47      if($this->System->PathItems[0] == 'userlist.php') $Output = $this->Redirect($this->System->Link('/users/'));
     48      if($this->System->PathItems[0] == 'promotion.php') $Output = $this->Redirect($this->System->Link('/promotion/'));
     49      if($this->System->PathItems[0] == 'log.php') $Output = $this->Redirect($this->System->Link('/log/'));
    4650      if(count($this->System->PathItems) > 1)
    4751      {
  • trunk/Modules/ShoutBox/ShoutBox.php

    r854 r857  
    3030
    3131    if($this->System->User->Licence(LICENCE_USER))
    32       $Output .= '<a href="'.$this->System->Link('/shoutbox/?a=add').'">'.T('Add').'</a>';
     32      $Output .= ' <a href="'.$this->System->Link('/shoutbox/?a=add').'">'.T('Add').'</a>';
    3333    $Output .= '<div class="box"><div class="shoutbox"><table>';
    3434    $DbResult = $this->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 30');
Note: See TracChangeset for help on using the changeset viewer.