Ignore:
Timestamp:
Dec 4, 2013, 9:20:56 AM (11 years ago)
Author:
chronos
Message:
  • Modified: More translated texts.
File:
1 edited

Legend:

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

    r609 r622  
    1919        $this->System->RegisterMenuItem(array(
    2020                'Name' => 'Dictionary',
    21         'Title' => 'Slovníček',
     21        'Title' => T('Dictionary'),
    2222        'Hint' => 'Slovník WoW výrazů',
    2323        'Link' => $this->System->Link('/dictionary/'),
     
    144144  {
    145145    $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'));
    147147  } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    148148  return($Output);
     
    220220  $Output .= '<tr><td>
    221221    <input type="text" value="'.htmlentities($Search).'" name="search" size="30" />
    222     <input type="submit" value="Vyhledat" />';
     222    <input type="submit" value="'.T('Search').'" />';
    223223  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>';
    225225           
    226226  $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>';
    229229  if($_SESSION['language'] == '') $Output .= '<strong>'.$Lang.'</strong> ';
    230230    else $Output .= $Lang;
     
    267267    else $LanguageName = 'Překlad';
    268268  $TableColumns = array(     
    269     array('Name' => 'Original', 'Title' => 'Angličtina'),
     269    array('Name' => 'Original', 'Title' => T('English')),
    270270    array('Name' => 'Translated', 'Title' => $LanguageName),
    271271  );
    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'));
    276276  $Order = GetOrderTableHeader($TableColumns, 'Original');
    277277  $Output .= '<table class="BaseTable">'.$Order['Output'];
     
    290290    {
    291291      if($Line['UserId'] == $this->System->User->Id)
    292         $Output .= '<td><a href="?action=remove&amp;id='.$Line['Id'].'" onclick="return confirmAction(\'Opravdu smazat položku?\');">Smazat</a>'.
    293         ' <a href="?action=modify&amp;id='.$Line['Id'].'">Upravit</a></td>';
     292        $Output .= '<td><a href="?action=remove&amp;id='.$Line['Id'].'" onclick="return confirmAction(\''.T('Do you really want to delete item?').'\');">'.T('Delete').'</a>'.
     293        ' <a href="?action=modify&amp;id='.$Line['Id'].'">'.T('Modify').'</a></td>';
    294294        else $Output .= '<td></td>';
    295295    }
     
    321321}
    322322
    323 $Output = '<h3>Slovníček</h3>';
     323$Output = '<h3>'.T('Dictionary').'</h3>';
    324324
    325325$ShowList = true;
     
    334334  else if($_GET['action'] == 'remove') $Output .= $this->DictionaryRemove();
    335335  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); 
    337337}
    338338if($ShowList == true) $Output .= $this->DictionaryShow();
Note: See TracChangeset for help on using the changeset viewer.