Changeset 89 for trunk/addon/make.php
- Timestamp:
- Feb 11, 2009, 7:49:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/addon/make.php
r74 r89 166 166 while($Line = mysql_fetch_array($DbResult)) 167 167 { 168 $Buffer .= 'f("'.addslashes($Line['id_text']).'", "'.str_replace("\n", '\r\\', addslashes($Line['Original'])).'", "'.str_replace("\n", '\r\\', addslashes($Line['Translation'])).'");'."\n"; 168 $Original = str_replace("\r", '', str_replace("\n", '\r\\'."\n", addslashes($Line['Original']))); 169 $Translated = str_replace("\r", '', str_replace("\n", '\r\\'."\n", addslashes($Line['Translation']))); 170 $Buffer .= 'f("'.addslashes($Line['id_text']).'", "'.$Original.'", "'.$Translated.'");'."\n"; 169 171 } 170 172 file_put_contents($TempDir.'LocalizationStrings.lua', $Buffer);
Note:
See TracChangeset
for help on using the changeset viewer.