Changeset 846


Ignore:
Timestamp:
Jan 15, 2016, 10:24:05 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Now translation groups are also localized.
  • Modified: Translated team page.
Location:
trunk
Files:
16 edited

Legend:

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

    r843 r846  
    9292    {
    9393      $Output .= '<form action="?action=save" method="post">'.
    94         '<fieldset><legend>Vložení nového slova</legend>'.
     94        '<fieldset><legend>'.T('New word insertion').'</legend>'.
    9595        '<table><tr><td>'.
    96         'Původní anglické slovo:</td><td><input type="text" name="Original" /></td></tr>'.
     96        T('Original word').':</td><td><input type="text" name="Original" /></td></tr>'.
    9797        '<tr><td>'.T('Translated').':</td><td><input type="text" name="Translated" /></td></tr>'.
    9898        '<tr><td>'.T('Language').':</td><td>'.WriteLanguages($_SESSION['language']).'</td></tr>'.
     
    238238      if($Language['Enabled'] == 1)
    239239      {
    240         $Lang = ' <a href="?language='.$Language['Id'].'">'.$Language['Name'].'</a>';
     240        $Lang = ' <a href="?language='.$Language['Id'].'">'.T($Language['Name']).'</a>';
    241241        if($Language['Id'] == $_SESSION['language']) $Output .= '<strong>'.$Lang.'</strong> ';
    242242          else $Output .= $Lang;
     
    290290        '<td>'.$Line['Original'].'</td>'.
    291291        '<td><strong>'.$Line['Translated'].'</strong></td>';
    292       if(!is_numeric($_SESSION['language'])) $Output .= '<td>'.$Line['LangName'].'</td>';
     292      if(!is_numeric($_SESSION['language'])) $Output .= '<td>'.T($Line['LangName']).'</td>';
    293293      $Output .= '<td>'.$Line['Description'].'</td>'.
    294294        '<td><a href="'.$this->System->Link('/user/?user='.$Line['UserId']).'">'.
  • trunk/Modules/Export/Page.php

    r843 r846  
    380380    {
    381381      $Output .= '<input type="submit" value="'.T('Save').'" '.$DisabledInput[$Editable].'/>'.
    382           '<input type="hidden" name="Operation" value="Save"/>'.
    383           '<br />'.
    384           T('Select languades from list witch you want to export from. And edit theirs order.').'<br />'.
    385           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.');
     382        '<input type="hidden" name="Operation" value="Save"/>'.
     383        '<br />'.
     384        T('Select languades from list witch you want to export from. And edit theirs order.').'<br />'.
     385        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.');
    386386    }
    387387
     
    399399      $Sequence = '<input type="text" name="seq'.$Langugage['Id'].'" style="text-align: center; width: 40px;" value="'.$Langugage['Sequence2'].'"'.$DisabledInput[$Editable].'/>';
    400400      $Output .= '<tr>
    401       <td>'.$Langugage['Name'].'</td>
     401      <td>'.T($Langugage['Name']).'</td>
    402402      <td>'.$Selection.'</td><td>'.$Sequence.'</td></tr>';
    403403    }
     
    448448      foreach($TranslationTree as $Group)
    449449      {
    450       //  echo $Group['Id'].' ';
    451450        foreach($TranslationTree[$Group['Id']]['Items'] as $Column) {
    452451          if(array_key_exists('item'.$Column['Id'], $_POST)) $Selected = true;
     
    486485    $Order = GetOrderTableHeader($TableColumns, 'Name');
    487486    $Output .= '<form action="?Action=View&amp;ExportId='.$_GET['ExportId'].'" method="post">'.
    488         '<h3>Překladové skupiny</h3>';
     487        '<h3>'.T('Translation groups').'</h3>';
    489488    if($Editable)
    490489    {
     
    518517      $Output .= '<tr>'.
    519518          '<td>'.$Selection.'<input type="hidden" name="seq'.$Group['Id'].'"/></td>'.
    520           '<td>'.$Group['Name'].'</td><td>';
     519          '<td>'.T($Group['Name']).'</td><td>';
    521520          if ($Group['MangosTable'] <> '')
    522521            $Output .= $Group['MangosTable'].'.sql ';
     
    526525            $Output .= $Group['DBCFileName'].'.dbc ';
    527526
    528       $Output .=    '</td><td>';
    529       $Output .=  $Columns. '</td>';
    530       $Output .=     '</tr>';
     527      $Output .= '</td><td>';
     528      $Output .= $Columns. '</td>';
     529      $Output .= '</tr>';
    531530    }
    532531    $Output .= '</table>'.
    533         '</form>'.
    534         $PageList['Output'];
     532      '</form>'.
     533      $PageList['Output'];
    535534    return($Output);
    536535  }
     
    726725        while($Group = $ID->fetch_assoc())
    727726        {
    728           $Output .= '<tr><td>'.$Group['Name'].'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>';
     727          $Output .= '<tr><td>'.T($Group['Name']).'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>';
    729728          $Translated += $Group['Translated'];
    730729          $Total += $Group['Total'];
  • trunk/Modules/Forum/Forum.php

    r838 r846  
    199199        $Output .= '<form action="?Thread='.$_GET['Thread'].'" method="post">'.
    200200            '<fieldset><legend>'.T('New Forum Message').'</legend>'.
    201             'Uživatel: ';
     201            T('User').': ';
    202202        if($this->System->User->Licence(LICENCE_USER)) $Output .= '<b>'.$this->System->User->Name.'</b><br />';
    203203        else $Output .= '<input type="text" name="user" /><br />';
     
    218218        $Output .= '<form action="?" method="post">'.
    219219            '<fieldset><legend>'.T('New thread').'</legend>'.
    220             'Uživatel: ';
     220            T('User').': ';
    221221        if($this->System->User->Licence(LICENCE_USER)) $Output .= '<b>'.$this->System->User->Name.'</b><br />';
    222222        else $Output .= '<input type="text" name="user" /><br />';
  • trunk/Modules/FrontPage/FrontPage.php

    r843 r846  
    123123            '<td><a href="'.$this->System->Link('/form.php?group='.$DbRow['Group'].'&amp;ID='.$DbRow['ID']).'">'.$DbRow['ID'].'</a></td>'.
    124124            '<td><a href="'.$this->System->Link('/form.php?group='.$DbRow['Group'].'&amp;ID='.$DbRow['Take']).'">'.$DbRow['Take'].'</a></td>'.
    125             '<td><a href="'.$this->System->Link('/TranslationList.php?group='.$DbRow['Group'].'&amp;action=filter').'">'.$DbRow['GroupName'].'</a></td></tr>';
     125            '<td><a href="'.$this->System->Link('/TranslationList.php?group='.$DbRow['Group'].'&amp;action=filter').'">'.T($DbRow['GroupName']).'</a></td></tr>';
    126126      }
    127127      $Output .= '</table>';
  • trunk/Modules/Import/Manage.php

    r842 r846  
    7171    while($Group = $DbResult->fetch_assoc())
    7272    {
    73       $Output .= '<tr><td>'.$Group['Name'].'</td>'.
     73      $Output .= '<tr><td>'.T($Group['Name']).'</td>'.
    7474        '<td>'.$Group['SourceType'].'</td><td>';
    7575      if($Group['MangosTable'] != '') $Output .= $Group['MangosTable'].'.sql ';
  • trunk/Modules/Search/Search.php

    r838 r846  
    1717  }
    1818
    19   function doStart()
     19  function DoStart()
    2020  {
    2121    $this->System->RegisterPage('search', 'PageSearch');
  • trunk/Modules/Team/Team.php

    r843 r846  
    230230        } else $Leader = array('Name' => '', 'Id' => 0);
    231231
    232         $Output .='<h3>Překladatelský tým '.$Team['Name'].'</h3><br />'.
    233           'Webové stránky: <a href="http://'.$Team['URL'].'">'.$Team['URL'].'</a><br/>'.
    234           'Vedoucí: <a href="'.$this->System->Link('/user/?user='.$Leader['Id']).'">'.$Leader['Name'].'</a><br/>';
     232        $Output .='<h3>'.T('Translation team').' '.$Team['Name'].'</h3><br />'.
     233          T('Web pages').': <a href="http://'.$Team['URL'].'">'.$Team['URL'].'</a><br/>'.
     234          T('Leader').': <a href="'.$this->System->Link('/user/?user='.$Leader['Id']).'">'.$Leader['Name'].'</a><br/>';
    235235        if($Team['Description'] != '')
    236           $Output .= 'Popis: '.$Team['Description'].'<br />';
     236          $Output .= T('Description').': '.$Team['Description'].'<br />';
    237237        $Output .= '<br />';
    238238        //$Output .= '<a href="export/?team='.$Team['Id'].'">Exportovat překlad týmu</a> ';
    239239        if($this->System->User->Licence(LICENCE_USER))
    240           $Output .='<a href="?action=gointeam&amp;id='.$Team['Id'].'">Vstoupit do týmu</a><br /><br />';
     240          $Output .='<a href="?action=gointeam&amp;id='.$Team['Id'].'">'.T('Enter to team').'</a><br /><br />';
    241241        $XP = GetLevelMinMax($Team['AverageXP']);
    242         $Output .='<fieldset><legend>Statistika</legend>'.
    243           'Počet členů týmu: <a href="'.$this->System->Link('/userlist.php?team='.$Team['Id']).'" title="Zobrazit členy týmu">'.$Team['NumberUser'].'</a><br />'.
    244           'Počet přeložených textů týmu: <strong>'.$Team['NumberTranslate'].'</strong><br />'.
    245           'Průměrná úroveň překladatelů v týmu: <strong>'.$XP['Level'].'</strong> zkušenost: '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br />'.
     242        $Output .='<fieldset><legend>'.T('Statistics').'</legend>'.
     243          T('Team member count').': <a href="'.$this->System->Link('/userlist/?team='.$Team['Id']).'" title="Zobrazit členy týmu">'.$Team['NumberUser'].'</a><br />'.
     244          T('Team number of translated texts').': <strong>'.$Team['NumberTranslate'].'</strong><br />'.
     245          T('Average level of team members').': <strong>'.$XP['Level'].'</strong> '.T('experience').': '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br />'.
    246246          '<br />'.
    247           '<strong>Stav dokončení týmu pro verzi '.$this->System->Config['Web']['GameVersion'].'</strong><br />';
     247          '<strong>'.T('Team completion state for version').' '.$this->System->Config['Web']['GameVersion'].'</strong><br />';
    248248
    249249        $BuildNumber = GetBuildNumber($this->System->Config['Web']['GameVersion']);
     
    277277          $Output .='<table class="BaseTable">';
    278278          $TableColumns = array(
    279             array('Name' => 'Name', 'Title' => 'Jméno'),
    280             array('Name' => 'Translated', 'Title' => 'Přeložených'),
    281             array('Name' => 'Total', 'Title' => 'Anglických'),
    282             array('Name' => 'Percent', 'Title' => 'Procenta'),
     279            array('Name' => 'Name', 'Title' => T('Name')),
     280            array('Name' => 'Translated', 'Title' => T('Translated')),
     281            array('Name' => 'Total', 'Title' => T('Original')),
     282            array('Name' => 'Percent', 'Title' => T('Percent')),
    283283          );
    284284
     
    291291          while($Group = $DbResult->fetch_assoc())
    292292          {
    293             $Output .='<tr><td>'.$Group['Name'].'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>';
     293            $Output .='<tr><td>'.T($Group['Name']).'</td><td>'.$Group['Translated'].
     294              '</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>';
    294295            $Translated += $Group['Translated'];
    295296            $Total += $Group['Total'];
     
    297298          if($Total > 0) $Progress = round($Translated / $Total * 100, 2);
    298299          else $Progress = 0;
    299           $Output .='<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, $Progress).'</strong></td></tr>';
     300          $Output .='<tr><td><strong>'.T('Total').'</strong></td><td><strong>'.
     301            $Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.
     302            ProgressBar(150, $Progress).'</strong></td></tr>';
    300303          $Output .='</table>';
    301304        }
  • trunk/Modules/Translation/Progress.php

    r837 r846  
    5252      while($Group = $DbResult->fetch_assoc())
    5353      {
    54         $Output .= '<tr><td>'.$Group['Name'].'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>';
     54        $Output .= '<tr><td>'.T($Group['Name']).'</td><td>'.$Group['Translated'].'</td><td>'.$Group['Total'].'</td><td>'.ProgressBar(150, $Group['Percent']).'</td></tr>';
    5555        $Translated += $Group['Translated'];
    5656        $Total += $Group['Total'];
     
    114114    if($Language['Enabled'] == 1)
    115115    {
    116       $Lang = ' <a href="?language='.$Language['Id'].'">'.$Language['Name'].'</a>';
     116      $Lang = ' <a href="?language='.$Language['Id'].'">'.T($Language['Name']).'</a>';
    117117      if($Language['Id'] == $_SESSION['language']) $Output .= '<strong>'.$Lang.'</strong> ';
    118118        else $Output .= $Lang;
     
    121121    if(is_numeric($_SESSION['language'])) $LanguageName = $LanguageList[$_SESSION['language']]['Name'];
    122122      else $LanguageName = T('All');
    123     $Output .= '<br/><br /><h3>'.sprintf(T('Statistics of translation completion of language %s for version %s'), $LanguageName, $_SESSION['StatVersion']).'</h3><br/>';
     123    $Output .= '<br/><br /><h3>'.sprintf(T('Statistics of translation completion of language %s for version %s'), T($LanguageName), $_SESSION['StatVersion']).'</h3><br/>';
    124124    $Output .= $this->ShowStatTable();
    125125
  • trunk/Modules/Translation/Translation.php

    r843 r846  
    1919    $this->License = 'GNU/GPL';
    2020    $this->Description = 'Translation of text items and groups from original language to other languages.';
    21     $this->Dependencies = array('News');
     21    $this->Dependencies = array('News', 'Search');
    2222  }
    2323
     
    4949      'Icon' => '',
    5050    ));
     51    /*
    5152    if(array_key_exists('Search', $this->System->ModuleManager->Modules))
    5253    {
     
    6263
    6364        $this->System->ModuleManager->Modules['Search']->RegisterSearch('group'.$Group['Id'],
    64         sprintf(T('Translation group "%s"'), $Group['Name']), $Columns, '`'.$Table.'`', $this->System->Link('/TranslationList.php?group='.
    65         $Group['Id'].'&amp;user=0&amp;state=0&amp;entry=&amp;text='));
     65          sprintf(T('Translation group "%s"'), $Group['Name']), $Columns, '`'.$Table.'`',
     66          $this->System->Link('/TranslationList.php?group='.
     67          $Group['Id'].'&amp;user=0&amp;state=0&amp;entry=&amp;text='));
    6668      }
    6769    }
     70    */
    6871  }
    6972
  • trunk/Modules/Translation/TranslationList.php

    r845 r846  
    5959      if($Filter['Group'] != 0)
    6060      {
    61         if(isset($TranslationTree[$Filter['Group']]) == false) ErrorMessage('Překladová skupina dle zadaného Id neexistuje.');
     61        if(isset($TranslationTree[$Filter['Group']]) == false)
     62          ErrorMessage('Překladová skupina dle zadaného Id neexistuje.');
    6263        $Table = $TranslationTree[$Filter['Group']]['TablePrefix'];
    6364      }
     
    7778      if($Group['Id'] == $Filter['Group']) $Selected = ' selected="selected"';
    7879      else $Selected = '';
    79       $Output .= '<option value="'.$Group['Id'].'"'.$Selected.'>'.$Group['Name'].'</option>';
     80      $Output .= '<option value="'.$Group['Id'].'"'.$Selected.'>'.T($Group['Name']).'</option>';
    8081    }
    8182    $Output .= '</select></td>';
     
    414415   while($Group = $DbResult->fetch_assoc())
    415416   {
    416      $Output .= '<tr><td><a href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;action=filter').'">'.$Group['Name'].'</a></td>'.
     417     $Output .= '<tr><td><a href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;action=filter').'">'.T($Group['Name']).'</a></td>'.
    417418       '<td>'.$Group['SourceType'].'</td><td>';
    418419     if($Group['MangosTable'] != '') $Output .= $Group['MangosTable'].'.sql ';
     
    503504    if($this->System->User->Licence(LICENCE_ADMIN))
    504505    {
    505       $DbResult = $this->System->Database->select('Group', '*', 'Id='.$_GET['id']);
     506      $DbResult = $this->System->Database->select('Group', '*', '`Id`='.$_GET['id']);
    506507      if($DbResult->num_rows == 1)
    507508      {
  • trunk/Modules/User/Profile.php

    r844 r846  
    109109      {
    110110        $Output .= '<tr><td>'.HumanDate($DbRow['ModifyTime']).'</td>'.
    111             '<td><a href="form.php?group='.$DbRow['Group'].'&amp;ID='.$DbRow['ID'].'">'.$DbRow['ID'].'</a></td>'.
    112             '<td><a href="form.php?group='.$DbRow['Group'].'&amp;ID='.$DbRow['Take'].'">'.$DbRow['Take'].'</a></td>'.
    113             '<td><a href="TranslationList.php?group='.$DbRow['Group'].'&amp;action=filter">'.$DbRow['GroupName'].'</a></td></tr>';
     111            '<td><a href="'.$this->System->Link('/form.php?group='.$DbRow['Group'].'&amp;ID='.$DbRow['ID']).'">'.$DbRow['ID'].'</a></td>'.
     112            '<td><a href="'.$this->System->Link('/form.php?group='.$DbRow['Group'].'&amp;ID='.$DbRow['Take']).'">'.$DbRow['Take'].'</a></td>'.
     113            '<td><a href="'.$this->System->Link('/TranslationList.php?group='.$DbRow['Group'].'&amp;action=filter').'">'.T($DbRow['GroupName']).'</a></td></tr>';
    114114      }
    115115      $Output .= '</table>';
     
    153153      $Output .=
    154154        '<h3>'.T('Translator').' '.$UserLine['Name'].'</h3>'.
    155         T('Default language:').' <strong>'.$UserLine['LanguageName'].'</strong><br />'.
     155        T('Default language:').' <strong>'.T($UserLine['LanguageName']).'</strong><br />'.
    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 />'.
  • trunk/admin/UpdateTrace.php

    r816 r846  
    28162816}
    28172817
     2818function UpdateTo846($Manager)
     2819{
     2820  $Manager->Execute('UPDATE `Language` SET `Name` = "English", `Code` = "en" WHERE `Language`.`Name` = "Angličtina";');
     2821  $Manager->Execute('UPDATE `Language` SET `Name` = "Czech" WHERE `Language`.`Name` = "Čeština";');
     2822  $Manager->Execute('UPDATE `Language` SET `Name` = "Slovak" WHERE `Language`.`Name` = "Slovenština";');
     2823
     2824  $Manager->Execute('UPDATE `Group` SET `Name` = "Quests" WHERE `Group`.`Name` = "Výpravy"');
     2825  $Manager->Execute('UPDATE `Group` SET `Name` = "Books" WHERE `Group`.`Name` = "Knížky"');
     2826  $Manager->Execute('UPDATE `Group` SET `Name` = "NPC speech" WHERE `Group`.`Name` = "Slova NPC"');
     2827  $Manager->Execute('UPDATE `Group` SET `Name` = "Items" WHERE `Group`.`Name` = "Věci"');
     2828  $Manager->Execute('UPDATE `Group` SET `Name` = "Game objects" WHERE `Group`.`Name` = "Herní objekty"');
     2829  $Manager->Execute('UPDATE `Group` SET `Name` = "Creature names" WHERE `Group`.`Name` = "Jména bytostí"');
     2830  $Manager->Execute('UPDATE `Group` SET `Name` = "MaNGOS messages" WHERE `Group`.`Name` = "Zprávy MaNGOSu"');
     2831  $Manager->Execute('UPDATE `Group` SET `Name` = "MaNGOS commands" WHERE `Group`.`Name` = "Popis GM příkazů"');
     2832  $Manager->Execute('UPDATE `Group` SET `Name` = "ScriptDev2 scripts" WHERE `Group`.`Name` = "EventAI"');
     2833  $Manager->Execute('UPDATE `Group` SET `Name` = "ScriptDev2 EventAI" WHERE `Group`.`Name` = "Popis GM příkazů"');
     2834  $Manager->Execute('UPDATE `Group` SET `Name` = "Game tips" WHERE `Group`.`Name` = "Herní tipy"');
     2835  $Manager->Execute('UPDATE `Group` SET `Name` = "Spells" WHERE `Group`.`Name` = "Kouzla"');
     2836  $Manager->Execute('UPDATE `Group` SET `Name` = "Client interface" WHERE `Group`.`Name` = "Rozhraní klienta"');
     2837  $Manager->Execute('UPDATE `Group` SET `Name` = "Login interface" WHERE `Group`.`Name` = "Rozhraní přihlašování"');
     2838  $Manager->Execute('UPDATE `Group` SET `Name` = "NPC options" WHERE `Group`.`Name` = "Možnosti NPC"');
     2839  $Manager->Execute('UPDATE `Group` SET `Name` = "Transports" WHERE `Group`.`Name` = "Doprava"');
     2840  $Manager->Execute('UPDATE `Group` SET `Name` = "Taverns" WHERE `Group`.`Name` = "Krčmy"');
     2841  $Manager->Execute('UPDATE `Group` SET `Name` = "Teleports" WHERE `Group`.`Name` = "Teleporty"');
     2842  $Manager->Execute('UPDATE `Group` SET `Name` = "Achievements" WHERE `Group`.`Name` = "Úspěchy"');
     2843  $Manager->Execute('UPDATE `Group` SET `Name` = "Achievement category" WHERE `Group`.`Name` = "Kategorie úspěchů"');
     2844  $Manager->Execute('UPDATE `Group` SET `Name` = "Achievement criteria" WHERE `Group`.`Name` = "Kritéria úspěchů"');
     2845  $Manager->Execute('UPDATE `Group` SET `Name` = "Interface localization" WHERE `Group`.`Name` = "Rozhraní národní"');
     2846  $Manager->Execute('UPDATE `Group` SET `Name` = "Area POI" WHERE `Group`.`Name` = "Body zájmu oblastí"');
     2847  $Manager->Execute('UPDATE `Group` SET `Name` = "World state" WHERE `Group`.`Name` = "Stav světa"');
     2848  $Manager->Execute('UPDATE `Group` SET `Name` = "Totem category" WHERE `Group`.`Name` = "Kategorie totemů"');
     2849  $Manager->Execute('UPDATE `Group` SET `Name` = "Talent tabs" WHERE `Group`.`Name` = "Záložky talentů"');
     2850  $Manager->Execute('UPDATE `Group` SET `Name` = "Skills" WHERE `Group`.`Name` = "Dovednosti"');
     2851  $Manager->Execute('UPDATE `Group` SET `Name` = "Character classes" WHERE `Group`.`Name` = "Třídy postav"');
     2852  $Manager->Execute('UPDATE `Group` SET `Name` = "Chat channels" WHERE `Group`.`Name` = "Kanály pro povídání"');
     2853  $Manager->Execute('UPDATE `Group` SET `Name` = "Character races" WHERE `Group`.`Name` = "Rasy postav"');
     2854  $Manager->Execute('UPDATE `Group` SET `Name` = "Emotes" WHERE `Group`.`Name` = "Emoce"');
     2855  $Manager->Execute('UPDATE `Group` SET `Name` = "Areas" WHERE `Group`.`Name` = "Místa"');
     2856  $Manager->Execute('UPDATE `Group` SET `Name` = "Skill category" WHERE `Group`.`Name` = "Kategorie dovedností"');
     2857  $Manager->Execute('UPDATE `Group` SET `Name` = "Item subclass" WHERE `Group`.`Name` = "Podtřídy věcí"');
     2858  $Manager->Execute('UPDATE `Group` SET `Name` = "Creature types" WHERE `Group`.`Name` = "Druh bytostí"');
     2859}
     2860
    28182861$Updates = array(
    28192862  498 => array('Revision' => 506, 'Function' => 'UpdateTo506'),
     
    28442887  787 => array('Revision' => 803, 'Function' => 'UpdateTo803'),
    28452888  803 => array('Revision' => 811, 'Function' => 'UpdateTo811'),
     2889  811 => array('Revision' => 846, 'Function' => 'UpdateTo846'),
    28462890);
  • trunk/includes/Version.php

    r845 r846  
    66// and system will need database update.
    77
    8 $Revision = 845; // Subversion revision
    9 $DatabaseRevision = 811; // Database structure revision
     8$Revision = 846; // Subversion revision
     9$DatabaseRevision = 846; // Database structure revision
    1010$ReleaseTime = '2016-01-14';
  • trunk/includes/global.php

    r844 r846  
    346346  {
    347347    $DbRow['Items'] = array();
     348    $DbRow['Name'] = T($DbRow['Name']);
    348349    $Result[$DbRow['Id']] = $DbRow;
    349350  }
  • trunk/includes/system.php

    r845 r846  
    313313      $Output2 = '';
    314314      if((count($this->OnPageNotFound) == 2)
    315   and method_exists($this->OnPageNotFound[0], $this->OnPageNotFound[1]))
     315        and method_exists($this->OnPageNotFound[0], $this->OnPageNotFound[1]))
    316316        $Output2 = call_user_func_array($this->OnPageNotFound, array());
    317317     if($Output2 != '') $Output .= $this->BaseView->ShowPage($Output2);
     
    451451    {
    452452      $Output .= '<div id="menuitem-group'.$Group['Id'].'" onmouseover="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">'.
    453           '<a href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;action=filter').'">'.str_replace(' ','&nbsp;',$Group['Name']).'</a></div>'.
    454           '<div id="group'.$Group['Id'].'" class="hidden-menu-item" onmouseover="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">';
    455       $Output .= '&nbsp;<a title="Zde můžete začít překládat" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=1&amp;user=0&amp;entry=&amp;text=').'">'.T('Untranslated').'</a><br />'.
    456           '&nbsp;<a title="Přeložené texty, můžete zde hlasovat, nebo opravovat překlady" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=2&amp;user=0&amp;entry=&amp;text=').'">'.T('Translated').'</a><br />';
     453        '<a href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].
     454        '&amp;action=filter').'">'.str_replace(' ','&nbsp;', T($Group['Name'])).'</a></div>'.
     455        '<div id="group'.$Group['Id'].'" class="hidden-menu-item" onmouseover="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">';
     456      $Output .= '&nbsp;<a title="Zde můžete začít překládat" href="'.
     457        $this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=1&amp;user=0&amp;entry=&amp;text=').'">'.T('Untranslated').'</a><br />'.
     458        '&nbsp;<a title="Přeložené texty, můžete zde hlasovat, nebo opravovat překlady" href="'.
     459        $this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=2&amp;user=0&amp;entry=&amp;text=').'">'.T('Translated').'</a><br />';
    457460      if($this->System->User->Licence(LICENCE_USER))
    458461      {
    459         $Output .= '&nbsp;<a title="'.T('Unfinished translations').'" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=3').'">'.T('Unfinished').'</a><br />
    460         &nbsp;<a title="Všechny překlady, které jste přeložil" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=1&amp;user='.$this->System->User->Id).'&amp;entry=&amp;text=">'.T('Own').'</a><br />';
    461       }
    462       $Output .= '&nbsp;<a title="'.T('Compose special filter').'" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;action=filter').'">'.T('Filter').'</a><br />';
     462        $Output .= '&nbsp;<a title="'.T('Unfinished translations').'" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=3').'">'.T('Unfinished').'</a><br />'.
     463          '&nbsp;<a title="Všechny překlady, které jste přeložil" href="'.
     464          $this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=1&amp;user='.
     465          $this->System->User->Id).'&amp;entry=&amp;text=">'.T('Own').'</a><br />';
     466      }
     467      $Output .= '&nbsp;<a title="'.T('Compose special filter').'" href="'.
     468        $this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;action=filter').
     469        '">'.T('Filter').'</a><br />';
    463470      $Output .= '</div>';
    464471    }
  • trunk/locale/cs.php

    r844 r846  
    373373      'Google translator' => 'Google překladač',
    374374      'Registration was successful' => 'Registrace proběhla úspěšně.',
     375      'Quests' => 'Výpravy',
     376      'Books' => 'Knížky',
     377      'NPC speech' => 'Slova NPC',
     378      'Items' => 'Věci',
     379      'Game objects' => 'Herní objekty',
     380      'Creature names' => 'Jména bytostí',
     381      'MaNGOS messages' => 'Zprávy MaNGOSu',
     382      'MaNGOS commands' => 'Popis GM příkazů,',
     383      'ScriptDev2 EventAI' => 'Popis GM příkazů',
     384      'Game tips' => 'Herní tipy',
     385      'Spells' => 'Kouzla',
     386      'Client interface' => 'Rozhraní klienta',
     387      'Login interface' => 'Rozhraní přihlašování',
     388      'NPC options' => 'Možnosti NPC',
     389      'Transports' => 'Doprava',
     390      'Taverns' => 'Krčmy',
     391      'Teleports' => 'Teleporty',
     392      'Achievements' => 'Úspěchy',
     393      'Achievement category' => 'Kategorie úspěchů',
     394      'Achievement criteria' => 'Kritéria úspěchů',
     395      'Interface localization' => 'Rozhraní národní',
     396      'World state' => 'Stav světa',
     397      'Totem category' => 'Kategorie totemů',
     398      'Talent tabs' => 'Záložky talentů',
     399      'Skills' => 'Dovednosti',
     400      'Character classes' => 'Třídy postav',
     401      'Chat channels' => 'Kanály pro povídání',
     402      'Character races' => 'Rasy postav',
     403      'Emotes' => 'Emoce',
     404      'Areas' => 'Místa',
     405      'Skill category' => 'Kategorie dovedností',
     406      'Item subclass' => 'Podtřídy věcí',
     407      'Creature types' => 'Druh bytostí',
     408      'Area POI' => 'Body zájmu oblastí',
     409      'Czech' => 'Čeština',
     410      'English' => 'Angličtina',
     411      'Slovak' => 'Slovenština',
     412      'Original word' => 'Původní slovo',
     413      'New word insertion' => 'Vložení nového slova',
     414      'Translation team' => 'Překladatelský tým',
     415      'Enter to team' => 'Vstoupit do týmu',
     416      'Statistics' => 'Statistika',
     417      'Team member count' => 'Počet členů týmu',
     418      'Team number of translated texts' => 'Počet přeložených textů týmu',
     419      'Average level of team members' => 'Průměrná úroveň překladatelů v týmu',
     420      'experience' => 'zkušenost',
     421      'Team completion state for version' => 'Stav dokončení týmu pro verzi',
    375422      ),
    376423      'URL' => array(
Note: See TracChangeset for help on using the changeset viewer.