Changeset 857 for trunk/Modules
- Timestamp:
- Jan 20, 2016, 11:16:40 AM (9 years ago)
- Location:
- trunk/Modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Admin/Admin.php
r842 r857 18 18 $this->System->RegisterMenuItem(array( 19 19 'Title' => T('Administration'), 20 'Hint' => 'Volby pro správu',20 'Hint' => T('Administration tools'), 21 21 'Link' => $this->System->Link('/admin/'), 22 22 'Permission' => LICENCE_ADMIN, … … 31 31 function ShowMenu() 32 32 { 33 $Output = '<h3> Volby pro správu</h3>';33 $Output = '<h3>'.T('Administration tools').'</h3>'; 34 34 35 35 $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/>'. 37 37 '<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/>'. 39 39 '<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/>'. 41 41 '<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/>'. 43 43 '<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/>'. 45 45 '<small>Exportovat texty z PHP souborů pro překlad rozhraní</small><br/><br/>'. 46 46 '<a href="'.$this->System->Link('/admin/?action=uncomplete').'">Nastavit nekompletní texty</a><br/>'. -
trunk/Modules/Log/Log.php
r843 r857 140 140 if($this->System->User->Licence(LICENCE_MODERATOR)) 141 141 { 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>'; 144 144 if($_SESSION['type'] == '') $Item = '<strong>'.$Item.'</strong>'; 145 145 $Output .= ' '.$Item; … … 148 148 { 149 149 $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>'; 151 151 if($_SESSION['type'] == $LogType['Id']) $Item = '<strong>'.$Item.'</strong>'; 152 152 $Output .= ' '.$Item; … … 170 170 171 171 $TableColumns = array( 172 array('Name' => 'Date', 'Title' => 'Čas'),172 array('Name' => 'Date', 'Title' => T('Time')), 173 173 ); 174 174 if($_SESSION['type'] == '') $TableColumns[] = 175 array('Name' => 'LogName', 'Title' => 'Typ');175 array('Name' => 'LogName', 'Title' => T('Type')); 176 176 $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')), 181 181 )); 182 182 $Order = GetOrderTableHeader($TableColumns, 'date', 1); … … 190 190 { 191 191 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']); 193 193 $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>'; 195 195 $Output .= '<td><span style="color: '.$Line['LogColor'].'">'.$Line['Text'].'</span></td>'. 196 196 '<td><a href="'.$this->System->Link('/user/?user='.$Line['User']).'">'.$Line['UserName'].'</a></td>'. … … 202 202 if($this->System->User->Licence(LICENCE_ADMIN)) 203 203 { 204 $Output .= '<div> Vymazat: <a href="'.$this->System->Link('/log/?a=delerrlog&type='.LOG_TYPE_ERROR).'">Chybové záznamy</a> '.205 '<a href="'.$this->System->Link('/log/?a=delerrlog&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&type='.LOG_TYPE_ERROR).'">'.T('Error logs').'</a> '. 205 '<a href="'.$this->System->Link('/log/?a=delerrlog&type='.LOG_TYPE_PAGE_NOT_FOUND).'">'.T('Missing').'</a></div>'; 206 206 } 207 207 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL); -
trunk/Modules/Redirection/Redirection.php
r853 r857 24 24 Header($_SERVER['SERVER_PROTOCOL'].' 301 Moved Permanently'); 25 25 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>'); 27 27 } 28 28 … … 44 44 if($this->System->PathItems[0] == 'download.php') $Output = $this->Redirect($this->System->Link('/download/')); 45 45 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/')); 46 50 if(count($this->System->PathItems) > 1) 47 51 { -
trunk/Modules/ShoutBox/ShoutBox.php
r854 r857 30 30 31 31 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>'; 33 33 $Output .= '<div class="box"><div class="shoutbox"><table>'; 34 34 $DbResult = $this->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 30');
Note:
See TracChangeset
for help on using the changeset viewer.