Changeset 141 for trunk/export/create_addon.php
- Timestamp:
- Mar 4, 2009, 2:03:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/create_addon.php
r138 r141 182 182 $Original = str_replace("\r", '', str_replace("\n", '\r\\'."\n", addslashes($Line['Original']))); 183 183 $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); 184 197 $Buffer .= 'f("'.addslashes($Line['ShortCut']).'", "'.$Original.'", "'.$Translated.'");'."\n"; 185 198 }
Note:
See TracChangeset
for help on using the changeset viewer.