Ignore:
Timestamp:
Dec 27, 2015, 5:47:00 PM (8 years ago)
Author:
chronos
Message:
  • Modified: More interface texts made as translated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/Profile.php

    r826 r837  
    3434    $PageList = GetPageList($DbRow[0]);
    3535
    36     $Output .= '<h3>Exporty</h3>'.
     36    $Output .= '<h3>'.T('Exports').'</h3>'.
    3737        $PageList['Output'];
    3838
    3939    $TableColumns = array(
    40         array('Name' => 'TimeCreate', 'Title' => 'Čas vytvoření'),
    41         array('Name' => 'Title', 'Title' => 'Označení'),
     40        array('Name' => 'TimeCreate', 'Title' => T('Creation time')),
     41        array('Name' => 'Title', 'Title' => T('Name')),
    4242        //  array('Name' => 'UserCount', 'Title' => 'Vybraných překladatelů'),
    4343        //  array('Name' => 'GroupCount', 'Title' => 'Překladových skupin'),
    44         array('Name' => 'OutputType', 'Title' => 'Typ výstupu'),
    45         array('Name' => 'ClientVersion', 'Title' => 'Verze klienta'),
    46         array('Name' => 'UsedCount', 'Title' => 'Prohlédnutí výstupu'),
    47         array('Name' => '', 'Title' => 'Akce'),
     44        array('Name' => 'OutputType', 'Title' => T('Output type')),
     45        array('Name' => 'ClientVersion', 'Title' => T('Client version')),
     46        array('Name' => 'UsedCount', 'Title' => T('Output inspections')),
     47        array('Name' => '', 'Title' => T('Actions')),
    4848    );
    4949    $Order = GetOrderTableHeader($TableColumns, 'TimeCreate', 1);
     
    5959    while($Export = $DbResult->fetch_assoc())
    6060    {
    61       $Action = '<a href="'.$this->System->Link('/export/?Action=View&amp;ExportId='.$Export['Id'].'&amp;Tab=0').'">Zobrazit</a> '.
    62         '<a href="'.$this->System->Link('/export/?Action=View&amp;ExportId='.$Export['Id'].'&amp;Tab=7').'">Exportovat</a>';
    63       if($Export['User'] == $this->System->User->Id) $Action .= ' <a href="?Action=Delete&amp;ExportId='.$Export['Id'].'" onclick="return confirmAction(\'Opravdu smazat položku?\');">Smazat</a>';
    64       if($this->System->User->Id != null) $Action .= ' <a href="'.$this->System->Link('/export/?Action=Clone&amp;ExportId='.$Export['Id']).'" onclick="return confirmAction(\'Opravdu klonovat položku?\');">Klonovat</a>';
     61      $Action = '<a href="'.$this->System->Link('/export/?Action=View&amp;ExportId='.$Export['Id'].'&amp;Tab=0').'">'.T('Show').'</a> '.
     62        '<a href="'.$this->System->Link('/export/?Action=View&amp;ExportId='.$Export['Id'].'&amp;Tab=7').'">'.T('Export').'</a>';
     63      if($Export['User'] == $this->System->User->Id) $Action .= ' <a href="?Action=Delete&amp;ExportId='.$Export['Id'].'" onclick="return confirmAction(\''.T('Really remove item?').'\');">'.T('Remove').'</a>';
     64      if($this->System->User->Id != null) $Action .= ' <a href="'.$this->System->Link('/export/?Action=Clone&amp;ExportId='.$Export['Id']).'" onclick="return confirmAction(\''.T('Really clone item?').'\');">'.T('Clone').'</a>';
    6565      $Output .= '<tr><td>'.HumanDate($Export['TimeCreate']).'</td>'.
    6666        '<td>'.$Export['Title'].'</td>'.
     
    7373        $PageList['Output'];
    7474
    75     $Output .= '<div style="text-align: center;"><a href="'.$this->System->Link('/export/').'">Stránka exportů</a></div>';
     75    $Output .= '<div style="text-align: center;"><a href="'.$this->System->Link('/export/').'">'.T('Export page').'</a></div>';
    7676    return($Output);
    7777  }
     
    8080  {
    8181    $Count = 20;
    82     $Output = '<strong>Poslední překlady:</strong>';
     82    $Output = '<strong>'.T('Latest translations').'</strong>';
    8383
    8484    $GroupListQuery = 'SELECT `Group`.* FROM `Group`';
     
    105105      $DbResult = $this->Database->query($Query);
    106106      $Output .= '<table class="BaseTable"><tr>'.
    107         '<th>Datum</th><th>Nový</th><th>Zdroj</th><th>Skupina</th></tr>';
     107        '<th>'.T('Date').'</th><th>'.T('New').'</th><th>'.T('Source').'</th><th>'.T('Group').'</th></tr>';
    108108      while($DbRow = $DbResult->fetch_assoc())
    109109      {
     
    122122    $parser = new HTML_BBCodeParser2(array('filters' => array('Basic','Extended','Images','Links','Lists','Email')));
    123123    $Count = 20;
    124     $Output = '<strong>Poslední příspěvky ve fóru:</strong>';
     124    $Output = '<strong>'.T('Lastest forum posts:').'</strong>';
    125125
    126126    $Output .= '<div class="shoutbox">';
     
    152152      $XP = GetLevelMinMax($UserLine['XP']);
    153153      $Output .=
    154         '<h3>Překladatel '.$UserLine['Name'].'</h3>'.
    155         'Výchozí jazyk: <strong>'.$UserLine['LanguageName'].'</strong><br />'.
    156         'Výchozí verze klienta: <a href="'.$this->System->Link('/client-version/?action=item&amp;id='.$UserLine['PreferredVersion']).'"><strong>'.$UserLine['Version'].'</strong></a><br />'.
    157         'Poslední připojení: <strong>'.HumanDateTime($UserLine['LastLogin']).'</strong><br />'.
    158         'Počet přeložených: <a href="TranslationList.php?user='.$UserLine['ID'].'&amp;state=2&amp;group=0" title="Zobrazit Všechny jeho přeložené texty"><strong>'.$UserLine['TranslatedCount'].'</strong></a><br />'.
    159         'Úroveň: <strong>'.$XP['Level'].'</strong> zkušenost: '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br/>';
     154        '<h3>'.T('Translator').' '.$UserLine['Name'].'</h3>'.
     155        T('Default language:').' <strong>'.$UserLine['LanguageName'].'</strong><br />'.
     156        T('Default client version:').' <a href="'.$this->System->Link('/client-version/?action=item&amp;id='.$UserLine['PreferredVersion']).'"><strong>'.$UserLine['Version'].'</strong></a><br />'.
     157        T('Last logged in:').' <strong>'.HumanDateTime($UserLine['LastLogin']).'</strong><br />'.
     158        T('Number of translated:').' <a href="TranslationList.php?user='.$UserLine['ID'].'&amp;state=2&amp;group=0" title="Zobrazit Všechny jeho přeložené texty"><strong>'.$UserLine['TranslatedCount'].'</strong></a><br />'.
     159        T('Level:').' <strong>'.$XP['Level'].'</strong> '.T('experience:').' '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br/>';
    160160      if($UserLine['TeamName'] != '')
    161         $Output .= 'Člen týmu: <a href="team/?action=team&amp;id='.$UserLine['Team'].'"><strong>'.$UserLine['TeamName'].'</strong></a><br />';
     161        $Output .= T('Member of team:').' <a href="team/?action=team&amp;id='.$UserLine['Team'].'"><strong>'.$UserLine['TeamName'].'</strong></a><br />';
    162162
    163163      // User tags
     
    167167      $DbResult = $this->Database->query($Query);
    168168      if ($DbResult->num_rows != 0) {
    169         $Output .= 'Překladatel se řídí těmito pravidly:<br />';
     169        $Output .= T('Translator is using this rules:').'<br />';
    170170        $Output .= '<ul>';
    171171        while ($UserTag = $DbResult->fetch_array()) {
     
    175175      }
    176176
    177     $Output .= '<br /><fieldset><legend>Text profilu:</legend>'.str_replace("\n", '<br/>', $UserLine['Info']).'</fieldset><br/>';
     177    $Output .= '<br /><fieldset><legend>'.T('Profile text:').'</legend>'.str_replace("\n", '<br/>', $UserLine['Info']).'</fieldset><br/>';
    178178
    179179    $Output .= '<table class="Home"><tr>'.
Note: See TracChangeset for help on using the changeset viewer.