Changeset 388


Ignore:
Timestamp:
Mar 14, 2010, 7:02:21 PM (14 years ago)
Author:
george
Message:
  • Přidáno: Na stránce importu přidán odkaz na ruční aktulizování verzí přeložených.
Location:
trunk/import
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/import/import.php

    r385 r388  
    130130      } else echo('Není definováno jméno zdrojového souboru');
    131131    echo('<strong>Dokončeno.</strong>');
    132     $this->UpdateTranslated();
    133132  }
    134133 
  • trunk/import/index.php

    r385 r388  
    5656  echo('</div><div><strong>Import zdrojů:</strong></div>');
    5757 
    58   echo('<div><a href="?action=instructions">Instrukce pro přípravu zdrojových souborů</a></div><br/>');
     58  echo('<div><a href="?action=instructions">Instrukce pro přípravu zdrojových souborů</a></div>');
     59  echo('<div><a href="?action=update_translated">Zaktualizovat verze přeložených</a></div><br/>');
    5960  echo('Verze klienta použitá pro import: <strong>'.$Config['Web']['GameVersion'].'</strong>');
    6061  $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `Group`');
     
    8586}
    8687
     88function UpdateTranslated()
     89{
     90  echo('<div style="font-size: xx-small;">');
     91  $Import = new Import();
     92  $Import->UpdateTranslated();
     93  echo('</div>');
     94}
     95
    8796if(array_key_exists('action', $_GET))
    8897{
    8998  if($_GET['action'] == 'instructions') ShowInstructions();
    9099  else if($_GET['action'] == 'importgroup') ShowImportGroup();
     100  else if($_GET['action'] == 'update_translated') UpdateTranslated();
    91101  else ShowMenu();                                           
    92102} else ShowMenu();
Note: See TracChangeset for help on using the changeset viewer.