Zine

open source content publishing system


Changeset 1379:5c2fab16fcec


Ignore:
Timestamp:
07/12/10 03:20:12 (23 months ago)
Author:
Thomas Waldmann <tw AT waldmann-edv DOT de>
Branch:
default
Message:

scripts: fix some typos, update compile-translations docstring

Location:
scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • scripts/compile-translations

    r1279 r1379  
    55    ~~~~~~~~~~~~~~~~~~~~ 
    66 
    7     Compile translations into pickles containing the translated messages. 
    8     We do not use standard MO files because we have to store additional 
    9     information in those files. 
     7    Compile translations into (almost) standard MO files and append pickled 
     8    translations for client-side usage by javascript code. 
    109 
    1110    :copyright: (c) 2010 by the Zine Team, see AUTHORS for more details. 
     
    4847        print 'Compiling', root 
    4948    else: 
    50         parser.error('incorrent number of arguments') 
     49        parser.error('incorrect number of arguments') 
    5150 
    5251    for domain in domains: 
     
    9695                    print 
    9796 
    98                 # Dump pickled data into standard catalog 
     97                # Dump pickled data at the end of the standard catalog 
    9998                pickle.dump(client_messages, mo_file, 2) 
    100                 # Write the pickled data pointer position 
     99                # Write offset of the start of the pickled data 
    101100                mo_file.write(struct.pack('i', pickled_data_pointer_pos)) 
    102101                mo_file.close() 
  • scripts/extract-messages

    r1297 r1379  
    5555        print 'Extracting from', root 
    5656    else: 
    57         parser.error('incorrent number of arguments') 
     57        parser.error('incorrect number of arguments') 
    5858 
    5959    catalog = Catalog(msgid_bugs_address=BUGS_ADDRESS, 
  • scripts/reset-instance

    r1279 r1379  
    3737        instance = args[0] 
    3838    else: 
    39         parser.error('incorrent number of arguments') 
     39        parser.error('incorrect number of arguments') 
    4040 
    4141    print 'Resetting instance', instance 
  • scripts/update-translations

    r1279 r1379  
    3838        print 'Updating', root 
    3939    else: 
    40         parser.error('incorrent number of arguments') 
     40        parser.error('incorrect number of arguments') 
    4141 
    4242    if options.locale: 
Note: See TracChangeset for help on using the changeset viewer.