Changeset 1379:5c2fab16fcec
- Timestamp:
- 07/12/10 03:20:12 (23 months ago)
- Branch:
- default
- Location:
- scripts
- Files:
-
- 4 edited
-
compile-translations (modified) (3 diffs)
-
extract-messages (modified) (1 diff)
-
reset-instance (modified) (1 diff)
-
update-translations (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
scripts/compile-translations
r1279 r1379 5 5 ~~~~~~~~~~~~~~~~~~~~ 6 6 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. 10 9 11 10 :copyright: (c) 2010 by the Zine Team, see AUTHORS for more details. … … 48 47 print 'Compiling', root 49 48 else: 50 parser.error('incorre nt number of arguments')49 parser.error('incorrect number of arguments') 51 50 52 51 for domain in domains: … … 96 95 print 97 96 98 # Dump pickled data intostandard catalog97 # Dump pickled data at the end of the standard catalog 99 98 pickle.dump(client_messages, mo_file, 2) 100 # Write the pickled data pointer position99 # Write offset of the start of the pickled data 101 100 mo_file.write(struct.pack('i', pickled_data_pointer_pos)) 102 101 mo_file.close() -
scripts/extract-messages
r1297 r1379 55 55 print 'Extracting from', root 56 56 else: 57 parser.error('incorre nt number of arguments')57 parser.error('incorrect number of arguments') 58 58 59 59 catalog = Catalog(msgid_bugs_address=BUGS_ADDRESS, -
scripts/reset-instance
r1279 r1379 37 37 instance = args[0] 38 38 else: 39 parser.error('incorre nt number of arguments')39 parser.error('incorrect number of arguments') 40 40 41 41 print 'Resetting instance', instance -
scripts/update-translations
r1279 r1379 38 38 print 'Updating', root 39 39 else: 40 parser.error('incorre nt number of arguments')40 parser.error('incorrect number of arguments') 41 41 42 42 if options.locale:
Note: See TracChangeset
for help on using the changeset viewer.