Django

Code

Changeset 777

Show
Ignore:
Timestamp:
10/05/05 05:34:54 (3 years ago)
Author:
hugo
Message:

i18n: make-messages now supports directory names with blanks in them

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/i18n/django/bin/make-messages.py

    r763 r777  
    6161            if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath)) 
    6262            if os.path.isfile(lf): 
    63                 cmd = 'xgettext -j -d %s -L Python -p %s %s' % (domain, basedir, os.path.join(dirpath, thefile)) 
     63                cmd = 'xgettext -j -d %s -L Python -p "%s" "%s"' % (domain, basedir, os.path.join(dirpath, thefile)) 
    6464            else: 
    65                 cmd = 'xgettext -d %s -L Python -p %s %s' % (domain, basedir, os.path.join(dirpath, thefile)) 
     65                cmd = 'xgettext -d %s -L Python -p "%s" "%s"' % (domain, basedir, os.path.join(dirpath, thefile)) 
    6666            os.system(cmd) 
    6767            if thefile != file: