Django

Code

Changeset 1814

Show
Ignore:
Timestamp:
01/03/06 16:29:56 (3 years ago)
Author:
hugo
Message:

fixes #1161 - spaces in filenames should now be handled better (filename parameters are enclosed in "")

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/bin/compile-messages.py

    r1068 r1814  
    2020            sys.stderr.write('processing file %s in %s\n' % (file, dirpath)) 
    2121            pf = os.path.splitext(os.path.join(dirpath, file))[0] 
    22             cmd = 'msgfmt -o %s.mo %s.po' % (pf, pf) 
     22            cmd = 'msgfmt -o "%s.mo" "%s.po"' % (pf, pf) 
    2323            os.system(cmd) 
    2424 
  • django/trunk/django/bin/make-messages.py

    r1529 r1814  
    119119 
    120120    if os.path.exists(potfile): 
    121         (stdin, stdout, stderr) = os.popen3('msguniq %s' % potfile, 'b') 
     121        (stdin, stdout, stderr) = os.popen3('msguniq "%s"' % potfile, 'b') 
    122122        msgs = stdout.read() 
    123123        errors = stderr.read() 
     
    128128        open(potfile, 'w').write(msgs) 
    129129        if os.path.exists(pofile): 
    130             (stdin, stdout, stderr) = os.popen3('msgmerge -q %s %s' % (pofile, potfile), 'b') 
     130            (stdin, stdout, stderr) = os.popen3('msgmerge -q "%s" "%s"' % (pofile, potfile), 'b') 
    131131            msgs = stdout.read() 
    132132            errors = stderr.read()