Ignore:
Timestamp:
Feb 11, 2014, 5:18:51 PM (10 years ago)
Author:
maron
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/Page.php

    r783 r792  
    1616        function ExportList()
    1717        {
    18                 $Output = '<a href="?Action=ViewList">Všechny</a>';
     18                $Output = '<a href="?Action=ViewList">'.T('All').'</a>';
    1919                if($this->System->User->Licence(LICENCE_USER))
    2020                {
    2121                        $Output .= ' <a href="?Action=ViewList&amp;Filter=Others">Ostatních</a>'.
    22                                         ' <a href="?Action=ViewList&amp;Filter=My">Moje</a>';
     22                                        ' <a href="?Action=ViewList&amp;Filter=My">'.T('Mine').'</a>';
    2323                }
    2424       
    2525                if($this->System->User->Licence(LICENCE_USER))
    26                         $Output .= '<br/><div style="text-align: center;"><a href="?Action=Create">Vytvořit nový export</a></div><br/>';
     26                        $Output .= '<br/><div style="text-align: center;"><a href="?Action=Create">'.T('Create new export').'</a></div><br/>';
    2727               
    2828                $Filter = '';
     
    3737                $PageList = GetPageList($DbRow[0]);
    3838       
    39                 $Output .= '<h3>Seznam exportů</h3>'.
     39                $Output .= '<h3>'.T('List of export').'</h3>'.
    4040                                $PageList['Output'];
    4141       
    4242                $TableColumns = array(
    43                                 array('Name' => 'TimeCreate', 'Title' => 'Čas vytvoření'),
    44                                 array('Name' => 'UserName', 'Title' => 'Překladatel'),
    45                                 array('Name' => 'Title', 'Title' => 'Označení'),
     43                                array('Name' => 'TimeCreate', 'Title' => T('Time made')),
     44                                array('Name' => 'UserName', 'Title' => T('Translator')),
     45                                array('Name' => 'Title', 'Title' => T('Name od export')),
    4646                                //  array('Name' => 'UserCount', 'Title' => 'Vybraných překladatelů'),
    4747                                //  array('Name' => 'GroupCount', 'Title' => 'Překladových skupin'),
    48                                 array('Name' => 'OutputType', 'Title' => 'Typ výstupu'),
    49                                 array('Name' => 'ClientVersion', 'Title' => 'Verze klienta'),
    50                                 array('Name' => 'UsedCount', 'Title' => 'Prohlédnutí výstupu'),
    51                                 array('Name' => '', 'Title' => 'Akce'),
     48                                array('Name' => 'OutputType', 'Title' => T('Type of output')),
     49                                array('Name' => 'ClientVersion', 'Title' => T('Client version')),
     50                                array('Name' => 'UsedCount', 'Title' => T('Viewed count')),
     51                                array('Name' => '', 'Title' => T('Action')),
    5252                );
    5353                $Order = GetOrderTableHeader($TableColumns, 'TimeCreate', 1);
     
    6464                while($Export = $DbResult->fetch_assoc())
    6565                {
    66                         $Action = '<a href="?Action=View&amp;ExportId='.$Export['Id'].'&amp;Tab=0">Zobrazit</a> '.
    67                           '<a href="?Action=View&amp;ExportId='.$Export['Id'].'&amp;Tab=7">Exportovat</a>';
    68                         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>';
    69                         if($this->System->User->Id != null) $Action .= ' <a href="?Action=Clone&amp;ExportId='.$Export['Id'].'" onclick="return confirmAction(\'Opravdu klonovat položku?\');">Klonovat</a>';
     66                        $Action = '<a href="?Action=View&amp;ExportId='.$Export['Id'].'&amp;Tab=0">'.T('View').'</a> '.
     67                          '<a href="?Action=View&amp;ExportId='.$Export['Id'].'&amp;Tab=7">'.T('Make export').'</a>';
     68                        if($Export['User'] == $this->System->User->Id) $Action .= ' <a href="?Action=Delete&amp;ExportId='.$Export['Id'].'" onclick="return confirmAction(\''.T('Realy delete item?').'\');">'.T('Delete').'</a>';
     69                        if($this->System->User->Id != null) $Action .= ' <a href="?Action=Clone&amp;ExportId='.$Export['Id'].'" onclick="return confirmAction(\''.T('Realy clone item?').'\');">'.T('Clone').'</a>';
    7070                        $Output .= '<tr><td>'.HumanDate($Export['TimeCreate']).'</td>'.
    7171                                        '<td><a href="'.$this->System->Link('/user.php?user='.$Export['User']).'">'.$Export['UserName'].'</a></td>'.
     
    9191                        {
    9292                                $Output = '<form action="?Action=CreateFinish" method="post">'.
    93                                                 '<fieldset><legend>Vytvoření nového exportu</legend>'.
    94                                                 '<table><tr><td>Označení:</td><td><input type="text" name="Title" /></td></tr>'.
    95                                                 '<tr><td>Popis:</td><td><textarea name="Description" cols="54" rows="10"></textarea></td></tr>'.
    96                                                 '<tr><td colspan="2"><input type="submit" value="Vytvořit" /></td></tr>'.
     93                                                '<fieldset><legend>'.T('Creation of new export').'</legend>'.
     94                                                '<table><tr><td>'.T('Identification').':</td><td><input type="text" name="Title" /></td></tr>'.
     95                                                '<tr><td>'.T('Description').':</td><td><textarea name="Description" cols="54" rows="10"></textarea></td></tr>'.
     96                                                '<tr><td colspan="2"><input type="submit" value="'.T('Create').'" /></td></tr>'.
    9797                                                '</table></fieldset></form>';
    98                         } else $Output = ShowMessage('Nemůžete vytvářet další export. Max. počet na uživatele je '.$this->System->Config['MaxExportPerUser'].'.', MESSAGE_CRITICAL);
     98                        } else $Output = ShowMessage(T('You can\'t create another export. Max for one user is').$this->System->Config['MaxExportPerUser'].'.', MESSAGE_CRITICAL);
    9999                } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    100100                return($Output);
     
    113113                                        $this->System->Database->query('INSERT INTO `Export` (`Title`, `User`, `TimeCreate`, `WithDiacritic`, `Description`) VALUES ("'.$_POST['Title'].'", '.$this->System->User->Id.', NOW(), 1, "'.$_POST['Description'].'")');
    114114                                        $ExportId = $this->System->Database->insert_id;
    115                                         $Output = ShowMessage('Nový export vytvořen.<br/>Přímý odkaz na tento export: <a href="?Action=View&amp;ExportId='.$ExportId.'">zde</a>');
    116                                         $this->System->ModuleManager->Modules['Log']->WriteLog('Vytvořen nový export <a href="'.$this->System->Link('/export/?Action=View&amp;ExportId='.$ExportId).'">'.$ExportId.'</a>.', LOG_TYPE_EXPORT);
     115                                        $Output = ShowMessage(T('New export created.<br />Direct link to export').': <a href="?Action=View&amp;ExportId='.$ExportId.'">'.T('here').'</a>');
     116                                        $this->System->ModuleManager->Modules['Log']->WriteLog(T('New export created').' <a href="'.$this->System->Link('/export/?Action=View&amp;ExportId='.$ExportId).'">'.$ExportId.'</a>.', LOG_TYPE_EXPORT);
    117117                                        $_GET['Filter'] = 'my';
    118118                                        $this->ExportList();
    119                                 } else $Output = ShowMessage('Nemůžete vytvářet další export. Max. počet na uživatele je '.$this->System->Config['MaxExportPerUser'].'.', MESSAGE_CRITICAL);
    120                         } else $Output = ShowMessage('Chybí údaje formuláře.', MESSAGE_CRITICAL);
     119                                } else $Output = ShowMessage(T('You can\'t create another export. Max for one user is').' '.$this->System->Config['MaxExportPerUser'].'.', MESSAGE_CRITICAL);
     120                        } else $Output = ShowMessage(T('Missing data in form.'), MESSAGE_CRITICAL);
    121121                } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    122122                return($Output);
     
    137137                                $this->System->Database->query('DELETE FROM `Export` WHERE `Id`='.$_GET['ExportId']);
    138138                                DeleteDirectory('../tmp/Export/'.$_GET['ExportId'].'/');
    139                                 $Output = ShowMessage('Export smazán.');
     139                                $Output = ShowMessage(T('Export deleted.'));
    140140                                $_GET['Filter'] = 'my';
    141141                                $this->System->ModuleManager->Modules['Log']->WriteLog('Smazán export '.$_GET['ExportId'], LOG_TYPE_EXPORT);
    142142                                $Output .= $this->ExportList();
    143                         } else $Output = ShowMessage('Export nenalezen.', MESSAGE_CRITICAL);
     143                        } else $Output = ShowMessage(T('Export not found.'), MESSAGE_CRITICAL);
    144144                } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    145145                return($Output);
     
    208208                                $this->System->Database->query('SET @I = 0');
    209209                                $this->System->Database->query('UPDATE `ExportUser` SET `Sequence` = (@I := @I + 1) WHERE `Export`='.$_GET['ExportId'].' ORDER BY `Sequence`;');
    210                                 $Output .= ShowMessage('Výběr uložen.');
     210                                $Output .= ShowMessage(T('Select saved.'));
    211211                        }
    212212                }
    213213       
    214214                $TableColumns = array(
    215                                 array('Name' => 'Name', 'Title' => 'Jméno'),
    216                                 array('Name' => 'TranslatedCount', 'Title' => 'Překladů'),
    217                                 array('Name' => 'XP', 'Title' => 'Úroveň'),
    218                                 array('Name' => 'XP', 'Title' => 'Zkušenost'),
    219                                 array('Name' => '', 'Title' => 'Výběr'),
    220                                 array('Name' => 'Sequence2', 'Title' => 'Pořadí'),
     215                                array('Name' => 'Name', 'Title' => T('Name')),
     216                                array('Name' => 'TranslatedCount', 'Title' => T('Translated count')),
     217                                array('Name' => 'XP', 'Title' => T('Level')),
     218                                array('Name' => 'XP', 'Title' => T('Experience')),
     219                                array('Name' => '', 'Title' => T('Select')),
     220                                array('Name' => 'Sequence2', 'Title' => T('Order')),
    221221                );
    222222                $Order = GetOrderTableHeader($TableColumns, 'TranslatedCount', 1);
     
    233233       
    234234                $Output .= '<form name="Translators" action="?Action=View&amp;ExportId='.$_GET['ExportId'].'" method="post">'.
    235                                 '<h3>Překladatelé</h3>';
     235                                '<h3>'.T('Translators').'</h3>';
    236236                if($Editable)
    237237                {
    238                         $Output .= '<input type="submit" value="Uložit" '.$DisabledInput[$Editable].'/>'.
     238                        $Output .= '<input type="submit" value="'.T('Save').'" '.$DisabledInput[$Editable].'/>'.
    239239                                        '<input type="hidden" name="Operation" value="Save"/><br />'.
    240                                         ' <span onclick="CheckAllCheckbox();">'.CheckBox('CheckAll', False, 'CheckAll').' Zatrhnout vše na stránce</span> <br />'.
     240                                        ' <span onclick="CheckAllCheckbox();">'.CheckBox('CheckAll', False, 'CheckAll').' '.T('Select all on page').'</span> <br />'.
    241241                                        ' <span>'.CheckBox('AllUsers', $Export['AllUsers']).' '.T('Export allways from all users').'</span> '.
    242242                                        '<br />'.
    243                                         'Zvolte ze seznamu uživatele, od kterých chcete načítat překlady a upravte jejich pořadí.<br />'.
    244                                         'Pořadí řádků je dáno číselnou hodnotou, kterou lze změnit na požadované pořadí. Řádky se stejným pořadovým číslem budou přečíslovány vzestupně.';
     243                                        T('Select users from list which you want to export from. And edit their order.').'<br />'.
     244                                        T('Order is done by numeric value which is can be edit to desirable order. Lines with same number will be renumbered in ascending order.');
    245245                }
    246246       
     
    303303                                                '<tr><td colspan="2">';
    304304        if($Editable) $Output .= ' <input type="submit" value="Uložit" '.$DisabledInput[$Editable].'/>';
    305         $Output .= ' <a href="?Action=Clone&amp;ExportId='.$Export['Id'].'" onclick="return confirmAction(\'Opravdu klonovat položku?\');">Klonovat</a> ';
     305        $Output .= ' <a href="?Action=Clone&amp;ExportId='.$Export['Id'].'" onclick="return confirmAction(\''.T('Realy clone item?').'\');">'.T('Clone').'</a> ';
    306306        if($this->System->User->Licence(LICENCE_ADMIN))
    307           $Output .= CheckBox('Featured', $Export['Featured'], '', 'CheckBox', !$Editable). ' Doporučený ';
     307          $Output .= CheckBox('Featured', $Export['Featured'], '', 'CheckBox', !$Editable). ' '.T('Recommended').' ';
    308308        $Output .= '</td></tr>';
    309309                        }
    310                         $Output .= '<tr><td>Označení:</td><td><input type="text" style="width: 400px" name="Title" value="'.$Export['Title'].'"'.$DisabledInput[$Editable].'/></td></tr>'.
     310                        $Output .= '<tr><td>'.T('Identification').':</td><td><input type="text" style="width: 400px" name="Title" value="'.$Export['Title'].'"'.$DisabledInput[$Editable].'/></td></tr>'.
    311311                                        '<tr><td>Popis:</td><td><textarea name="Description" cols="54" rows="10"'.$DisabledTextArea[$Editable].'>'.$Export['Description'].'</textarea></td></tr>'.
    312                                         '<tr><td>Včetně háčků a čárek</td><td><input type="checkbox" name="WithDiacritic" '.$WithDiacritic.''.$DisabledInput[$Editable].'/></td></tr>'.
     312                                        '<tr><td>'.T('With diacritics').'</td><td><input type="checkbox" name="WithDiacritic" '.$WithDiacritic.''.$DisabledInput[$Editable].'/></td></tr>'.
    313313                                        '</table></form>';
    314314                        return($Output);
     
    368368       
    369369                $TableColumns = array(
    370                                 array('Name' => 'Name', 'Title' => 'Název'),
    371                                 array('Name' => '', 'Title' => 'Výběr'),
    372                                 array('Name' => 'Sequence2', 'Title' => 'Pořadí'),
     370                                array('Name' => 'Name', 'Title' => T('Name')),
     371                                array('Name' => '', 'Title' => T('Select')),
     372                                array('Name' => 'Sequence2', 'Title' => T('Order')),
    373373                );
    374374                $Order = GetOrderTableHeader($TableColumns, 'Sequence2');
    375375                $Output .= '<form action="?Action=View&amp;ExportId='.$_GET['ExportId'].'" method="post">'.
    376                                 '<h3>Jazyky</h3>';
     376                                '<h3>'.T('Languages').'</h3>';
    377377                if($Editable)
    378378                {
    379                         $Output .= '<input type="submit" value="Uložit" '.$DisabledInput[$Editable].'/>'.
     379                        $Output .= '<input type="submit" value="'.T('Save').'" '.$DisabledInput[$Editable].'/>'.
    380380                                        '<input type="hidden" name="Operation" value="Save"/>'.
    381381                                        '<br />'.
    382                                         'Zvolte ze seznamu dostupných jazyků, ze kterých chcete sestavit překlady a upravte jejich pořadí.<br />'.
    383                                         'Pořadí řádků je dáno číselnou hodnotou, kterou lze změnit na požadované pořadí. Řádky se stejným pořadovým číslem budou přečíslovány vzestupně.';
     382                                        T('Select languades from list witch you want to export from. And edit theirs order.').'<br />'.
     383                                        T('Order is done by numeric value which is can be edit to desirable order. Lines with same number will be renumbered in ascending order.');
    384384                }
    385385       
     
    441441                                        }
    442442                                }
    443                                 $Output .= ShowMessage('Výběr uložen.');
     443                                $Output .= ShowMessage(T('Select saved.'));
    444444                        }
    445445          //items
     
    475475       
    476476                $TableColumns = array(
    477                                 array('Name' => '', 'Title' => 'Výběr'),
    478                                 array('Name' => 'Name', 'Title' => 'Jméno'),
     477                                array('Name' => '', 'Title' => T('Select')),
     478                                array('Name' => 'Name', 'Title' => T('Name')),
    479479                                array('Name' => 'MangosTable', 'Title' => 'Mangos/DBC/Lua'),
    480480                //              array('Name' => 'DBCFileName', 'Title' => 'DBC soubor'),
    481481                //              array('Name' => 'LuaFileName', 'Title' => 'Lua soubor'),
    482                                 array('Name' => '', 'Title' => 'Položky překladu'),
     482                                array('Name' => '', 'Title' => T('Items of tranlation')),
    483483                );
    484484                $Order = GetOrderTableHeader($TableColumns, 'Name');
     
    487487                if($Editable)
    488488                {
    489                         $Output .= '<input type="submit" value="Uložit" '.$DisabledInput[$Editable].'/>'.
     489                        $Output .= '<input type="submit" value="'.T('Save').'" '.$DisabledInput[$Editable].'/>'.
    490490                                        '<input type="hidden" name="Operation" value="Save"/>'.
    491                                         ' <span onclick="CheckAllCheckbox();">'.CheckBox('CheckAll', False, 'CheckAll').' Zatrhnout vše</span> '.
     491                                        ' <span onclick="CheckAllCheckbox();">'.CheckBox('CheckAll', False, 'CheckAll').' '.T('Select all').'</span> '.
    492492                                        '<br />'.
    493                                         'Zvolte ze překladových skupin, ze kterých chcete načítat překlady.<br />';
     493                                        T('Select translation groups witch you want to export.').'<br />';
    494494                }
    495495       
     
    553553                                                {
    554554                                                  $this->System->Database->query('UPDATE Export SET OutputType='.$_POST['OutputType'].' WHERE Id='.$_GET['ExportId']);
    555                                                   $Output .= ShowMessage('Výběr uložen.');
    556                                           } else $Output .= ShowMessage('Nevybrán žádný formát', MESSAGE_CRITICAL);
     555                                                  $Output .= ShowMessage(T('Select saved.'));
     556                                          } else $Output .= ShowMessage(T('Format wasn\'t selected'), MESSAGE_CRITICAL);
    557557                                        }
    558558       
     
    560560                                        $Export = $DbResult->fetch_assoc();
    561561       
    562                                         $Output .= '<h3>Formát generovaného výstupu</h3>'.
     562                                        $Output .= '<h3>'.T('Format the generated output').'</h3>'.
    563563                                                        '<form action="?Action=View&amp;ExportId='.$_GET['ExportId'].'" method="post">';
    564564                                        if($Editable)
    565565                                        {
    566                                                 $Output .= '<input type="submit" value="Uložit" '.$DisabledInput[$Editable].'/>'.
     566                                                $Output .= '<input type="submit" value="'.T('Save').'" '.$DisabledInput[$Editable].'/>'.
    567567                                                                '<input type="hidden" name="Operation" value="Save"/>'.
    568568                                                                '<br />';
     
    574574                                        }
    575575                                        $Output .= '</form>';
    576                         } else $Output .= ShowMessage('Položka nenalezena.', MESSAGE_CRITICAL);
    577                 } else $Output .= ShowMessage('Nebylo zadáno Id.', MESSAGE_CRITICAL);
     576                        } else $Output .= ShowMessage(T('Item not found'), MESSAGE_CRITICAL);
     577                } else $Output .= ShowMessage(T('Is isn\'t select'), MESSAGE_CRITICAL);
    578578                return($Output);
    579579        }
     
    592592                        {
    593593                                $this->System->Database->query('UPDATE `Export` SET `ClientVersion`='.$_POST['ClientVersion'].' WHERE `Id`='.$_GET['ExportId']);
    594                                 $Output .= ShowMessage('Výběr uložen.');
     594                                $Output .= ShowMessage(T('Select saved.'));
    595595                        }
    596596       
     
    608608       
    609609                                $TableColumns = array(
    610                                                 array('Name' => 'Version', 'Title' => 'Verze'),
    611                                                 array('Name' => 'BuildNumber', 'Title' => 'Sestavení'),
    612                                                 array('Name' => 'ReleaseDate', 'Title' => 'Datum uvolnění'),
    613                                                 array('Name' => 'Title', 'Title' => 'Titutek'),
    614                                                 array('Name' => '', 'Title' => 'Výběr'),
     610                                                array('Name' => 'Version', 'Title' => T('Version')),
     611                                                array('Name' => 'BuildNumber', 'Title' => T('Build')),
     612                                                array('Name' => 'ReleaseDate', 'Title' => T('Release date')),
     613                                                array('Name' => 'Title', 'Title' => T('Name2')),
     614                                                array('Name' => '', 'Title' => T('Select')),
    615615                                );
    616616                                $Order = GetOrderTableHeader($TableColumns, 'BuildNumber', 1);
    617617                                $Output .= '<form action="?Action=View&amp;ExportId='.$_GET['ExportId'].'" method="post">'.
    618                                                 '<h3>Verze klienta</h3>';
     618                                                '<h3>'.T('Client version').'</h3>';
    619619       
    620620                                if($Editable)
    621621                                {
    622                                         $Output .= '<input type="submit" value="Uložit" '.$DisabledInput[$Editable].'/>'.
     622                                        $Output .= '<input type="submit" value="'.T('Save').'" '.$DisabledInput[$Editable].'/>'.
    623623                                                        '<input type="hidden" name="Operation" value="Save"/>'.
    624624                                                        '<br />'.
    625                                                         'Vyberte pro jakou verzi herního klienta se budou texty exportovat.<br />';
     625                                                        T('Select version of game client witch you want to export.').'<br />';
    626626                                }
    627627                                $Output .= $PageList['Output'].
     
    653653                $Export = $DbResult->fetch_assoc();
    654654                if($Export['OutputType'] == '') $Output .= ShowMessage('Nevybrán typ exportu', MESSAGE_CRITICAL);
    655                 else if($Export['ClientVersion'] == '') $Output .= ShowMessage('Export nemá vybránu verzi klienta', MESSAGE_CRITICAL);
     655                else if($Export['ClientVersion'] == '') $Output .= ShowMessage(T('Export don\'t have selected version of client'), MESSAGE_CRITICAL);
    656656                else {
    657657                        $DbResult = $this->System->Database->query('SELECT * FROM `ExportOutputType` WHERE `Id`='.$Export['OutputType']);
     
    664664                                          $this->System->Database->query('UPDATE `Export` SET `UsedCount` = `UsedCount` + 1 WHERE `Id`='.$Export['Id']);
    665665                                        $Output = ExportOutput($Export['Id'], $Export['OutputType']);
    666                                 } else $Output = ShowMessage('Nebyla vybrána požadovaná verze klienta.', MESSAGE_CRITICAL);
    667                         } else $Output = ShowMessage('Nebyl vybrán formát výstupu.', MESSAGE_CRITICAL);
     666                                } else $Output = ShowMessage(T('Export don\'t have selected version of client'), MESSAGE_CRITICAL);
     667                        } else $Output = ShowMessage(T('Format output isn\'t select').'.', MESSAGE_CRITICAL);
    668668                }
    669669                return($Output);
     
    678678       
    679679                if(($Export->Export['ClientVersion'] == '') or ($Export->ClientVersion['BuildNumber'] == ''))
    680                         $Output = ShowMessage('Nebyla vybrána verze klienta', MESSAGE_CRITICAL);
     680                        $Output = ShowMessage(T('Export don\'t have selected version of client'), MESSAGE_CRITICAL);
    681681                else {
    682682                        $GroupListQuery = 'SELECT `Group`.* FROM `Group` '.
     
    703703                        $DbRow = $DbResult->fetch_row();
    704704                        $PageList = GetPageList($DbRow[0]);
    705                         $Output = '<h3>Statistika dokončení vybraných skupin</h3>'.
     705                        $Output = '<h3>'.T('Statistic of coplection selected groups').'</h3>'.
    706706                                $PageList['Output'];
    707707       
    708708                        $Output .= '<table class="BaseTable">';
    709709                        $TableColumns = array(
    710                                 array('Name' => 'Name', 'Title' => 'Jméno'),
    711                                 array('Name' => 'Translated', 'Title' => 'Přeložených'),
    712                                 array('Name' => 'Total', 'Title' => 'Anglických'),
    713                                 array('Name' => 'Percent', 'Title' => 'Procenta'),
     710                                array('Name' => 'Name', 'Title' => T('Name')),
     711                                array('Name' => 'Translated', 'Title' => T('Translated count')),
     712                                array('Name' => 'Total', 'Title' => T('English')),
     713                                array('Name' => 'Percent', 'Title' => T('Percent')),
    714714                        );
    715715       
     
    732732                        else $Percent = 100;
    733733       
    734                         $Output .= '<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, round($Percent, 2)).'</strong></td></tr>';
     734                        $Output .= '<tr><td><strong>'.T('Altogether').'</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, round($Percent, 2)).'</strong></td></tr>';
    735735                        $Output .= '</table>';
    736736                }
     
    751751                                $UserLine = $DbResult->fetch_assoc();
    752752                                $Output .= 'Export <strong><a href="?Action=View&amp;Tab=6&amp;ExportId='.$Export['Id'].'">'.$_GET['ExportId'].'</a></strong> překladatele <strong>'.$UserLine['Name'].'</strong> s označením <strong>'.$Export['Title'].'</strong>';
    753                                 $Output .= ShowTabs(array('Obecné', 'Překladatelé', 'Překlady', 'Jazyky', 'Formát', 'Verze', 'Statistika', 'Výstup'));
     753                                $Output .= ShowTabs(array(T('General'), T('Translators'), 'Překlady', T('Languages'), T('Format'), T('Version'), T('Statistic'), T('Output')));
    754754                                $Output .= '<div id="content">';
    755755                                if($_SESSION['Tab'] == TAB_GENERAL) $Output .= $this->ExportViewGeneral();
     
    764764       
    765765                                $Output .= '</div>';
    766                         } else $Output .= ShowMessage('Export nenalezen.', MESSAGE_CRITICAL);
    767                 } else $Output .= ShowMessage('Nebylo zadáno Id.', MESSAGE_CRITICAL);
     766                        } else $Output .= ShowMessage(T('Export not found.'), MESSAGE_CRITICAL);
     767                } else $Output .= ShowMessage(T('Is isn\'t select'), MESSAGE_CRITICAL);
    768768                return($Output);
    769769        }
     
    787787                                    $DbRow['User'] = $this->System->User->Id;                             
    788788                                    $DbRow['TimeCreate'] = 'NOW()';
    789                                     $DbRow['Title'] .= ' - kopie';
     789                                    $DbRow['Title'] .= ' - '.T('clone');
    790790                                          $this->System->Database->insert('Export', $DbRow);
    791791                                    $ExportId = $this->System->Database->insert_id;                                     
     
    794794                                    $this->System->Database->query('INSERT INTO `ExportLanguage` (SELECT NULL AS `Id`, '.$ExportId.' AS `Export`, `Language`, `Sequence` FROM `ExportLanguage` WHERE `Export`='.$_GET['ExportId'].')');
    795795                                    $this->System->Database->query('INSERT INTO `ExportUser` (SELECT NULL AS `Id`, '.$ExportId.' AS `Export`, `User`, `Sequence` FROM `ExportUser` WHERE `Export`='.$_GET['ExportId'].')');
    796                                           $Output = ShowMessage('Kopie exportu vytvořena.<br/>Přímý odkaz na tento export: <a href="?Action=View&amp;ExportId='.$ExportId.'">zde</a>');
    797                                           $this->System->ModuleManager->Modules['Log']->WriteLog('Vytvořena kopie exportu <a href="'.$this->System->Link('/export/?Action=View&amp;ExportId='.$ExportId).'">'.$ExportId.'</a>.', LOG_TYPE_EXPORT);
     796                                          $Output = ShowMessage(T('Clone export created.<br />Direct link to export').': <a href="?Action=View&amp;ExportId='.$ExportId.'">zde</a>');
     797                                          $this->System->ModuleManager->Modules['Log']->WriteLog(T('Clone export created').' <a href="'.$this->System->Link('/export/?Action=View&amp;ExportId='.$ExportId).'">'.$ExportId.'</a>.', LOG_TYPE_EXPORT);
    798798                                          $_GET['Filter'] = 'my';
    799799                                          $this->ExportList();
     
    801801                                } else $Output = ShowMessage('Nemůžete vytvářet další export. Max. počet na uživatele je '.
    802802                                        $this->System->Config['MaxExportPerUser'].'.', MESSAGE_CRITICAL);
    803                         } else $Output = ShowMessage('Export nenalezen.', MESSAGE_CRITICAL);
     803                        } else $Output = ShowMessage(T('Export not found.'), MESSAGE_CRITICAL);
    804804                } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    805805                return($Output);
Note: See TracChangeset for help on using the changeset viewer.