Changeset 622 for trunk/Modules
- Timestamp:
- Dec 4, 2013, 9:20:56 AM (11 years ago)
- Location:
- trunk/Modules
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/ClientVersion/ClientVersion.php
r569 r622 18 18 $this->System->RegisterPage('client-version', 'PageClientVersion'); 19 19 $this->System->RegisterMenuItem(array( 20 'Title' => 'Verze hry',20 'Title' => T('Game version'), 21 21 'Hint' => 'Seznam verzí herního klienta', 22 22 'Link' => $this->System->Link('/client-version/'), … … 35 35 $PageList = GetPageList($DbRow[0]); 36 36 37 $Output = '<h3> Verze hry</h3>'.37 $Output = '<h3>'.T('Game version').'</h3>'. 38 38 $PageList['Output']; 39 39 40 40 $TableColumns = array( 41 array('Name' => 'Version', 'Title' => 'Verze'),42 array('Name' => 'BuildNumber', 'Title' => 'Sestavení'),43 array('Name' => 'ReleaseDate', 'Title' => 'Datum uvolnění'),44 array('Name' => 'Title', 'Title' => 'Titutek'),41 array('Name' => 'Version', 'Title' => T('Version')), 42 array('Name' => 'BuildNumber', 'Title' => T('Build')), 43 array('Name' => 'ReleaseDate', 'Title' => T('Release date')), 44 array('Name' => 'Title', 'Title' => T('Title')), 45 45 ); 46 46 $Order = GetOrderTableHeader($TableColumns, 'BuildNumber', 1); -
trunk/Modules/Dictionary/Dictionary.php
r609 r622 19 19 $this->System->RegisterMenuItem(array( 20 20 'Name' => 'Dictionary', 21 'Title' => 'Slovníček',21 'Title' => T('Dictionary'), 22 22 'Hint' => 'Slovník WoW výrazů', 23 23 'Link' => $this->System->Link('/dictionary/'), … … 144 144 { 145 145 $this->Database->query('DELETE FROM `Dictionary` WHERE (`User`='.$this->System->User->Id.') AND (`Id`='.($_GET['id'] * 1).')'); 146 $Output = ShowMessage( 'Záznam odstraněn.');146 $Output = ShowMessage(T('Record removed')); 147 147 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 148 148 return($Output); … … 220 220 $Output .= '<tr><td> 221 221 <input type="text" value="'.htmlentities($Search).'" name="search" size="30" /> 222 <input type="submit" value=" Vyhledat" />';222 <input type="submit" value="'.T('Search').'" />'; 223 223 if($this->System->User->Licence(LICENCE_USER)) 224 $Output .= ' <a href="?action=insert"> Vložit slovo</a>';224 $Output .= ' <a href="?action=insert">'.T('Add word').'</a>'; 225 225 226 226 $Output .= '</td></tr>'. 227 '<tr><td> Jazyk: ';228 $Lang = '<a href="?language="> Všechny</a>';227 '<tr><td>'.T('Language').': '; 228 $Lang = '<a href="?language=">'.T('All').'</a>'; 229 229 if($_SESSION['language'] == '') $Output .= '<strong>'.$Lang.'</strong> '; 230 230 else $Output .= $Lang; … … 267 267 else $LanguageName = 'Překlad'; 268 268 $TableColumns = array( 269 array('Name' => 'Original', 'Title' => 'Angličtina'),269 array('Name' => 'Original', 'Title' => T('English')), 270 270 array('Name' => 'Translated', 'Title' => $LanguageName), 271 271 ); 272 if(!is_numeric($_SESSION['language'])) $TableColumns[] = array('Name' => 'LangName', 'Title' => 'Jazyk');273 $TableColumns[] = array('Name' => 'Description', 'Title' => 'Popis');274 $TableColumns[] = array('Name' => 'UserName', 'Title' => 'Překladatel');275 if($this->System->User->Licence(LICENCE_USER)) $TableColumns[] = array('Name' => '', 'Title' => 'Akce');272 if(!is_numeric($_SESSION['language'])) $TableColumns[] = array('Name' => 'LangName', 'Title' => T('Language')); 273 $TableColumns[] = array('Name' => 'Description', 'Title' => T('Description')); 274 $TableColumns[] = array('Name' => 'UserName', 'Title' => T('Translator')); 275 if($this->System->User->Licence(LICENCE_USER)) $TableColumns[] = array('Name' => '', 'Title' => T('Action')); 276 276 $Order = GetOrderTableHeader($TableColumns, 'Original'); 277 277 $Output .= '<table class="BaseTable">'.$Order['Output']; … … 290 290 { 291 291 if($Line['UserId'] == $this->System->User->Id) 292 $Output .= '<td><a href="?action=remove&id='.$Line['Id'].'" onclick="return confirmAction(\' Opravdu smazat položku?\');">Smazat</a>'.293 ' <a href="?action=modify&id='.$Line['Id'].'"> Upravit</a></td>';292 $Output .= '<td><a href="?action=remove&id='.$Line['Id'].'" onclick="return confirmAction(\''.T('Do you really want to delete item?').'\');">'.T('Delete').'</a>'. 293 ' <a href="?action=modify&id='.$Line['Id'].'">'.T('Modify').'</a></td>'; 294 294 else $Output .= '<td></td>'; 295 295 } … … 321 321 } 322 322 323 $Output = '<h3> Slovníček</h3>';323 $Output = '<h3>'.T('Dictionary').'</h3>'; 324 324 325 325 $ShowList = true; … … 334 334 else if($_GET['action'] == 'remove') $Output .= $this->DictionaryRemove(); 335 335 else if($_GET['action'] == 'modify') $Output .= $this->DictionaryModify(); 336 else $Output .= ShowMessage( 'Neznámá akce', MESSAGE_CRITICAL);336 else $Output .= ShowMessage(T('Unknown action'), MESSAGE_CRITICAL); 337 337 } 338 338 if($ShowList == true) $Output .= $this->DictionaryShow(); -
trunk/Modules/FrontPage/FrontPage.php
r609 r622 111 111 ' ORDER BY `ModifyTime` DESC LIMIT '.$Count; 112 112 $DbResult = $this->Database->query($Query); 113 $Output .= '<table class="MiniTable"><tr><th> Datum</th><th>Kdo</th><th>Nový</th><th>Zdroj</th><th>Skupina</th></tr>';113 $Output .= '<table class="MiniTable"><tr><th>'.T('Date').'</th><th>'.T('Who').'</th><th>'.T('New').'</th><th>'.T('Source').'</th><th>'.T('Group').'</th></tr>'; 114 114 while($DbRow = $DbResult->fetch_assoc()) 115 115 { -
trunk/Modules/News/News.php
r608 r622 22 22 $this->System->RegisterPage('news', 'PageNews'); 23 23 $this->System->RegisterPage('rss', 'PageRSS'); 24 $this->RegisterRSS(array('Title' => 'Změny systému', 'Channel' => 'news',24 $this->RegisterRSS(array('Title' => T('System changes'), 'Channel' => 'news', 25 25 'Callback' => array('PageNews', 'ShowRSS'), 'Permission' => LICENCE_ANONYMOUS)); 26 26 } … … 28 28 function ShowBox() 29 29 { 30 $Output = '<strong> Změny systému:</strong><div class="NewsBox">';30 $Output = '<strong>'.T('System changes').':</strong><div class="NewsBox">'; 31 31 $DbResult = $this->Database->query('SELECT `News`.`Time`, `User`.`Name`, `News`.`Text`,`News`.`Title`'. 32 32 ' FROM `News` JOIN `User` ON `User`.`ID` = `News`.`User` ORDER BY `Time` DESC LIMIT 10'); … … 80 80 $PageList = GetPageList($DbRow[0]); 81 81 82 $Output = '<h3> Novinky</h3>'.$PageList['Output'];82 $Output = '<h3>'.T('News').'</h3>'.$PageList['Output']; 83 83 if($this->System->User->Licence(LICENCE_ADMIN)) 84 84 $Output .= ' <a href="?a=add">'.T('Add').'</a>'; … … 141 141 $Output = GenerateRSS(array 142 142 ( 143 'Title' => 'WoW překlad - Změny systému',143 'Title' => 'WoW překlad - '.T('System changes'), 144 144 'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/'), 145 145 'Description' => 'Překlad textů WoW', -
trunk/Modules/Referrer/Referrer.php
r609 r622 23 23 $this->System->RegisterPage('referrer', 'PageReferrer'); 24 24 $this->System->RegisterMenuItem(array( 25 'Title' => 'Propagace',25 'Title' => T('Promotion'), 26 26 'Hint' => 'Informace k propagaci tohoto projektu', 27 27 'Link' => $this->System->Link('/referrer/'), -
trunk/Modules/ShoutBox/ShoutBox.php
r581 r622 24 24 function ShowBox() 25 25 { 26 $Output = '<strong><a href="'.$this->System->Link('/shoutbox/').'"> Kecátko:</a></strong>';26 $Output = '<strong><a href="'.$this->System->Link('/shoutbox/').'">'.T('Chatbox').':</a></strong>'; 27 27 28 28 if($this->System->User->Licence(LICENCE_USER)) 29 $Output .= ' <a href="'.$this->System->Link('/shoutbox/?a=add').'"> Vložit</a>';29 $Output .= ' <a href="'.$this->System->Link('/shoutbox/?a=add').'">'.T('Add').'</a>'; 30 30 $Output .= '<div class="box"><table>'; 31 31 $DbResult = $this->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC LIMIT 30'); … … 58 58 $Output = '<h3>Kecátko</h3>'.$PageList['Output']; 59 59 if($this->System->User->Licence(LICENCE_USER)) 60 $Output .= ' <a href="'.$this->System->Link('/shoutbox/?a=add').'"> Vložit</a>';60 $Output .= ' <a href="'.$this->System->Link('/shoutbox/?a=add').'">'.T('Add').'</a>'; 61 61 $Output .= '<div class="shoutbox">'; 62 62 $DbResult = $this->System->Database->query('SELECT * FROM `ShoutBox` ORDER BY `ID` DESC '.$PageList['SQLLimit']); -
trunk/Modules/Team/Team.php
r603 r622 18 18 $this->System->RegisterPage('team', 'PageTeam'); 19 19 $this->System->RegisterMenuItem(array( 20 'Title' => 'Týmy',21 'Hint' => 'Seznam překladatelských týmů',20 'Title' => T('Teams'), 21 'Hint' => T('List of translating teams'), 22 22 'Link' => $this->System->Link('/team/?search='), 23 23 'Permission' => LICENCE_ANONYMOUS, … … 33 33 function ShowTeamList() 34 34 { 35 $Output = '<h3> Seznam překladatelských týmů</h3>';35 $Output = '<h3>'.T('List of translating teams').'</h3>'; 36 36 $Output .= 'Týmy jsou seskupení překladatelů, kteří se hlásí k něčemu společnému jako např. WoW serveru, způsobu překladu, ke stejnému hernímu spolku, aj. Být členem týmu samo o sobě nemá žádný zásadní důsledek a spíše to může pomoci se lépe orientovat mezi překladateli někomu, kdo sestavuje export.<br/>'; 37 37 38 38 if($this->System->User->Licence(LICENCE_USER)) 39 $Output .= '<br /><div style="text-align: center;"><a href="?action=create"> Vytvořit překladatelský tým</a></div><br/>';39 $Output .= '<br /><div style="text-align: center;"><a href="?action=create">'.T('Create translating team').'</a></div><br/>'; 40 40 41 41 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `Team`'); … … 47 47 48 48 $TableColumns = array( 49 array('Name' => 'Name', 'Title' => 'Jméno'),50 array('Name' => 'URL', 'Title' => 'Webové stránky'),51 array('Name' => 'LeaderName', 'Title' => 'Vedoucí'),52 array('Name' => 'NumberUser', 'Title' => 'Počet členů'),53 array('Name' => 'TimeCreate', 'Title' => 'Datum založení'),49 array('Name' => 'Name', 'Title' => T('Name')), 50 array('Name' => 'URL', 'Title' => T('Web pages')), 51 array('Name' => 'LeaderName', 'Title' => T('Leader')), 52 array('Name' => 'NumberUser', 'Title' => T('Member count')), 53 array('Name' => 'TimeCreate', 'Title' => T('Founding date')), 54 54 ); 55 if($this->System->User->Licence(LICENCE_USER)) $TableColumns[] = array('Name' => '', 'Title' => 'Uživatelské akce');55 if($this->System->User->Licence(LICENCE_USER)) $TableColumns[] = array('Name' => '', 'Title' => T('User actions')); 56 56 57 57 $Order = GetOrderTableHeader($TableColumns, 'NumberUser', 1); -
trunk/Modules/Translation/Translation.php
r584 r622 30 30 'Channel' => 'translation', 'Callback' => array($this, 'ShowRSS'), 'Permission' => LICENCE_ANONYMOUS)); 31 31 $this->System->RegisterMenuItem(array( 32 'Title' => 'Stav dokončení',32 'Title' => T('Completion status'), 33 33 'Hint' => 'Stav dokončení překládů', 34 34 'Link' => $this->System->Link('/progress/'), -
trunk/Modules/User/User.php
r609 r622 27 27 $this->System->RegisterPage('user.php', 'PageUserProfile'); 28 28 $this->System->RegisterMenuItem(array( 29 'Title' => 'Překladatelé',29 'Title' => T('Translators'), 30 30 'Hint' => 'Seznam registrovaných uživatelů', 31 31 'Link' => $this->System->Link('/userlist.php?action=nofilter'),
Note:
See TracChangeset
for help on using the changeset viewer.