Changeset 857


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
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r849 r857  
    29262926}
    29272927
     2928function UpdateTo857($Manager)
     2929{
     2930  // Group item names
     2931  $Manager->Execute('UPDATE `LogType` SET `Name` = "Translations" WHERE `Name` = "Překlady"');
     2932  $Manager->Execute('UPDATE `LogType` SET `Name` = "Download" WHERE `Name` = "Stažení"');
     2933  $Manager->Execute('UPDATE `LogType` SET `Name` = "Users" WHERE `Name` = "Uživatelé"');
     2934  $Manager->Execute('UPDATE `LogType` SET `Name` = "Moderator" WHERE `Name` = "Moderátor"');
     2935  $Manager->Execute('UPDATE `LogType` SET `Name` = "Errors" WHERE `Name` = "Chyby"');
     2936  $Manager->Execute('UPDATE `LogType` SET `Name` = "Administration" WHERE `Name` = "Administrace"');
     2937  $Manager->Execute('UPDATE `LogType` SET `Name` = "Missing" WHERE `Name` = "Nenalezené"');
     2938}
    29282939
    29292940$Updates = array(
     
    29582969  846 => array('Revision' => 848, 'Function' => 'UpdateTo848'),
    29592970  848 => array('Revision' => 849, 'Function' => 'UpdateTo849'),
     2971  849 => array('Revision' => 857, 'Function' => 'UpdateTo857'),
    29602972);
  • trunk/Application/Version.php

    r856 r857  
    77
    88$Version = '1.0-alfa';
    9 $Revision = 856; // Subversion revision
    10 $DatabaseRevision = 849; // Database structure revision
     9$Revision = 857; // Subversion revision
     10$DatabaseRevision = 857; // Database structure revision
    1111$ReleaseTime = '2016-01-19';
  • 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');
  • trunk/locale/cs.php

    r854 r857  
    500500        'Export %s of translator %s' => 'Export %s překladatele %s',
    501501        'Revision' => 'Revize',
     502        'Requested page was moved to new location' => 'Požadovaná stránka byla přesunuta do nového umístění',
     503        'Administration tools' => 'Nástroje pro správu',
     504        'Event log' => 'Záznamy událostí',
     505        'Testing' => 'Testování',
     506        'Database management' => 'Správa databáze',
     507        'Text import' => 'Import textů',
     508        'Export of the web interface translation' => 'Exportovat překlad rozhraní webu',
     509        'Type' => 'Typ',
     510        'Error logs' => 'Chybové záznamy',
     511        'Time' => 'Čas',
     512        'Errors' => 'Chyby',
     513        'Missing' => 'Chybějící',
     514        'Users' => 'Uživatelé',
     515        'Moderator' => 'Moderátor',
    502516      ),
    503517      'URL' => array(
     
    522536        'shoutbox' => 'kecatko',
    523537        'promotion' => 'propagace',
     538        'log' => 'zaznamy',
    524539      ),
    525540    );
Note: See TracChangeset for help on using the changeset viewer.