Changeset 622 for trunk/Modules/Dictionary
- Timestamp:
- Dec 4, 2013, 9:20:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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();
Note:
See TracChangeset
for help on using the changeset viewer.