Ignore:
Timestamp:
Jan 14, 2016, 10:54:41 PM (8 years ago)
Author:
chronos
Message:
  • Modified: More translated texts.
  • Modified: Promotion and info page transformed to Info application module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Translation/Form.php

    r843 r844  
    8888            $LineUser = array('Name' => '');
    8989
    90           $Output .= 'Skupina: <strong>'.$TranslationTree[$GroupId]['Name'].'</strong><br />';
     90          $Output .= T('Group').': <strong>'.$TranslationTree[$GroupId]['Name'].'</strong><br />';
    9191
    9292          if(($Line['Language'] <> 0) and ($LineUser['Name'] <> ''))
    93             $Output .= 'Přeložil: <a href="'.$this->System->Link('/user/?user='.$Line['User']).'"><strong>'.$LineUser['Name'].'</strong></a> dne '.HumanDate($Line['ModifyTime']).'<br />';
     93            $Output .= T('Translated by').': <a href="'.$this->System->Link('/user/?user='.$Line['User']).'"><strong>'.$LineUser['Name'].'</strong></a> dne '.HumanDate($Line['ModifyTime']).'<br />';
    9494          if(($Line['Take'] <> 0) and ($Line['Take'] <> $Line['ID']))
    9595          {
     
    101101            $Lang = $DbResult->fetch_assoc();
    102102
    103             $Output .= 'Původní text: <strong>'.
     103            $Output .= T('Original text').': <strong>'.
    104104              ' ID <a href="form.php?group='.$GroupId.'&amp;ID='.$Line['Take'].'">'.$Line['Take'].'</a></strong>'.
    105105              ' ('.$Lang['Name'].')'.
     
    109109          if($Line['Language'] <> 0)
    110110          {
    111             if($Line['Complete'] == 1) $Output .= ' <b>Hotov</b>';
    112             else $Output .= ' <b> Uložen v rozepsaných</b> ';
    113           } else $Output .= ' <b>Anglická, původní verze</b> ';
     111            if($Line['Complete'] == 1) $Output .= ' <b>'.T('Completed').'</b>';
     112            else $Output .= ' <b>'.T('Stored in unfinished').'</b> ';
     113          } else $Output .= ' <b>'.T('Original version').'</b> ';
    114114
    115115          $Output .= '<br />'.
    116             'Verze: <b><a href="'.$this->System->Link('/client-version/?action=item&amp;id='.GetVersionWOWId($Line['VersionStart'])).'">'.GetVersionWOW($Line['VersionStart']).
     116            T('Version').': <b><a href="'.$this->System->Link('/client-version/?action=item&amp;id='.GetVersionWOWId($Line['VersionStart'])).'">'.GetVersionWOW($Line['VersionStart']).
    117117            '</a> - <a href="'.$this->System->Link('/client-version/?action=item&amp;id='.GetVersionWOWId($Line['VersionEnd'])).'">'.GetVersionWOW($Line['VersionEnd']).'</a></b>'.
    118118            '<br />';
     
    125125          {
    126126            $Output .= '<form action="comparison.php" method="get"><a href="TranslationList.php?group='.
    127               $GroupId.'&amp;user=0&amp;state=2&amp;entry='.$Line['Entry'].'&amp;text=">Počet verzí: <strong>'.$Version.'</strong></a>
     127              $GroupId.'&amp;user=0&amp;state=2&amp;entry='.$Line['Entry'].'&amp;text=">'.T('Number of versions').': <strong>'.$Version.'</strong></a>
    128128            <input type="hidden" name="group" value="'.$GroupId.'" />
    129129            <input type="hidden" name="entry" value="'.$Line['Entry'].'" />
    130130            <input type="hidden" name="ID2" value="'.$TextID.'" />';
    131131
    132             if($this->System->User->Licence(LICENCE_USER)) { //allow to compare only to user
     132            if($this->System->User->Licence(LICENCE_USER)) { // allow to compare only to user
    133133              $Output .= '<select onchange="this.form.submit();" name="ID1">
    134               <option value="-1">Vyberte text k porovnání</option>
    135               <option value="-1">Zobrazit/porovnat všechny</option>';
     134              <option value="-1">'.T('Select text for comparison').'</option>
     135              <option value="-1">'.T('Show/compare all').'</option>';
    136136              $DataID = $this->Database->query('SELECT *, (SELECT `User`.`Name` AS `UserName` FROM `User` WHERE `User`.`ID` = `'.$Table.'`.`User`) AS `UserName` FROM `'.$Table.'` WHERE (`Entry` = '.$Line['Entry'].') AND (`ID` <> '.$Line['ID'].')');
    137137              while($Version = $DataID->fetch_array())
    138138              {
    139139                if($Version['ID'] == $Line['Take']) $Output .= '<option value="'.
    140                  $Version['ID'].'">'.$Version['ID'].' - '.$Version['User'].' (převzato)</option>';
     140                 $Version['ID'].'">'.$Version['ID'].' - '.$Version['User'].' ('.T('taken over').')</option>';
    141141                else
    142142                {
    143                   if($Version['Language'] == 0) $Version['UserName'] = 'Předloha';
     143                  if($Version['Language'] == 0) $Version['UserName'] = T('Original');
    144144                  $Output .= '<option value="'.$Version['ID'].'">'.$Version['ID'].' - '.
    145145                      $Version['UserName'].' ('.GetVersionWOW($Version['VersionStart']).' - '.
     
    153153          {
    154154            $Output .= '<a href="TranslationList.php?group='.$GroupId.'&amp;user=0&amp;state=2&amp;entry='.
    155               $Line['Entry'].'&amp;text=">Počet verzí: <strong>'.$Version.'</strong></a>';
     155              $Line['Entry'].'&amp;text=">'.T('Number of versions').': <strong>'.$Version.'</strong></a>';
    156156          }
    157157
     
    159159          if($this->System->User->Licence(LICENCE_USER))
    160160          {
    161             $Output .= '<form action="save.php?group='.$GroupId.'" method="post"><div>';
     161            $Output .= '<form action="'.$this->System->Link('/save.php?group='.$GroupId).'" method="post"><div>';
    162162            // TODO: Remove fixed group id condition
    163163          //  if(($GroupId < 4) or ($GroupId == 10) or ($GroupId == 11))
    164               $Output .= '<a href="'.$this->System->Link('/dictionary/?action=group&amp;group='.$GroupId.'&amp;ID='.$LineAJ['ID']).'" target="_blank"  title="Zobrazit přeložené názvy věci, postav, a herních objektů k tomuto překladu">Vyhledat v názvech</a>';
    165             $Output .= ' <input type="submit" value="Uložit do rozepsaných" name="save" title="Klikněte na uložit pro pozdější dokončení překladu" />'.
    166                 '<input type="submit" value="Dokončeno" name="End" title="Klikněte na Dokončeno jesli jsou všechny texty hotové a chcete již publikovat" /> ';
     164            $Output .= '<a href="'.$this->System->Link('/dictionary/?action=group&amp;group='.
     165              $GroupId.'&amp;ID='.$LineAJ['ID']).'" target="_blank"  title="Zobrazit přeložené názvy věci, postav, a herních objektů k tomuto překladu">'.T('Search in names').'</a>';
     166            $Output .= ' <input type="submit" value="'.T('Store to unfinished').
     167              '" name="save" title="Klikněte na uložit pro pozdější dokončení překladu" />'.
     168              '<input type="submit" value="'.T('Finished').'" name="End" title="Klikněte na Dokončeno jesli jsou všechny texty hotové a chcete již publikovat" /> ';
    167169            FollowingTran($TextID, $Table, $GroupId, true);
    168170            FollowingTran($TextID, $Table, $GroupId);
     
    170172
    171173          if($TranslationTree[$GroupId]['WowheadName'] != '')
    172             $WowheadLink = '<a href="http://www.wowhead.com/?'.$TranslationTree[$GroupId]['WowheadName'].'='.$LineAJ['Entry'].'">'.$LineAJ['Entry'].'</a>';
     174            $WowheadLink = '<a href="http://www.wowhead.com/?'.$TranslationTree[$GroupId]['WowheadName'].
     175              '='.$LineAJ['Entry'].'">'.$LineAJ['Entry'].'</a>';
    173176          else $WowheadLink = $LineAJ['Entry'];
    174177
     
    178181          <table class="BaseTable">
    179182          <tr>
    180           <th>Číslo textu: '.$WowheadLink.'</th>
    181           <th>Nepřeložené</th>
    182           <th>Přeložené</th>
     183          <th>'.T('Text number').': '.$WowheadLink.'</th>
     184          <th>'.T('Not translated').'</th>
     185          <th>'.T('Translated').'</th>
    183186          </tr>
    184187          <tr>
    185           <th>Jazyk</th>
    186           <td>Anglický</td>
     188          <th>'.T('Language').'</th>
     189          <td>'.T('Original').'</td>
    187190          <td>';
    188191          if($Line['Language'] <> 0) $Language = $Line['Language'];
     
    241244              {
    242245              $Output .= '<br/><table class="BaseTable">'.
    243               '<tr><th>Google překladač:</th><th>Nepřeložené</th><th>Přeložené</th>';
     246              '<tr><th>'.T('Google translator').':</th><th>'.T('Not translated').'</th><th>'.T('Translated').'</th>';
    244247              foreach($TranslationTree[$GroupId]['Items'] as $Index => $TextItem)
    245248                if($TextItem['Visible'] == 1)
Note: See TracChangeset for help on using the changeset viewer.