Ignore:
Timestamp:
Mar 4, 2009, 2:03:52 PM (16 years ago)
Author:
maron
Message:

Doprogramovány texty rozhraní

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/create_addon.php

    r138 r141  
    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        $Original = str_replace("|Hchannel:%d|h[%s]|h", '[%s]', $Original);
     185        $Translated = str_replace("|Hchannel:%d|h[%s]|h", '[%s]', $Translated);
     186    $Buffer .= 'f("'.addslashes($Line['ShortCut']).'", "'.$Original.'", "'.$Translated.'");'."\n";
     187  }
     188  //nepřeložené texty
     189  $Query = 'SELECT '.$Column['Column'].' as Original, ShortCut FROM '.$Group['TablePrefix'].' WHERE Language = 0 AND entry NOT IN (SELECT entry FROM '.$Group['TablePrefix'].' WHERE (Complete = 1)  AND '.$WhereLang.' AND '.$WhereUsers.')';
     190  $DbResult = $Database->SQLCommand($Query);
     191  while($Line = mysql_fetch_array($DbResult))
     192  {
     193        $Original = str_replace("\r", '', str_replace("\n", '\r\\'."\n", addslashes($Line['Original'])));
     194        $Translated = str_replace("\r", '', str_replace("\n", '\r\\'."\n", $Line['Original']));
     195        $Original = str_replace("|Hchannel:%d|h[%s]|h", '[%s]', $Original);
     196        $Translated = str_replace("|Hchannel:%d|h[%s]|h", '[%s]', $Translated);
    184197    $Buffer .= 'f("'.addslashes($Line['ShortCut']).'", "'.$Original.'", "'.$Translated.'");'."\n";
    185198  }
Note: See TracChangeset for help on using the changeset viewer.