Anonymous avatar Anonymous committed 5c2fab1

scripts: fix some typos, update compile-translations docstring

Comments (0)

Files changed (4)

scripts/compile-translations

     Compile translations
     ~~~~~~~~~~~~~~~~~~~~
 
-    Compile translations into pickles containing the translated messages.
-    We do not use standard MO files because we have to store additional
-    information in those files.
+    Compile translations into (almost) standard MO files and append pickled
+    translations for client-side usage by javascript code.
 
     :copyright: (c) 2010 by the Zine Team, see AUTHORS for more details.
     :license: BSD, see LICENSE for more details.
             parser.error('i18n folder missing')
         print 'Compiling', root
     else:
-        parser.error('incorrent number of arguments')
+        parser.error('incorrect number of arguments')
 
     for domain in domains:
         for lang in listdir(root):
                 else:
                     print
 
-                # Dump pickled data into standard catalog
+                # Dump pickled data at the end of the standard catalog
                 pickle.dump(client_messages, mo_file, 2)
-                # Write the pickled data pointer position
+                # Write offset of the start of the pickled data
                 mo_file.write(struct.pack('i', pickled_data_pointer_pos))
                 mo_file.close()
     print 'All done.'

scripts/extract-messages

             parser.error('source folder missing')
         print 'Extracting from', root
     else:
-        parser.error('incorrent number of arguments')
+        parser.error('incorrect number of arguments')
 
     catalog = Catalog(msgid_bugs_address=BUGS_ADDRESS,
                       copyright_holder=COPYRIGHT, charset='utf-8')

scripts/reset-instance

     elif len(args) == 1:
         instance = args[0]
     else:
-        parser.error('incorrent number of arguments')
+        parser.error('incorrect number of arguments')
 
     print 'Resetting instance', instance
 

scripts/update-translations

             parser.error('source folder missing')
         print 'Updating', root
     else:
-        parser.error('incorrent number of arguments')
+        parser.error('incorrect number of arguments')
 
     if options.locale:
         for domain in domains:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.