Make WordPress Core


Ignore:
Timestamp:
02/22/2010 11:12:48 PM (16 years ago)
Author:
markjaquith
Message:

Whitespace cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pomo/mo.php

    r13228 r13316  
    2727                return $this->import_from_reader($reader);
    2828        }
    29        
     29
    3030        function export_to_file($filename) {
    3131                $fh = fopen($filename, 'wb');
     
    4444                        $translations_lenghts_addr, $size_of_hash, $hash_addr));
    4545                fseek($fh, $originals_lenghts_addr);
    46                
     46
    4747                // headers' msgid is an empty string
    4848                fwrite($fh, pack('VV', 0, $current_addr));
     
    5656                        $current_addr += $length + 1; // account for the NULL byte after
    5757                }
    58                
     58
    5959                $exported_headers = $this->export_headers();
    6060                fwrite($fh, pack('VV', strlen($exported_headers), $current_addr));
    6161                $current_addr += strlen($exported_headers) + 1;
    6262                $translations_table = $exported_headers . chr(0);
    63                
     63
    6464                foreach($entries as $entry) {
    6565                        $translations_table .= $this->export_translations($entry) . chr(0);
     
    6868                        $current_addr += $length + 1;
    6969                }
    70                
     70
    7171                fwrite($fh, $originals_table);
    7272                fwrite($fh, $translations_table);
    7373                fclose($fh);
    7474        }
    75        
     75
    7676        function export_original($entry) {
    7777                //TODO: warnings for control characters
     
    8181                return $exported;
    8282        }
    83        
     83
    8484        function export_translations($entry) {
    8585                //TODO: warnings for control characters
    8686                return implode(chr(0), $entry->translations);
    8787        }
    88        
     88
    8989        function export_headers() {
    9090                $exported = '';
Note: See TracChangeset for help on using the changeset viewer.