Changeset 844


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.
Location:
trunk
Files:
2 added
2 deleted
7 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)
  • trunk/Modules/User/Profile.php

    r843 r844  
    156156        T('Default client version:').' <a href="'.$this->System->Link('/client-version/?action=item&amp;id='.$UserLine['PreferredVersion']).'"><strong>'.$UserLine['Version'].'</strong></a><br />'.
    157157        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 />'.
     158        T('Number of translated:').' <a href="'.$this->System->Link('/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 />'.
    159159        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'] != '')
  • trunk/Modules/User/Registration.php

    r843 r844  
    121121                if($Team == 0) $Team = 'NULL';
    122122                $this->System->User->Register($UserName, $Pass, $Email, $Language, $Team, $PreferredVersion);
    123                 $Output .= ShowMessage('Registrace proběhla úspěšně.');
    124                 $Output .= 'Přečtěte si pozorně <a href="'.$this->System->Link('/info.php').'">pokyny pro překladání</a> a můžete pak hned začít překládat.';
     123                $Output .= ShowMessage(T('Registration was successful'));
     124                $Output .= 'Přečtěte si pozorně <a href="'.$this->System->Link('/info/').'">pokyny pro překladání</a> a můžete pak hned začít překládat.';
    125125                $this->System->User->Login($UserName, $Pass);
    126126                $this->System->ModuleManager->Modules['Log']->WriteLog('Uživatel se zaregistroval: '.$UserName, LOG_TYPE_USER);
     
    128128
    129129                // User tags
    130                 $Query = 'SELECT * FROM UserTagType';
     130                $Query = 'SELECT * FROM `UserTagType`';
    131131                $DbResult = $this->Database->query($Query);
    132132                while ($UserTag = $DbResult->fetch_array()) {
  • trunk/includes/Version.php

    r843 r844  
    66// and system will need database update.
    77
    8 $Revision = 843; // Subversion revision
     8$Revision = 844; // Subversion revision
    99$DatabaseRevision = 811; // Database structure revision
    1010$ReleaseTime = '2016-01-14';
  • trunk/includes/global.php

    r842 r844  
    3434include_once(dirname(__FILE__).'/../Modules/Redirection/Redirection.php');
    3535include_once(dirname(__FILE__).'/../Modules/Admin/Admin.php');
     36include_once(dirname(__FILE__).'/../Modules/Info/Info.php');
    3637
    3738
  • trunk/includes/system.php

    r843 r844  
    7373      ),
    7474    */
    75       array(
    76         'Title' => T('Instructions'),
    77         'Hint' => 'Informace k překladu hry',
    78         'Link' => $this->Link('/info.php'),
    79         'Permission' => LICENCE_ANONYMOUS,
    80         'Icon' => '',
    81       ),
    82       array(
    83         'Title' => T('Presentation'),
    84         'Hint' => 'Prezentace a motivace překladu',
    85         'Link' => $this->Link('/promotion.php'),
    86         'Permission' => LICENCE_ANONYMOUS,
    87         'Icon' => '',
    88       ),
    8975      array(
    9076        'Title' => T('IRC chat'),
     
    152138    $this->ModuleManager->RegisterModule(new ModuleRedirection($this));
    153139    $this->ModuleManager->RegisterModule(new ModuleAdmin($this));
     140    $this->ModuleManager->RegisterModule(new ModuleInfo($this));
    154141    $this->ModuleManager->FileName = dirname(__FILE__).'/../Config/ModulesConfig.php';
    155142    // TODO: Allow control from web which modules should be installed
  • trunk/locale/cs.php

    r843 r844  
    358358      'To version' => 'Verze do',
    359359      'Count' => 'Počet',
     360      'Translated by' => 'Přeložil',
     361      'Original text' => 'Původní text',
     362      'Completed' => 'Hotov',
     363      'Stored in unfinished' => 'Uložen v rozepsaných',
     364      'Original version' => 'Anglická, původní verze',
     365      'Number of versions' => 'Počet verzí',
     366      'Select text for comparison' => 'Vyberte text k porovnání',
     367      'Show/compare all' => 'Zobrazit/porovnat všechny',
     368      'taken over' => 'převzato',
     369      'Store to unfinished' => 'Uložit do rozepsaných',
     370      'Search in names' => 'Vyhledat v názvech',
     371      'Finished' => 'Dokončeno',
     372      'Text number' => 'Číslo textu',
     373      'Google translator' => 'Google překladač',
     374      'Registration was successful' => 'Registrace proběhla úspěšně.',
    360375      ),
    361376      'URL' => array(
     
    379394        'news' => 'novinky',
    380395        'shoutbox' => 'kecatko',
     396        'promotion' => 'propagace',
    381397      ),
    382398    );
Note: See TracChangeset for help on using the changeset viewer.