Ignore:
Timestamp:
Feb 21, 2009, 7:38:18 PM (16 years ago)
Author:
george
Message:
  • Přidáno: Program MPQEditor ke stažení.
  • Přidáno: Možnost exportovat překlady jako Lua překladové soubory.
  • Odstraněno: Stará překladová skupina client.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/create_addon.php

    r117 r120  
    174174       
    175175  $Buffer = "local f=function(name, en, cz) CzWoW_interface[name]=cz; CzWoW_interface_entoname[en]=name; end; CzWoW_interface={ };CzWoW_interface_entoname={ };\n";
    176   $Group = $TranslationTree[9]; // client table
     176  $Group = $TranslationTree[14]; // client table
    177177  $Column['Column'] = 'Text';
    178   $Query = 'SELECT T2.'.$Column['Column'].' AS Translation, T3.'.$Column['Column'].' as Original, T3.id_text FROM (SELECT T1.entry, T1.'.$Column['Column'].' FROM (SELECT entry,'.$Column['Column'].' FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers.$OrderByUserList.') AS T1 GROUP BY T1.entry) as T2 JOIN '.$Group['TablePrefix'].' AS T3 ON (T2.entry = T3.entry) AND (T3.Language = 0)';
     178  $Query = 'SELECT T2.'.$Column['Column'].' AS Translation, T3.'.$Column['Column'].' as Original, T3.ShortCut FROM (SELECT T1.entry, T1.'.$Column['Column'].' FROM (SELECT entry,'.$Column['Column'].' FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers.$OrderByUserList.') AS T1 GROUP BY T1.entry) as T2 JOIN '.$Group['TablePrefix'].' AS T3 ON (T2.entry = T3.entry) AND (T3.Language = 0)';
    179179  $DbResult = $Database->SQLCommand($Query);
    180180  while($Line = mysql_fetch_array($DbResult))
     
    182182        $Original = str_replace("\r", '', str_replace("\n", '\r\\'."\n", addslashes($Line['Original'])));
    183183        $Translated = str_replace("\r", '', str_replace("\n", '\r\\'."\n", addslashes($Line['Translation'])));
    184     $Buffer .= 'f("'.addslashes($Line['id_text']).'", "'.$Original.'", "'.$Translated.'");'."\n";
     184    $Buffer .= 'f("'.addslashes($Line['ShortCut']).'", "'.$Original.'", "'.$Translated.'");'."\n";
    185185  }
    186186  file_put_contents($TempDir.'LocalizationStrings.lua', $Buffer);
Note: See TracChangeset for help on using the changeset viewer.