default=False,help='Reexamines all source code and templates for new translation strings and updates all message files for all available languages.'),
make_option('--extension','-e',dest='extensions',
help='The file extension(s) to examine (default: ".html", separate multiple extensions with commas, or use -e multiple times)',
action='append'),
)
help="Runs over the entire source tree of the current directory and pulls out all strings marked for translation. It creates (or updates) a message file in the conf/locale (in the django tree) or locale (for project and application) directory."
@@ -158,5 +192,14 @@ class Command(BaseCommand):
domain=options.get('domain')
verbosity=int(options.get('verbosity'))
process_all=options.get('all')
extensions=options.get('extensions')or['html']
ifdomain=='djangojs':
extensions=[]
else:
extensions=handle_extensions(extensions)
if'.js'inextensions:
raiseCommandError("JavaScript files should be examined by using the special 'djangojs' domain only.")